Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::CxxErrorStream Class Reference
+ Inheritance diagram for moab::CxxErrorStream:
+ Collaboration diagram for moab::CxxErrorStream:

Public Member Functions

 CxxErrorStream (std::ostream &str)
 
void println (int rank, const char *str)
 
void println (const char *str)
 
- Public Member Functions inherited from moab::ErrorOutputStream
 ErrorOutputStream ()
 
virtual ~ErrorOutputStream ()
 

Private Attributes

std::ostream & outStr
 

Detailed Description

Definition at line 39 of file ErrorOutput.cpp.

Constructor & Destructor Documentation

◆ CxxErrorStream()

moab::CxxErrorStream::CxxErrorStream ( std::ostream &  str)
inline

Definition at line 45 of file ErrorOutput.cpp.

45 : outStr( str ) {}

Member Function Documentation

◆ println() [1/2]

void moab::CxxErrorStream::println ( const char *  str)
virtual

Implements moab::ErrorOutputStream.

Definition at line 56 of file ErrorOutput.cpp.

57 {
58  outStr << "MOAB ERROR: " << str << std::endl;
59  outStr.flush();
60 }

References outStr.

◆ println() [2/2]

void moab::CxxErrorStream::println ( int  rank,
const char *  str 
)
virtual

Implements moab::ErrorOutputStream.

Definition at line 50 of file ErrorOutput.cpp.

51 {
52  outStr << "[" << rank << "]MOAB ERROR: " << str << std::endl;
53  outStr.flush();
54 }

References outStr.

Member Data Documentation

◆ outStr

std::ostream& moab::CxxErrorStream::outStr
private

Definition at line 42 of file ErrorOutput.cpp.

Referenced by println().


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