Cantera
2.1.2
|
Classes | |
class | Application |
Class to hold global data. More... | |
class | Logger |
Base class for 'loggers' that write text messages to log files. More... | |
Functions | |
void | writelog (const std::string &msg) |
Write a message to the screen. More... | |
void | setLogger (Logger *logwriter) |
Install a logger. More... | |
void | writelogf (const char *fmt,...) |
Write a formatted message to the screen. More... | |
void writelog | ( | const std::string & | msg | ) |
Write a message to the screen.
The string may be of any length, and may contain end-of-line characters. This method is used throughout Cantera to write log messages. It can also be called by user programs. The advantage of using writelog over writing directly to the standard output is that messages written with writelog will display correctly even when Cantera is used from MATLAB or other application that do not have a standard output stream.
msg | c++ string to be written to the screen |
Definition at line 143 of file application.cpp.
Referenced by Application::writelog().
void setLogger | ( | Logger * | logwriter | ) |
Install a logger.
Called by the language interfaces to install an appropriate logger. The logger is used for the writelog() function
logwriter | Pointer to a logger object |
Definition at line 126 of file application.cpp.
Referenced by Application::setLogger().
void writelogf | ( | const char * | fmt, |
... | |||
) |
Write a formatted message to the screen.
Using the printf formatting of C, write a message to the screen with variable values.
Here, we format an internal string with the correct values and then feed it into writelog().
fmt | c format string for the following arguments |
Definition at line 48 of file global.cpp.
References Cantera::writelog().
Referenced by Cantera::BasisOptimize(), ChemEquil::dampStep(), Cantera::ElemRearrange(), ChemEquil::equilibrate(), ChemEquil::equilResidual(), ChemEquil::estimateElementPotentials(), ChemEquil::estimateEP_Brinkley(), SquareMatrix::factor(), SquareMatrix::factorQR(), ctml::get_CTML_Tree(), Cantera::invert(), mlequ(), print_stringTrunc(), SquareMatrix::rcond(), BandMatrix::rcond(), SquareMatrix::rcondQR(), ChemEquil::setInitialMoles(), SquareMatrix::solve(), Cantera::solve(), RootFind::solve(), and SquareMatrix::solveQR().