FastJet 3.0.0
Public Member Functions | Static Public Member Functions
fastjet::LimitedWarning Class Reference

class to provide facilities for giving warnings up to some maximum number of times and to provide global summaries of warnings that have been issued. More...

#include <fastjet/LimitedWarning.hh>

List of all members.

Public Member Functions

 LimitedWarning ()
 constructor that provides a default maximum number of warnings
 LimitedWarning (int max_warn)
 constructor that provides a user-set max number of warnings
void warn (const std::string &warning)
 outputs a warning to standard error (or the user's default warning stream if set)
void warn (const std::string &warning, std::ostream *ostr)
 outputs a warning to the specified stream

Static Public Member Functions

static void set_default_stream (std::ostream *ostr)
 sets the default output stream for all warnings (by default cerr; passing a null pointer prevents warnings from being output)
static void set_default_max_warn (int max_warn)
 sets the default maximum number of warnings of a given kind before warning messages are silenced.
static std::string summary ()
 returns a summary of all the warnings that came through the LimiteWarning class

Detailed Description

class to provide facilities for giving warnings up to some maximum number of times and to provide global summaries of warnings that have been issued.

Definition at line 45 of file LimitedWarning.hh.


Member Function Documentation

void fastjet::LimitedWarning::warn ( const std::string &  warning)

outputs a warning to standard error (or the user's default warning stream if set)

output a warning to ostr

Definition at line 43 of file LimitedWarning.cc.

static void fastjet::LimitedWarning::set_default_max_warn ( int  max_warn) [inline, static]

sets the default maximum number of warnings of a given kind before warning messages are silenced.

Definition at line 69 of file LimitedWarning.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends