UTIL::LCWarning Class Reference

Utility class to show warnings in LCIO. More...

#include <UTIL/LCWarning.h>

List of all members.

Classes

struct  _warning_cfg_struct

Public Member Functions

void registerWarning (const std::string &id, const std::string &txt, int max=10)
 register a new warning
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:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1