Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
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)

Private Attributes

std::ostream & outStr

Detailed Description

Definition at line 39 of file ErrorOutput.cpp.


Constructor & Destructor Documentation

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

Definition at line 45 of file ErrorOutput.cpp.

: outStr( str ) {}

Member Function Documentation

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

Implements moab::ErrorOutputStream.

Definition at line 50 of file ErrorOutput.cpp.

References outStr.

{
    outStr << "[" << rank << "]MOAB ERROR: " << str << std::endl;
    outStr.flush();
}
void moab::CxxErrorStream::println ( const char *  str) [virtual]

Implements moab::ErrorOutputStream.

Definition at line 56 of file ErrorOutput.cpp.

References outStr.

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

Member Data Documentation

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

Definition at line 42 of file ErrorOutput.cpp.

Referenced by println().

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines