Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

SctApi::Debug Class Reference

Manage debug options, singleton class. More...

#include <SctApiDebug.h>

Collaboration diagram for SctApi::Debug:

Collaboration graph
[legend]

Public Member Functions

bool checkDebugOption (std::string opt)
 Check option is set, based on string (as enum in lower case without DEBUG and '_').

bool checkDebugOption (DebugOptions opt)
 Check option is set, based on DebugOptions enum.

void setDebugOption (std::string opt)
 Set an option.

void unsetDebugOption (std::string opt)
 Reset an option.

std::list< std::string > listEnabledDebugOptions ()
 Return list of all enabled options.

std::vector< std::string > listDebugOptions ()
 Return list of all possible options.


Static Public Member Functions

DebuggetInstance ()
 Return singleton instance.


Private Member Functions

void setupDebugOptions ()

Private Attributes

std::list< std::string > debugList
 Which debug options are enabled.

std::vector< std::string > debugOptionList
 Possible debug options.


Static Private Attributes

Debuginstance

Detailed Description

Manage debug options, singleton class.

Definition at line 28 of file SctApiDebug.h.


Member Function Documentation

bool SctApi::Debug::checkDebugOption DebugOptions  opt  ) 
 

Check option is set, based on DebugOptions enum.

bool SctApi::Debug::checkDebugOption std::string  opt  ) 
 

Check option is set, based on string (as enum in lower case without DEBUG and '_').

Debug* SctApi::Debug::getInstance  )  [static]
 

Return singleton instance.

std::vector<std::string> SctApi::Debug::listDebugOptions  ) 
 

Return list of all possible options.

std::list<std::string> SctApi::Debug::listEnabledDebugOptions  ) 
 

Return list of all enabled options.

void SctApi::Debug::setDebugOption std::string  opt  ) 
 

Set an option.

void SctApi::Debug::unsetDebugOption std::string  opt  ) 
 

Reset an option.


Field Documentation

std::list<std::string> SctApi::Debug::debugList [private]
 

Which debug options are enabled.

Definition at line 30 of file SctApiDebug.h.

std::vector<std::string> SctApi::Debug::debugOptionList [private]
 

Possible debug options.

Definition at line 33 of file SctApiDebug.h.


The documentation for this class was generated from the following file:
Generated on Sat Jul 31 14:18:47 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5