LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
UTIL::LCWarning Class Reference

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 LCWarninggetInstance ()
 

Detailed Description

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.

Author
engels
Version

Member Function Documentation

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


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