moab
moab::CxxDebugStream Class Reference
Inheritance diagram for moab::CxxDebugStream:
moab::DebugOutputStream

List of all members.

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 45 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 49 of file DebugOutput.cpp.

  { 
    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 55 of file DebugOutput.cpp.

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

Member Data Documentation

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

Definition at line 43 of file DebugOutput.cpp.


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