64void addFloat(XML_Node& node,
const std::string& titleString,
65 const doublereal value,
const std::string& unitsString=
"",
66 const std::string& typeString=
"",
const doublereal minval=
Undef,
67 const doublereal maxval=
Undef);
114void addFloatArray(XML_Node& node,
const std::string& titleString,
115 const size_t n,
const doublereal*
const values,
116 const std::string& unitsString=
"",
const std::string& typeString=
"",
117 const doublereal minval=
Undef,
118 const doublereal maxval=
Undef);
166 const doublereal*
const vals,
const std::string units =
"",
167 const std::string type =
"",
168 const doublereal minval=
Undef,
169 const doublereal maxval=
Undef);
199void addString(XML_Node& node,
const std::string& titleString,
200 const std::string& valueString,
const std::string& typeString=
"");
255 const bool convert=
true,
const std::string& unitsString=
"",
256 const std::string& nodeName =
"floatArray");
270void getStringArray(
const XML_Node& node, std::vector<std::string>& v);
292void getMap(
const XML_Node& node, std::map<std::string, std::string>& m);
324int getPairs(
const XML_Node& node, std::vector<std::string>& key,
325 std::vector<std::string>& val);
368 const std::vector<std::string>& keyStringRow,
369 const std::vector<std::string>& keyStringCol,
370 Array2D& returnValues,
const bool convert =
true,
371 const bool matrixSymmetric =
false);
406void getIntegers(
const XML_Node& node, std::map<std::string,int>& v);
441doublereal
getFloat(
const XML_Node& parent,
const std::string& name,
442 const std::string& type=
"");
477doublereal
getFloatCurrent(
const XML_Node& currXML,
const std::string& type=
"");
512 doublereal& fltRtn,
const std::string& type=
"");
541int getInteger(
const XML_Node& parent,
const std::string& name);
573 std::string& modelName);
585XML_Node*
getByTitle(
const XML_Node& node,
const std::string& title);
620void getString(
const XML_Node& node,
const std::string& titleString,
621 std::string& valueString, std::string& typeString);
650 const std::string& nameString);
662void ct2ctml(
const char* file,
const int debug = 0);
698void ck2cti(
const std::string& in_file,
const std::string& thermo_file=
"",
699 const std::string& transport_file=
"",
700 const std::string& id_tag=
"gas");
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.
void getString(const XML_Node &node, const std::string &titleString, std::string &valueString, std::string &typeString)
This function reads a child node with the name string with a specific title attribute named titleStri...
void getStringArray(const XML_Node &node, std::vector< std::string > &v)
This function interprets the value portion of an XML element as a string.
const double Undef
Fairly random number to be used to initialize variables against to see if they are subsequently defin...
XML_Node * getByTitle(const XML_Node &node, const std::string &title)
Search the child nodes of the current node for an XML Node with a Title attribute of a given name.
doublereal getFloatCurrent(const XML_Node &currXML, const std::string &type="")
Get a floating-point value from the current XML element.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type="")
Get a floating-point value from a child element.
bool getOptionalFloat(const XML_Node &parent, const std::string &name, doublereal &fltRtn, const std::string &type="")
Get an optional floating-point value from a child element.
std::string getChildValue(const XML_Node &parent, const std::string &nameString)
This function reads a child node with the name, nameString, and returns its XML value as the return s...
void addFloat(XML_Node &node, const std::string &titleString, const doublereal value, const std::string &unitsString="", const std::string &typeString="", const doublereal minval=Undef, const doublereal maxval=Undef)
This function adds a child node with the name, "float", with a value consisting of a single floating ...
void ck2cti(const std::string &in_file, const std::string &thermo_file="", const std::string &transport_file="", const std::string &id_tag="gas")
Convert a Chemkin-format mechanism into a CTI file.
bool getOptionalModel(const XML_Node &parent, const std::string &nodeName, std::string &modelName)
Get an optional model name from a named child node.
int getPairs(const XML_Node &node, std::vector< std::string > &key, std::vector< std::string > &val)
This function interprets the value portion of an XML element as a series of "Pairs" separated by whit...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
int getInteger(const XML_Node &parent, const std::string &name)
Get an integer value from a child element.
size_t getFloatArray(const XML_Node &node, vector_fp &v, const bool convert=true, const std::string &unitsString="", const std::string &nodeName="floatArray")
This function reads the current node or a child node of the current node with the default name,...
void getMatrixValues(const XML_Node &node, const std::vector< std::string > &keyStringRow, const std::vector< std::string > &keyStringCol, Array2D &returnValues, const bool convert=true, const bool matrixSymmetric=false)
This function interprets the value portion of an XML element as a series of "Matrix ids and entries" ...
void addString(XML_Node &node, const std::string &titleString, const std::string &valueString, const std::string &typeString="")
This function adds a child node with the name string with a string value to the current node.
void addFloatArray(XML_Node &node, const std::string &titleString, const size_t n, const doublereal *const values, const std::string &unitsString="", const std::string &typeString="", const doublereal minval=Undef, const doublereal maxval=Undef)
This function adds a child node with the name, "floatArray", with a value consisting of a comma separ...
void addNamedFloatArray(XML_Node &parentNode, const std::string &name, const size_t n, const doublereal *const vals, const std::string units="", const std::string type="", const doublereal minval=Undef, const doublereal maxval=Undef)
This function adds a child node with the name given by the first parameter with a value consisting of...
void getIntegers(const XML_Node &node, std::map< std::string, int > &v)
Get a vector of integer values from a child element.
void getMap(const XML_Node &node, std::map< std::string, std::string > &m)
This routine is used to interpret the value portions of XML elements that contain colon separated pai...
Classes providing support for XML data files.