Cantera
2.3.0
|
Class to carry out messages. More...
#include <application.h>
Public Member Functions | |
Messages (const Messages &r)=delete | |
Messages & | operator= (const Messages &r)=delete |
void | addError (const std::string &r, const std::string &msg="") |
Set an error condition in the application class without throwing an exception. More... | |
int | getErrorCount () |
Return the number of errors that have been encountered so far. More... | |
void | popError () |
Discard the last error message. More... | |
std::string | lastErrorMessage () |
Retrieve the last error message in a string. More... | |
void | getErrors (std::ostream &f) |
Prints all of the error messages to an ostream. More... | |
void | logErrors () |
Prints all of the error messages using writelog. More... | |
void | writelog (const std::string &msg) |
Write a message to the screen. More... | |
void | writelogendl () |
Write an end of line character to the screen and flush output. More... | |
void | setLogger (Logger *logwriter) |
Install a logger. More... | |
Protected Attributes | |
std::vector< std::string > | errorMessage |
Current list of error messages. More... | |
std::unique_ptr< Logger > | logwriter |
Current pointer to the logwriter. More... | |
Class to carry out messages.
Definition at line 48 of file application.h.
void writelogendl | ( | ) |
Write an end of line character to the screen and flush output.
Definition at line 95 of file application.cpp.
Referenced by Application::writelogendl().
|
protected |
Current list of error messages.
Definition at line 151 of file application.h.
Referenced by Application::Messages::popError().
|
protected |
Current pointer to the logwriter.
Definition at line 154 of file application.h.