Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | 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) const
 Check option is set, based on string (as enum in lower case without DEBUG and '_').

bool checkDebugOption (DebugOptions opt) const
 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 () const
 Return list of all enabled options.

std::vector< std::string > listDebugOptions () const
 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 31 of file SctApiDebug.h.


Member Function Documentation

bool Debug::checkDebugOption DebugOptions  opt  )  const
 

Check option is set, based on DebugOptions enum.

Definition at line 53 of file SctApiDebug.cxx.

References checkDebugOption(), and debugOptionList.

Here is the call graph for this function:

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

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

Definition at line 45 of file SctApiDebug.cxx.

References debugList.

Referenced by checkDebugOption().

Debug * Debug::getInstance  )  [static]
 

Return singleton instance.

Definition at line 170 of file SctApiDebug.cxx.

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

Return list of all possible options.

Definition at line 41 of file SctApiDebug.cxx.

References debugOptionList.

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

Return list of all enabled options.

Definition at line 37 of file SctApiDebug.cxx.

References debugList.

void Debug::setDebugOption std::string  opt  ) 
 

Set an option.

Definition at line 19 of file SctApiDebug.cxx.

References debugList, and debugOptionList.

void Debug::unsetDebugOption std::string  opt  ) 
 

Reset an option.

Definition at line 31 of file SctApiDebug.cxx.

References debugList.


Field Documentation

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

Which debug options are enabled.

Definition at line 33 of file SctApiDebug.h.

Referenced by checkDebugOption(), listEnabledDebugOptions(), setDebugOption(), and unsetDebugOption().

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

Possible debug options.

Definition at line 36 of file SctApiDebug.h.

Referenced by checkDebugOption(), listDebugOptions(), and setDebugOption().


The documentation for this class was generated from the following files:
Generated on Fri Dec 16 19:40:29 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5