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

Private Attributes

FILE * filePtr
 

Additional Inherited Members

- Protected Attributes inherited from moab::DebugOutputStream
int referenceCount
 

Detailed Description

Definition at line 17 of file DebugOutput.cpp.

Constructor & Destructor Documentation

◆ FILEDebugStream()

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

Definition at line 23 of file DebugOutput.cpp.

23 : filePtr( filep ) {}

Member Function Documentation

◆ println() [1/2]

void moab::FILEDebugStream::println ( const char *  pfx,
const char *  str 
)
virtual

Implements moab::DebugOutputStream.

Definition at line 32 of file DebugOutput.cpp.

33 {
34  fputs( pfx, filePtr );
35  fputs( str, filePtr );
36  fputc( '\n', filePtr );
37  fflush( filePtr );
38 }

References filePtr.

◆ println() [2/2]

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

Implements moab::DebugOutputStream.

Definition at line 27 of file DebugOutput.cpp.

28 {
29  fprintf( filePtr, "%3d %s%s\n", rank, pfx, str );
30  fflush( filePtr );
31 }

References filePtr.

Member Data Documentation

◆ filePtr

FILE* moab::FILEDebugStream::filePtr
private

Definition at line 20 of file DebugOutput.cpp.

Referenced by println().


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