Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

XANAVerbose Class Reference

#include <XANAVerbose.h>

List of all members.

Public Types

enum  FilterLevel { DebugLevel = 1, TestLevel = 5, InfoLevel = 8, SilentLevel = 9999 }
enum  { nFilterLevel = 4 }

Public Member Functions

 XANAVerbose (int il=TestLevel)
XANAVerboseoperator() (int il=TestLevel)
XANAVerboseoperator() (const std::string &il)
 operator bool () const
void verbose ()
void silent ()
void setFilterLevel (int il=TestLevel)
int getFilterLevel () const

Static Public Member Functions

const FilterLevellevels ()
const std::string * levelNames ()
const FilterLevellevel (const std::string &name)
const std::string & levelName (int il)

Static Public Attributes

std::ostream & out

Private Attributes

bool verbose_
int filter_
int level_


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
nFilterLevel 

Definition at line 13 of file XANAVerbose.h.

00013 { nFilterLevel=4};

enum XANAVerbose::FilterLevel
 

Enumeration values:
DebugLevel 
TestLevel 
InfoLevel 
SilentLevel 

Definition at line 11 of file XANAVerbose.h.

00011 {DebugLevel=1, TestLevel=5, InfoLevel=8, SilentLevel=9999}; 


Constructor & Destructor Documentation

XANAVerbose::XANAVerbose int  il = TestLevel  )  [explicit]
 


Member Function Documentation

int XANAVerbose::getFilterLevel  )  const
 

const FilterLevel& XANAVerbose::level const std::string &  name  )  [static]
 

Referenced by operator()().

const std::string& XANAVerbose::levelName int  il  )  [static]
 

const std::string* XANAVerbose::levelNames  )  [static]
 

const FilterLevel* XANAVerbose::levels  )  [static]
 

XANAVerbose::operator bool  )  const [inline]
 

Definition at line 36 of file XANAVerbose.h.

References filter_, level_, and verbose_.

00036 { return verbose_ && (level_ >= filter_);}

XANAVerbose& XANAVerbose::operator() const std::string &  il  )  [inline]
 

Definition at line 33 of file XANAVerbose.h.

References level(), and level_.

00033 { level_=level(il); return *this;}

XANAVerbose& XANAVerbose::operator() int  il = TestLevel  )  [inline]
 

Definition at line 31 of file XANAVerbose.h.

References level_.

00031 { level_=il; return *this;}

void XANAVerbose::setFilterLevel int  il = TestLevel  ) 
 

void XANAVerbose::silent  ) 
 

void XANAVerbose::verbose  ) 
 


Member Data Documentation

int XANAVerbose::filter_ [private]
 

Definition at line 55 of file XANAVerbose.h.

Referenced by operator bool().

int XANAVerbose::level_ [private]
 

Definition at line 56 of file XANAVerbose.h.

Referenced by operator bool(), and operator()().

std::ostream& XANAVerbose::out [static]
 

Definition at line 25 of file XANAVerbose.h.

bool XANAVerbose::verbose_ [private]
 

Definition at line 54 of file XANAVerbose.h.

Referenced by operator bool().


The documentation for this class was generated from the following file:
Generated on Thu Oct 27 21:59:55 2005 for XANADOO by doxygen 1.3.5