1 #ifndef moab_DEBUG_OUTPUT_HPP
2 #define moab_DEBUG_OUTPUT_HPP
17 class DebugOutputStream;
68 DebugOutput( FILE* str,
int rank,
unsigned verbosity = 0 );
73 DebugOutput( std::ostream& str,
unsigned verbosity = 0 );
79 DebugOutput( std::ostream& str,
int rank,
unsigned verbosity = 0 );
99 DebugOutput(
const char* pfx, FILE* str,
unsigned verbosity = 0 );
106 DebugOutput(
const char* pfx, FILE* str,
int rank,
unsigned verbosity = 0 );
112 DebugOutput(
const char* pfx, std::ostream& str,
unsigned verbosity = 0 );
119 DebugOutput(
const char* pfx, std::ostream& str,
int rank,
unsigned verbosity = 0 );
178 void print(
int verbosity,
const char* str )
184 void print(
int verbosity,
const std::string& str )
190 inline void printf(
int verbosity,
const char* fmt, ... )
MB_PRINTF( 2 );
195 void tprint(
int verbosity, const
char* str )
203 void tprint(
int verbosity,
const std::string& str )
215 void print(
int verbosity, const
char* pfx, const
Range& range )
263 inline bool check(
unsigned verbosity )
278 virtual void println(
const char* pfx,
const char* str ) = 0;
279 virtual void println(
int rank,
const char* pfx,
const char* str ) = 0;
284 if(
check( verbosity ) )
286 va_list args1, args2;
287 va_start( args1, fmt );
288 va_start( args2, fmt );
297 if(
check( verbosity ) )
299 va_list args1, args2;
300 va_start( args1, fmt );
301 va_start( args2, fmt );