29 if( status != 0 )
throw(
"StatusMessageReporting::StatusMessageReporting: Oops." );
51 std::string sep(
"" );
52 std::string message( a_prefix );
55 if( a_prefix ==
"" ) sep =
"\n";
58 if( a_reports == 0 )
break;
61 if( reportMessage !=
nullptr ) {
63 message += reportMessage;
64 free( reportMessage );
68 if( a_clear )
clear( );
83 std::string message( a_prefix );
87 if( a_reports == 0 )
break;
90 if( reportMessage !=
nullptr ) {
92 message += reportMessage;
93 free( reportMessage );
96 if( a_clear )
clear( );
~StatusMessageReporting()
std::string constructFullMessage(std::string const &a_prefix, int a_reports=1, bool a_clear=false)
std::string constructMessage(std::string a_prefix, int a_reports=1, bool a_clear=false)
char * smr_copyMessage(statusMessageReport const *report)
int smr_initialize(statusMessageReporting *smr, enum smr_status verbosity)
statusMessageReport const * smr_firstReport(statusMessageReporting const *smr)
void smr_release(statusMessageReporting *smr)
statusMessageReport const * smr_nextReport(statusMessageReport const *report)
char * smr_copyFullMessage(statusMessageReport const *report)