49 void setError(
const std::string& r,
const std::string& msg);
151 void writelog(
const std::string& msg);
154 inline void writelog(
const std::string& msg,
int loglevel)
178 void error(
const std::string& msg);
181 void warn_deprecated(
const std::string& method,
const std::string& extra=
"");
194 doublereal
toSI(
const std::string& unit);
204 XML_Node*
get_XML_File(
const std::string& file,
int debug = 0);
209 #ifdef WITH_HTML_LOGS
234 void beginLogGroup(
const std::string& title,
int loglevel=-99);
237 void addLogEntry(
const std::string& tag,
const std::string& value);
240 void addLogEntry(
const std::string& tag, doublereal value);
243 void addLogEntry(
const std::string& tag,
int value);
255 inline void beginLogGroup(
const std::string& title,
int loglevel=-99) {}
256 inline void addLogEntry(
const std::string& tag,
const std::string& value) {}
257 inline void addLogEntry(
const std::string& tag, doublereal value) {}
258 inline void addLogEntry(
const std::string& tag,
int value) {}
260 inline void endLogGroup(
const std::string& title=
"") {}
261 inline void write_logfile(
const std::string& file =
"log.html") {}
287 XML_Node*
get_XML_Node(
const std::string& file_ID, XML_Node* root);
319 const std::string& file_ID,
324 inline T
clip(
const T& value,
const T& lower,
const T& upper)
326 return std::max(lower, std::min(upper, value));
XML_Node * get_XML_Node(const std::string &file_ID, XML_Node *root)
This routine will locate an XML node in either the input XML tree or in another input file specified ...
XML_Node * get_XML_File(const std::string &file, int debug)
Return a pointer to the XML tree for a Cantera input file.
void popError()
Discard the last error message.
void beginLogGroup(const std::string &title, int loglevel)
Create a new group for log messages.
string lastErrorMessage()
Retrieve the last error message in a string.
doublereal actEnergyToSI(const std::string &unit)
Return the conversion factor to convert activation energy unit std::string 'unit' to Kelvin...
void showErrors(std::ostream &f)
Prints all of the error messages to an ostream.
doublereal toSI(const std::string &unit)
Return the conversion factor to convert unit std::string 'unit' to SI units.
void thread_complete()
Delete and free memory allocated per thread in multithreaded applications.
void setLogger(Logger *logwriter)
Install a logger.
void setError(const std::string &r, const std::string &msg)
Set an error condition in the application class without throwing an exception.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
T clip(const T &value, const T &lower, const T &upper)
Clip value such that lower <= value <= upper.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
void close_XML_File(const std::string &file)
Close an XML File.
void writelogf(const char *fmt,...)
Write a formatted message to the screen.
const int g_DEBUG_MODE
Definition of whether the DEBUG_MODE environment is turned on within Cantera.
void error(const std::string &msg)
Write an error message and quit.
void appdelete()
Delete and free all memory associated with the application.
void endLogGroup(const std::string &title)
Close the current group of log messages.
void addLogEntry(const std::string &tag, const std::string &value)
Add an entry to an HTML log file.
void writelogendl()
Write an end of line character to the screen and flush output.
void suppress_deprecation_warnings()
Globally disable printing of deprecation warnings.
void write_logfile(const std::string &file)
Write the HTML log file.
void writelog(const std::string &msg)
Write a message to the screen.
int nErrors()
Return the number of errors that have been encountered so far.
XML_Node * get_XML_NameID(const std::string &nameTarget, const std::string &file_ID, XML_Node *root)
This routine will locate an XML node in either the input XML tree or in another input file specified ...