global.cpp Source File#
global.cpp
Go to the documentation of this file.
File contains the FactoryBase class declarations.
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
bool hasKey(const string &key) const
Returns true if the map contains an item named key.
Definition AnyMap.cpp:1423
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
bool thermo_warnings_suppressed()
Returns true if thermo warnings should be suppressed.
Definition application.h:369
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 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
void thread_complete()
Delete and free memory allocated per thread in multithreaded applications.
Definition application.cpp:156
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
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
static vector< FactoryBase * > s_vFactoryRegistry
statically held list of Factories.
Definition FactoryBase.h:60
static void deleteFactories()
static function that deletes all factories in the internal registry maintained in a static variable
Definition FactoryBase.h:35
Base class for 'loggers' that write text messages to log files.
Definition logger.h:41
void use_legacy_rate_constants(bool legacy)
Set definition used for rate constant calculation.
Definition global.cpp:102
string demangle(const std::type_info &type)
Convert a type name to a human readable string, using boost::core::demangle if available.
Definition global.cpp:213
void suppress_deprecation_warnings()
Globally disable printing of deprecation warnings.
Definition global.cpp:67
void printStackTraceOnSegfault()
Enables printing a stacktrace to std::err if a segfault occurs.
Definition global.cpp:125
bool thermo_warnings_suppressed()
Returns true if thermo warnings should be suppressed.
Definition global.cpp:97
void make_deprecation_warnings_fatal()
Turns deprecation warnings into exceptions.
Definition global.cpp:72
bool legacy_rate_constants_used()
Returns true if legacy rate constant definition is used.
Definition global.cpp:107
void suppress_thermo_warnings(bool suppress)
Globally disable printing of warnings about problematic thermo data, such as NASA polynomials with di...
Definition global.cpp:92
string gitCommit()
Returns the hash of the git commit from which Cantera was compiled, if known.
Definition global.cpp:150
string getDataDirectories(const string &sep)
Get the Cantera data directories.
Definition global.cpp:164
void addDirectory(const string &dir)
Add a directory to the data file search path.
Definition global.cpp:159
void addDataDirectory(const string &dir)
Add a directory to the data file search path.
Definition application.cpp:284
void writelogendl()
Write an end of line character to the screen and flush output.
Definition global.cpp:41
void loadExtensions(const AnyMap &node)
Load extensions providing user-defined models from the extensions section of the given node.
Definition global.cpp:179
void loadExtension(const string &extType, const string &name)
Load an extension implementing user-defined models.
Definition global.cpp:174
void searchPythonVersions(const string &versions)
Set the versions of Python to try when loading user-defined extensions, in order of preference.
Definition global.cpp:189
void thread_complete()
Delete and free memory allocated per thread in multithreaded applications.
Definition global.cpp:140
void appdelete()
Delete and free all memory associated with the application.
Definition global.cpp:134
Generated by 1.9.7