61 void addFloat(XML_Node& node,
const std::string& titleString,
62 const doublereal value,
const std::string& unitsString=
"",
63 const std::string& typeString=
"",
const doublereal minval=
Undef,
64 const doublereal maxval=
Undef);
108 void addFloatArray(XML_Node& node,
const std::string& titleString,
109 const size_t n,
const doublereal*
const values,
110 const std::string& unitsString=
"",
const std::string& typeString=
"",
111 const doublereal minval=
Undef,
112 const doublereal maxval=
Undef);
156 void addNamedFloatArray(XML_Node& parentNode,
const std::string& name,
const size_t n,
157 const doublereal*
const vals,
const std::string units =
"",
158 const std::string type =
"",
159 const doublereal minval=
Undef,
160 const doublereal maxval=
Undef);
187 void addString(XML_Node& node,
const std::string& titleString,
188 const std::string& valueString,
const std::string& typeString=
"");
240 const bool convert=
true,
const std::string& unitsString=
"",
241 const std::string& nodeName =
"floatArray");
252 void getStringArray(
const XML_Node& node, std::vector<std::string>& v);
271 void getMap(
const XML_Node& node, std::map<std::string, std::string>& m);
300 int getPairs(
const XML_Node& node, std::vector<std::string>& key,
301 std::vector<std::string>& val);
341 const std::vector<std::string>& keyStringRow,
342 const std::vector<std::string>& keyStringCol,
343 Array2D& returnValues,
const bool convert =
true,
344 const bool matrixSymmetric =
false);
376 void getIntegers(
const XML_Node& node, std::map<std::string,int>& v);
408 doublereal
getFloat(
const XML_Node& parent,
const std::string& name,
409 const std::string& type=
"");
441 doublereal
getFloatCurrent(
const XML_Node& currXML,
const std::string& type=
"");
473 doublereal& fltRtn,
const std::string& type=
"");
499 int getInteger(
const XML_Node& parent,
const std::string& name);
528 std::string& modelName);
537 XML_Node*
getByTitle(
const XML_Node& node,
const std::string& title);
569 void getString(
const XML_Node& node,
const std::string& titleString,
570 std::string& valueString, std::string& typeString);
596 const std::string& nameString);
605 void ct2ctml(
const char* file,
const int debug = 0);
632 void ck2cti(
const std::string& in_file,
const std::string& thermo_file=
"",
633 const std::string& transport_file=
"",
634 const std::string& id_tag=
"gas");
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...
void addFloatArray(XML_Node &node, const std::string &title, const size_t n, const doublereal *const vals, const std::string &units, const std::string &type, const doublereal minval, const doublereal maxval)
This function adds a child node with the name, "floatArray", with a value consisting of a comma separ...
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 addNamedFloatArray(XML_Node &node, const std::string &name, const size_t n, const doublereal *const vals, const std::string units, const std::string type, const doublereal minval, const doublereal maxval)
This function adds a child node with the name given by the first parameter with a value consisting of...
size_t getFloatArray(const XML_Node &node, vector_fp &v, const bool convert, const std::string &unitsString, const std::string &nodeName)
This function reads the current node or a child node of the current node with the default name...
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...
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
const doublereal Undef
Fairly random number to be used to initialize variables against to see if they are subsequently defin...
void getIntegers(const XML_Node &node, std::map< std::string, int > &v)
Get a vector of integer values from a child element.
doublereal getFloatCurrent(const XML_Node &node, const std::string &type)
Get a floating-point value from the current XML element.
void ck2cti(const std::string &in_file, const std::string &thermo_file, const std::string &transport_file, const std::string &id_tag)
Convert a Chemkin-format mechanism into a CTI file.
Classes providing support for XML data files.
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...
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 addFloat(XML_Node &node, const std::string &title, const doublereal val, const std::string &units, const std::string &type, const doublereal minval, const doublereal maxval)
This function adds a child node with the name, "float", with a value consisting of a single floating ...
void getMatrixValues(const XML_Node &node, const std::vector< std::string > &keyStringRow, const std::vector< std::string > &keyStringCol, Array2D &retnValues, const bool convert, const bool matrixSymmetric)
This function interprets the value portion of an XML element as a series of "Matrix ids and entries" ...
int getInteger(const XML_Node &parent, const std::string &name)
Get an integer value from a child element.
bool getOptionalModel(const XML_Node &parent, const std::string &nodeName, std::string &modelName)
Get an optional model name from a named child node.
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...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
void getStringArray(const XML_Node &node, std::vector< std::string > &v)
This function interprets the value portion of an XML element as a string.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
Namespace for the Cantera kernel.
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.