KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
LoggerMessage class holdes message and the properties of the message. More...
#include <logger_message.h>
Classes | |
class | DistributedFilter |
class | MessageSource |
Public Types | |
Enums | |
enum class | Severity { WARNING , INFO , DETAIL , DEBUG , TRACE } |
enum class | Category { STATUS , CRITICAL , STATISTICS , PROFILING , CHECKING } |
Type Definitions | |
using | TimePointType = std::chrono::steady_clock::time_point |
Public Member Functions | |
Life Cycle | |
LoggerMessage (std::string const &TheLabel) | |
LoggerMessage (LoggerMessage const &Other) | |
virtual | ~LoggerMessage () |
Destructor. More... | |
Operators | |
LoggerMessage & | operator= (LoggerMessage const &Other) |
Access | |
void | SetLabel (std::string const &TheLabel) |
std::string const & | GetLabel () const |
void | SetMessage (std::string const &TheMessage) |
std::string const & | GetMessage () const |
void | SetLevel (std::size_t TheLevel) |
std::size_t | GetLevel () const |
void | SetLocation (CodeLocation const &TheLocation) |
CodeLocation | GetLocation () const |
void | SetSeverity (Severity const &TheSeverity) |
Severity | GetSeverity () const |
void | SetCategory (Category const &TheCategory) |
Category | GetCategory () const |
bool | IsDistributed () const |
bool | WriteInThisRank () const |
int | GetSourceRank () const |
void | SetTime () |
TimePointType const & | GetTime () const |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
template<class StreamValueType > | |
LoggerMessage & | operator<< (StreamValueType const &rValue) |
string stream function More... | |
LoggerMessage & | operator<< (std::ostream &(*pf)(std::ostream &)) |
Manipulator stream function. More... | |
LoggerMessage & | operator<< (const char *rString) |
char stream function More... | |
LoggerMessage & | operator<< (CodeLocation const &TheLocation) |
Location stream function. More... | |
LoggerMessage & | operator<< (Severity const &TheSeverity) |
Severity stream function. More... | |
LoggerMessage & | operator<< (Category const &TheCategory) |
Category stream function. More... | |
LoggerMessage & | operator<< (DistributedFilter const &TheMessageSource) |
DistributedFilter stream function. More... | |
LoggerMessage & | operator<< (DataCommunicator const &TheDataCommunicator) |
DataCommunicator stream function. More... | |
LoggerMessage class holdes message and the properties of the message.
LoggerMessage holds the origin of the message, severity, level and the category of it. Most of the methods are defined in header to be inlined in order to increase the performance.
using Kratos::LoggerMessage::TimePointType = std::chrono::steady_clock::time_point |
|
strong |
|
strong |
|
inlineexplicit |
|
inline |
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Turn back information as a string.
|
inline |
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | Category const & | TheCategory | ) |
Category stream function.
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | CodeLocation const & | TheLocation | ) |
Location stream function.
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | const char * | rString | ) |
char stream function
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | DataCommunicator const & | TheDataCommunicator | ) |
DataCommunicator stream function.
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | DistributedFilter const & | TheMessageSource | ) |
DistributedFilter stream function.
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | Severity const & | TheSeverity | ) |
Severity stream function.
LoggerMessage & Kratos::LoggerMessage::operator<< | ( | std::ostream &(*)(std::ostream &) | pf | ) |
Manipulator stream function.
|
inline |
string stream function
|
inline |
|
virtual |
Print object's data.
|
virtual |
Print information about this object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |