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

Public Member Functions

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

Private Attributes

FILE * filePtr

Detailed Description

Definition at line 16 of file ErrorOutput.cpp.


Constructor & Destructor Documentation

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

Definition at line 22 of file ErrorOutput.cpp.

: filePtr( filep ) {}

Member Function Documentation

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

Implements moab::ErrorOutputStream.

Definition at line 27 of file ErrorOutput.cpp.

References filePtr.

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

Implements moab::ErrorOutputStream.

Definition at line 33 of file ErrorOutput.cpp.

References filePtr.

{
    fprintf( filePtr, "MOAB ERROR: %s\n", str );
    fflush( filePtr );
}

Member Data Documentation

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