MOAB: Mesh Oriented datABase  (version 5.3.1)
moab::CxxDebugStream Class Reference
+ Inheritance diagram for moab::CxxDebugStream:
+ Collaboration diagram for moab::CxxDebugStream:

Public Member Functions

 CxxDebugStream (std::ostream &str)
void println (int rank, const char *pfx, const char *str)
void println (const char *pfx, const char *str)

Private Attributes

std::ostream & outStr

Detailed Description

Definition at line 40 of file DebugOutput.cpp.


Constructor & Destructor Documentation

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

Definition at line 46 of file DebugOutput.cpp.

: outStr( str ) {}

Member Function Documentation

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

Implements moab::DebugOutputStream.

Definition at line 50 of file DebugOutput.cpp.

References outStr.

{
    outStr.width( 3 );
    outStr << rank << "  " << pfx << str << std::endl;
    outStr.flush();
}
void moab::CxxDebugStream::println ( const char *  pfx,
const char *  str 
) [virtual]

Implements moab::DebugOutputStream.

Definition at line 56 of file DebugOutput.cpp.

References outStr.

{
    outStr << pfx << str << std::endl;
    outStr.flush();
}

Member Data Documentation

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

Definition at line 43 of file DebugOutput.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