v0.14.0
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MoFEM::LogManager::InternalData Struct Reference
Inheritance diagram for MoFEM::LogManager::InternalData:
[legend]
Collaboration diagram for MoFEM::LogManager::InternalData:
[legend]

Classes

class  NulOStream
 
class  NulStreambuf
 
class  SelfStreamBuf
 
struct  SynchronizedStreamBuf
 
struct  WorldStreamBuf
 

Public Member Functions

boost::shared_ptr< std::ostream > getStrmSelf ()
 
boost::shared_ptr< std::ostream > getStrmWorld ()
 
boost::shared_ptr< std::ostream > getStrmSync ()
 
boost::shared_ptr< std::ostream > getStrmNull ()
 
 InternalData (MPI_Comm comm)
 
virtual ~InternalData ()=default
 

Public Attributes

SelfStreamBuf selfBuf
 
WorldStreamBuf worldBuf
 
SynchronizedStreamBuf syncBuf
 
std::ostream strmSelf
 
std::ostream strmWorld
 
std::ostream strmSync
 
NulOStream nullSelf
 

Static Public Attributes

static bool logQuiet = false
 
static bool noColors = false
 
static bool sinksAdd = true
 
static bool logTime = false
 
static std::map< std::string, LoggerTypelogChannels
 

Detailed Description

Definition at line 34 of file LogManager.cpp.

Constructor & Destructor Documentation

◆ InternalData()

MoFEM::LogManager::InternalData::InternalData ( MPI_Comm  comm)
inline

Definition at line 124 of file LogManager.cpp.

125  : worldBuf(comm), syncBuf(comm), strmSelf(&selfBuf), strmWorld(&worldBuf),
126  strmSync(&syncBuf) {}

◆ ~InternalData()

virtual MoFEM::LogManager::InternalData::~InternalData ( )
virtualdefault

Member Function Documentation

◆ getStrmNull()

boost::shared_ptr<std::ostream> MoFEM::LogManager::InternalData::getStrmNull ( )
inline

Definition at line 120 of file LogManager.cpp.

120  {
121  return boost::shared_ptr<std::ostream>(shared_from_this(), &nullSelf);
122  }

◆ getStrmSelf()

boost::shared_ptr<std::ostream> MoFEM::LogManager::InternalData::getStrmSelf ( )
inline

Definition at line 111 of file LogManager.cpp.

111  {
112  return boost::shared_ptr<std::ostream>(shared_from_this(), &strmSelf);
113  }

◆ getStrmSync()

boost::shared_ptr<std::ostream> MoFEM::LogManager::InternalData::getStrmSync ( )
inline

Definition at line 117 of file LogManager.cpp.

117  {
118  return boost::shared_ptr<std::ostream>(shared_from_this(), &strmSync);
119  }

◆ getStrmWorld()

boost::shared_ptr<std::ostream> MoFEM::LogManager::InternalData::getStrmWorld ( )
inline

Definition at line 114 of file LogManager.cpp.

114  {
115  return boost::shared_ptr<std::ostream>(shared_from_this(), &strmWorld);
116  }

Member Data Documentation

◆ logChannels

std::map< std::string, LogManager::LoggerType > MoFEM::LogManager::InternalData::logChannels
static

Definition at line 109 of file LogManager.cpp.

◆ logQuiet

bool MoFEM::LogManager::InternalData::logQuiet = false
static

Definition at line 104 of file LogManager.cpp.

◆ logTime

bool MoFEM::LogManager::InternalData::logTime = false
static

Definition at line 107 of file LogManager.cpp.

◆ noColors

bool MoFEM::LogManager::InternalData::noColors = false
static

Definition at line 105 of file LogManager.cpp.

◆ nullSelf

NulOStream MoFEM::LogManager::InternalData::nullSelf

Definition at line 102 of file LogManager.cpp.

◆ selfBuf

SelfStreamBuf MoFEM::LogManager::InternalData::selfBuf

Definition at line 88 of file LogManager.cpp.

◆ sinksAdd

bool MoFEM::LogManager::InternalData::sinksAdd = true
static

Definition at line 106 of file LogManager.cpp.

◆ strmSelf

std::ostream MoFEM::LogManager::InternalData::strmSelf

Definition at line 92 of file LogManager.cpp.

◆ strmSync

std::ostream MoFEM::LogManager::InternalData::strmSync

Definition at line 94 of file LogManager.cpp.

◆ strmWorld

std::ostream MoFEM::LogManager::InternalData::strmWorld

Definition at line 93 of file LogManager.cpp.

◆ syncBuf

SynchronizedStreamBuf MoFEM::LogManager::InternalData::syncBuf

Definition at line 90 of file LogManager.cpp.

◆ worldBuf

WorldStreamBuf MoFEM::LogManager::InternalData::worldBuf

Definition at line 89 of file LogManager.cpp.


The documentation for this struct was generated from the following file:
MoFEM::LogManager::InternalData::nullSelf
NulOStream nullSelf
Definition: LogManager.cpp:102
MoFEM::LogManager::InternalData::strmWorld
std::ostream strmWorld
Definition: LogManager.cpp:93
MoFEM::LogManager::InternalData::strmSelf
std::ostream strmSelf
Definition: LogManager.cpp:92
MoFEM::LogManager::InternalData::selfBuf
SelfStreamBuf selfBuf
Definition: LogManager.cpp:88
MoFEM::LogManager::InternalData::worldBuf
WorldStreamBuf worldBuf
Definition: LogManager.cpp:89
MoFEM::LogManager::InternalData::strmSync
std::ostream strmSync
Definition: LogManager.cpp:94
MoFEM::LogManager::InternalData::syncBuf
SynchronizedStreamBuf syncBuf
Definition: LogManager.cpp:90