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.
|
LoggerOutput is the base class for all logger outputs. More...
#include <logger_output.h>
Public Member Functions | |
Type Definitions | |
KRATOS_DEFINE_LOCAL_FLAG (WARNING_PREFIX) | |
KRATOS_DEFINE_LOCAL_FLAG (INFO_PREFIX) | |
KRATOS_DEFINE_LOCAL_FLAG (DETAIL_PREFIX) | |
KRATOS_DEFINE_LOCAL_FLAG (DEBUG_PREFIX) | |
KRATOS_DEFINE_LOCAL_FLAG (TRACE_PREFIX) | |
KRATOS_CLASS_POINTER_DEFINITION (LoggerOutput) | |
Pointer definition of LoggerOutput. More... | |
Life Cycle | |
LoggerOutput (std::ostream &rOutputStream) | |
LoggerOutput (LoggerOutput const &Other) | |
virtual | ~LoggerOutput () |
Destructor. More... | |
Operators | |
LoggerOutput & | operator= (LoggerOutput const &Other)=delete |
Access | |
virtual void | WriteHeader () |
virtual void | WriteMessage (LoggerMessage const &TheMessage) |
virtual void | Flush () |
void | SetMaxLevel (std::size_t TheLevel) |
std::size_t | GetMaxLevel () const |
void | SetSeverity (LoggerMessage::Severity const &TheSeverity) |
LoggerMessage::Severity | GetSeverity () const |
void | SetCategory (LoggerMessage::Category const &TheCategory) |
LoggerMessage::Category | GetCategory () const |
void | SetOption (const Kratos::Flags ThisFlag, bool Value) |
bool | GetOption (const Kratos::Flags ThisFlag) |
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 > | |
LoggerOutput & | operator<< (StreamValueType const &rValue) |
string stream function More... | |
LoggerOutput & | operator<< (std::ostream &(*pf)(std::ostream &)) |
Manipulator stream function. More... | |
LoggerOutput & | operator<< (const char *rString) |
char stream function More... | |
Protected Member Functions | |
LoggerOutput () | |
std::ostream & | GetStream () |
std::ostream * | pGetStream () |
void | SetStream (std::ostream *pStream) |
virtual void | SetMessageColor (LoggerMessage::Severity MessageSeverity) |
virtual void | ResetMessageColor (LoggerMessage::Severity MessageSeverity) |
LoggerOutput is the base class for all logger outputs.
LoggerOutput defines the interface for all logger outputs and also provides the basic (and default) functionalities to be extended in other outputs
|
inlineexplicit |
|
inline |
|
inlinevirtual |
Destructor.
|
inlineprotected |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
virtual |
Turn back information as a string.
Reimplemented in Kratos::LoggerTableOutput, and Kratos::FileLoggerOutput.
Kratos::LoggerOutput::KRATOS_CLASS_POINTER_DEFINITION | ( | LoggerOutput | ) |
Pointer definition of LoggerOutput.
Kratos::LoggerOutput::KRATOS_DEFINE_LOCAL_FLAG | ( | DEBUG_PREFIX | ) |
Kratos::LoggerOutput::KRATOS_DEFINE_LOCAL_FLAG | ( | DETAIL_PREFIX | ) |
Kratos::LoggerOutput::KRATOS_DEFINE_LOCAL_FLAG | ( | INFO_PREFIX | ) |
Kratos::LoggerOutput::KRATOS_DEFINE_LOCAL_FLAG | ( | TRACE_PREFIX | ) |
Kratos::LoggerOutput::KRATOS_DEFINE_LOCAL_FLAG | ( | WARNING_PREFIX | ) |
LoggerOutput & Kratos::LoggerOutput::operator<< | ( | const char * | rString | ) |
char stream function
LoggerOutput & Kratos::LoggerOutput::operator<< | ( | std::ostream &(*)(std::ostream &) | pf | ) |
Manipulator stream function.
|
inline |
string stream function
|
delete |
|
inlineprotected |
|
virtual |
Print object's data.
Reimplemented in Kratos::LoggerTableOutput.
|
virtual |
Print information about this object.
Reimplemented in Kratos::LoggerTableOutput.
|
protectedvirtual |
Reimplemented in Kratos::FileLoggerOutput.
|
inline |
|
inline |
|
protectedvirtual |
Reimplemented in Kratos::FileLoggerOutput.
|
inline |
|
inline |
|
inlineprotected |
|
virtual |
Reimplemented in Kratos::LoggerTableOutput.
|
virtual |
Reimplemented in Kratos::LoggerTableOutput.