application.h Source File#
application.h
Go to the documentation of this file.
void writelogendl()
Write an end of line character to the screen and flush output.
Definition application.cpp:74
Class that stores thread messages for each thread, and retrieves them based on the thread id.
Definition application.h:168
Messages * operator->()
Provide a pointer dereferencing overloaded operator.
Definition application.cpp:87
map< std::thread::id, pMessages_t > threadMsgMap_t
Typedef for map between a thread and the message.
Definition application.h:183
bool warnings_suppressed()
Returns true if warnings should be suppressed.
Definition application.h:352
void use_legacy_rate_constants(bool legacy=true)
Set definition used for rate constant calculation.
Definition application.h:383
void suppress_deprecation_warnings()
Globally disable printing of deprecation warnings.
Definition application.h:327
vector< string > m_pythonSearchVersions
Versions of Python to consider when attempting to load user extensions.
Definition application.h:437
bool thermo_warnings_suppressed()
Returns true if thermo warnings should be suppressed.
Definition application.h:369
void warnlog(const string &warning, const string &msg)
Write a warning message to the screen.
Definition application.h:315
void make_deprecation_warnings_fatal()
Turns deprecation warnings into exceptions.
Definition application.h:334
static Application * Instance()
Return a pointer to the one and only instance of class Application.
Definition application.cpp:117
void addError(const string &r, const string &msg="")
Set an error condition in the application class without throwing an exception.
Definition application.h:209
void loadExtension(const string &extType, const string &name)
Load an extension implementing user-defined models.
Definition application.cpp:378
void warn_deprecated(const string &method, const string &extra="")
Print a warning indicating that method is deprecated.
Definition application.cpp:135
void searchPythonVersions(const string &versions)
Set the versions of Python to try when loading user-defined extensions, in order of preference.
Definition application.cpp:429
bool legacy_rate_constants_used()
Returns true if legacy rate constant definition is used.
Definition application.h:388
vector< string > inputDirs
Current vector of input directories to search for input files.
Definition application.h:434
void thread_complete()
Delete and free memory allocated per thread in multithreaded applications.
Definition application.cpp:156
set< string > warnings
Set of deprecation warnings that have been emitted (to suppress duplicates)
Definition application.h:440
void suppress_thermo_warnings(bool suppress=true)
Globally disable printing of warnings about problematic thermo data, such as NASA polynomials with di...
Definition application.h:364
void getErrors(std::ostream &f)
Prints all of the error messages to an ostream.
Definition application.h:229
int getErrorCount()
Return the number of errors that have been encountered so far.
Definition application.h:214
Application()
Constructor for class sets up the initial conditions Protected ctor access thru static member functio...
Definition application.cpp:110
static void ApplicationDestroy()
Static function that destroys the application class's data.
Definition application.cpp:126
void warn(const string &warning, const string &method, const string &extra="")
Generate a general purpose warning; repeated warnings are not suppressed.
Definition application.cpp:146
Base class for 'loggers' that write text messages to log files.
Definition logger.h:41
void addError(const string &r, const string &msg="")
Set an error condition in the application class without throwing an exception.
Definition application.cpp:45
void getErrors(std::ostream &f)
Prints all of the error messages to an ostream.
Definition application.cpp:199
int getErrorCount()
Return the number of errors that have been encountered so far.
Definition application.cpp:59
string getDataDirectories(const string &sep)
Get the Cantera data directories.
Definition application.h:279
void addDataDirectory(const string &dir)
Add a directory to the data file search path.
Definition application.cpp:284
void setDefaultDirectories()
Set the default directories for input files.
Definition application.cpp:216
void warnlog(const string &warning, const string &msg)
Write a warning message to the screen.
Definition application.cpp:79
Header for Base class for 'loggers' that write text messages to log files (see Logging and class Logg...
Generated by 1.9.7