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

static DebuggetInstance ()
 Return singleton instance.

Private Member Functions

void setupDebugOptions ()
 Debug ()

Private Attributes

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

Static Private Attributes

static 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 SctApi::ScanControlRODHisto::checkDebugOption(), checkDebugOption(), SctApi::checkDebugOption(), and SctApi::PrimBuilder::writeModuleVariable().

Debug * Debug::getInstance  )  [static]
 

Return singleton instance.

Definition at line 170 of file SctApiDebug.cxx.

References Debug(), and instance.

Referenced by SctApi::ScanControlRODHisto::checkDebugOption(), SctApi::checkDebugOption(), SctApi::listDebugOptions(), SctApi::listEnabledDebugOptions(), SctApi::CrateImpl::rodInitialiseThread(), SctApi::setDebugOption(), SctApi::setup(), SctApi::unsetDebugOption(), and SctApi::PrimBuilder::writeModuleVariable().

Here is the call graph for this function:

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

Return list of all possible options.

Definition at line 41 of file SctApiDebug.cxx.

References debugOptionList.

Referenced by SctApi::listDebugOptions().

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

Return list of all enabled options.

Definition at line 37 of file SctApiDebug.cxx.

References debugList.

Referenced by SctApi::listEnabledDebugOptions().

void Debug::setDebugOption std::string  opt  ) 
 

Set an option.

Definition at line 19 of file SctApiDebug.cxx.

References debugList, and debugOptionList.

Referenced by SctApi::setDebugOption().

void Debug::unsetDebugOption std::string  opt  ) 
 

Reset an option.

Definition at line 31 of file SctApiDebug.cxx.

References debugList.

Referenced by SctApi::unsetDebugOption().


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(), setDebugOption(), and setupDebugOptions().


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:04:39 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6