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.
Protected Member Functions | List of all members
Kratos::FileLoggerOutput Class Reference

FileLoggerOutput is a class for all file logger outputs. More...

#include <file_logger_output.h>

Inheritance diagram for Kratos::FileLoggerOutput:
Collaboration diagram for Kratos::FileLoggerOutput:

Public Member Functions

Type Definitions
 KRATOS_CLASS_POINTER_DEFINITION (FileLoggerOutput)
 Pointer definition of FileLoggerOutput. More...
 
Life Cycle
 FileLoggerOutput (const std::string &rName)
 
 ~FileLoggerOutput ()
 Destructor. More...
 
Operators
FileLoggerOutputoperator= (FileLoggerOutput const &Other)=delete
 
Input and output
virtual std::string Info () const override
 Turn back information as a string. More...
 
- Public Member Functions inherited from Kratos::LoggerOutput
 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...
 
 LoggerOutput (std::ostream &rOutputStream)
 
 LoggerOutput (LoggerOutput const &Other)
 
virtual ~LoggerOutput ()
 Destructor. More...
 
LoggerOutputoperator= (LoggerOutput const &Other)=delete
 
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)
 
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 >
LoggerOutputoperator<< (StreamValueType const &rValue)
 string stream function More...
 
LoggerOutputoperator<< (std::ostream &(*pf)(std::ostream &))
 Manipulator stream function. More...
 
LoggerOutputoperator<< (const char *rString)
 char stream function More...
 

Protected Member Functions

void SetMessageColor (LoggerMessage::Severity MessageSeverity) override
 
void ResetMessageColor (LoggerMessage::Severity MessageSeverity) override
 
- Protected Member Functions inherited from Kratos::LoggerOutput
 LoggerOutput ()
 
std::ostream & GetStream ()
 
std::ostream * pGetStream ()
 
void SetStream (std::ostream *pStream)
 

Detailed Description

FileLoggerOutput is a class for all file logger outputs.

FileLoggerOutput creates a log file and writes to it.

Constructor & Destructor Documentation

◆ FileLoggerOutput()

Kratos::FileLoggerOutput::FileLoggerOutput ( const std::string &  rName)
explicit

◆ ~FileLoggerOutput()

Kratos::FileLoggerOutput::~FileLoggerOutput ( )
inline

Destructor.

Member Function Documentation

◆ Info()

std::string Kratos::FileLoggerOutput::Info ( ) const
overridevirtual

Turn back information as a string.

Reimplemented from Kratos::LoggerOutput.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::FileLoggerOutput::KRATOS_CLASS_POINTER_DEFINITION ( FileLoggerOutput  )

Pointer definition of FileLoggerOutput.

◆ operator=()

FileLoggerOutput& Kratos::FileLoggerOutput::operator= ( FileLoggerOutput const &  Other)
delete

◆ ResetMessageColor()

void Kratos::FileLoggerOutput::ResetMessageColor ( LoggerMessage::Severity  MessageSeverity)
inlineoverrideprotectedvirtual

Reimplemented from Kratos::LoggerOutput.

◆ SetMessageColor()

void Kratos::FileLoggerOutput::SetMessageColor ( LoggerMessage::Severity  MessageSeverity)
inlineoverrideprotectedvirtual

Reimplemented from Kratos::LoggerOutput.


The documentation for this class was generated from the following files: