Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
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)
 
- Public Member Functions inherited from moab::ErrorOutputStream
 ErrorOutputStream ()
 
virtual ~ErrorOutputStream ()
 

Private Attributes

FILE * filePtr
 

Detailed Description

Definition at line 16 of file ErrorOutput.cpp.

Constructor & Destructor Documentation

◆ FILEErrorStream()

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

Definition at line 22 of file ErrorOutput.cpp.

22 : filePtr( filep ) {}

Member Function Documentation

◆ println() [1/2]

void moab::FILEErrorStream::println ( const char *  str)
virtual

Implements moab::ErrorOutputStream.

Definition at line 33 of file ErrorOutput.cpp.

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

References filePtr.

◆ println() [2/2]

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

Implements moab::ErrorOutputStream.

Definition at line 27 of file ErrorOutput.cpp.

28 {
29  fprintf( filePtr, "[%d]MOAB ERROR: %s\n", rank, str );
30  fflush( filePtr );
31 }

References filePtr.

Member Data Documentation

◆ filePtr

FILE* moab::FILEErrorStream::filePtr
private

Definition at line 19 of file ErrorOutput.cpp.

Referenced by println().


The documentation for this class was generated from the following file: