Utility class to show warnings in LCIO. More...
#include <UTIL/LCWarning.h>
Public Member Functions | |
void | registerWarning (const std::string &id, const std::string &txt, int max=10) |
register a new warning More... | |
void | printWarning (const std::string &id) |
print the warning text associated to the given id | |
Static Public Member Functions | |
static LCWarning & | getInstance () |
Utility class to show warnings in LCIO.
The maximum amount of warnings printed is configurable and per default set to 10.
Warnings are shown one last time when application ends.
void UTIL::LCWarning::registerWarning | ( | const std::string & | id, |
const std::string & | txt, | ||
int | max = 10 |
||
) |
register a new warning
id = "a_unique_string_to_identify_the_warning" txt = "the world will end tomorrow, leave the room immediately and go get some fun ;)" max = the maximum amount of times to display the warning