From 3bc4c20a67e982833824dd309e7cce3abc7cbe09 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Sun, 2 Feb 2025 17:48:57 -0600 Subject: [PATCH] [sourcegen] Add ReactionPathDiagram to CLib --- .../sourcegen/_data/ctrdiag_auto.yaml | 85 +++++++++++++++++++ .../sourcegen/sourcegen/clib/config.yaml | 2 + 2 files changed, 87 insertions(+) create mode 100644 interfaces/sourcegen/sourcegen/_data/ctrdiag_auto.yaml diff --git a/interfaces/sourcegen/sourcegen/_data/ctrdiag_auto.yaml b/interfaces/sourcegen/sourcegen/_data/ctrdiag_auto.yaml new file mode 100644 index 000000000..c1e467094 --- /dev/null +++ b/interfaces/sourcegen/sourcegen/_data/ctrdiag_auto.yaml @@ -0,0 +1,85 @@ +# This file is part of Cantera. See License.txt in the top-level directory or +# at https://cantera.org/license.txt for license and copyright information. + +docstring: |- + Auto-generated CLib API for %Cantera's ReactionPathDiagram class. + Implements a replacement for CLib's traditional @c ctrpath library. +prefix: rdiag3 +base: ReactionPathDiagram +parents: [] # List of parent classes +derived: [] # List of specializations +recipes: +- name: newReactionPathDiagram # absorbs rbuild_init +- name: showDetails + implements: show_details +- name: setShowDetails # replacement for rdiag_detailed/rdiag_brief + implements: show_details + what: variable-setter +- name: threshold +- name: setThreshold + implements: threshold + what: variable-setter +- name: boldThreshold + implements: bold_min +- name: setBoldThreshold + implements: bold_min + what: variable-setter +- name: normalThreshold + implements: dashed_max +- name: setNormalThreshold + implements: dashed_max + what: variable-setter +- name: labelThreshold + implements: label_min +- name: setLabelThreshold + implements: label_min + what: variable-setter +- name: boldColor + implements: bold_color +- name: setBoldColor + implements: bold_color + what: variable-setter +- name: normalColor + implements: normal_color +- name: setNormalColor + implements: normal_color + what: variable-setter +- name: dashedColor + implements: dashed_color +- name: setDashedColor + implements: dashed_color + what: variable-setter +- name: dotOptions + implements: dot_options +- name: setDotOptions + implements: dot_options + what: variable-setter +- name: font + implements: m_font +- name: setFont +- name: scale +- name: setScale + implements: scale + what: variable-setter +- name: flowType +- name: setFlowType +- name: arrowWidth + implements: arrow_width +- name: setArrowWidth + implements: arrow_width + what: variable-setter +- name: title +- name: setTitle + implements: title + what: variable-setter +- name: add +- name: displayOnly +- name: getDot # previously part of rdiag_write +- name: getData # previously part of rdiag_write +- name: build # previously rbuild_build +- name: getLog # New in Cantera 3.2 +- name: findMajor + implements: findMajorPaths +- name: del +- name: cabinetSize +- name: parentHandle diff --git a/interfaces/sourcegen/sourcegen/clib/config.yaml b/interfaces/sourcegen/sourcegen/clib/config.yaml index f50ba6307..965810a2c 100644 --- a/interfaces/sourcegen/sourcegen/clib/config.yaml +++ b/interfaces/sourcegen/sourcegen/clib/config.yaml @@ -32,5 +32,7 @@ includes: - cantera/thermo/ThermoPhase.h Reaction: - cantera/kinetics/Reaction.h + ReactionPathDiagram: + - cantera/kinetics/ReactionPath.h Func1: - cantera/numerics/Func1Factory.h