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

Public Member Functions

 FILEDebugStream (FILE *filep)
void println (int rank, const char *pfx, const char *str)
void println (const char *pfx, const char *str)

Private Attributes

FILE * filePtr

Detailed Description

Definition at line 17 of file DebugOutput.cpp.


Constructor & Destructor Documentation

moab::FILEDebugStream::FILEDebugStream ( FILE *  filep) [inline]

Definition at line 23 of file DebugOutput.cpp.

: filePtr( filep ) {}

Member Function Documentation

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

Implements moab::DebugOutputStream.

Definition at line 27 of file DebugOutput.cpp.

References filePtr.

{
    fprintf( filePtr, "%3d  %s%s\n", rank, pfx, str );
    fflush( filePtr );
}
void moab::FILEDebugStream::println ( const char *  pfx,
const char *  str 
) [virtual]

Implements moab::DebugOutputStream.

Definition at line 32 of file DebugOutput.cpp.

References filePtr.

{
    fputs( pfx, filePtr );
    fputs( str, filePtr );
    fputc( '\n', filePtr );
    fflush( filePtr );
}

Member Data Documentation

Definition at line 20 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