9 using namespace Cantera;
16 static void printUsage()
18 cout <<
"cti2ctml [-h] infile.cti" << endl;
19 cout <<
" Translates a cti formated file to an xml file" << endl;
20 cout <<
" The xml file will be named ./basename(infile).xml" << endl;
21 cout <<
" - It will always be written to the current directory" << endl;
29 int main(
int argc,
char** argv)
35 for (
int j = 1; j < argc; j++) {
36 tok = string(argv[j]);
38 int nopt =
static_cast<int>(tok.size());
39 for (
int n = 1; n < nopt; n++) {
48 }
else if (infile ==
"") {
69 std::cout << err.
what() << std::endl;
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
Class XML_Node is a tree-based representation of the contents of an XML file.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
const char * what() const
Get a description of the error.
Classes providing support for XML data files.
Base class for exceptions thrown by Cantera classes.
void get_CTML_Tree(Cantera::XML_Node *rootPtr, const std::string &file, const int debug)
Read an ctml file from a file and fill up an XML tree.