Sct::ISUtilities Class Reference

Utility methods for using with the information service. More...

#include <ISUtilities.h>


Static Public Member Functions

static void addOrUpdateOrMessage (std::string &name, ISInfo &info, const std::string &file, int line, severity sev)
 Add a ISInfo to IS, with a name, or if it exists, replace it.
static void addNoUpdateOrMessage (std::string &name, ISInfo &info, const std::string &file, int line, severity sev)
 Add a ISInfo to IS, with a name, or if it exists, replace it.
static void addOrUpdateOrThrow (std::string &name, ISInfo &info, const std::string &file, int line, severity sev)
 Add a ISInfo to IS, with a name, or if it exists, replace it.
static void addNoUpdateOrThrow (std::string &name, ISInfo &info, const std::string &file, int line, severity sev)
 Add a ISInfo to IS, with a name, or if it exists, replace it.


Detailed Description

Utility methods for using with the information service.

Author:
alan.barr@cern.ch

Definition at line 11 of file ISUtilities.h.


Member Function Documentation

void Sct::ISUtilities::addNoUpdateOrMessage std::string &  name,
ISInfo &  info,
const std::string &  file,
int  line,
severity  sev
[static]
 

Add a ISInfo to IS, with a name, or if it exists, replace it.

The arguments file and line should be __FILE__ and __LINE__, so that if the additions is not successful, an IsException with sensible parameters can be thrown. of the severity of the MRS message which will be sent it it fails

Definition at line 40 of file ISUtilities.cpp.

References addNoUpdateOrThrow(), and Sct::Throwable::sendToMrs().

Here is the call graph for this function:

void Sct::ISUtilities::addNoUpdateOrThrow std::string &  name,
ISInfo &  info,
const std::string &  file,
int  line,
severity  sev
[static]
 

Add a ISInfo to IS, with a name, or if it exists, replace it.

The arguments file and line should be __FILE__ and __LINE__, so that if the additions is not successful, an IsException with sensible parameters can be thrown. of the severity of the MRS message which will be sent it it fails

Definition at line 24 of file ISUtilities.cpp.

References Sct::SctNames::getISDictionary().

Referenced by addNoUpdateOrMessage().

Here is the call graph for this function:

void Sct::ISUtilities::addOrUpdateOrMessage std::string &  name,
ISInfo &  info,
const std::string &  file,
int  line,
severity  sev
[static]
 

Add a ISInfo to IS, with a name, or if it exists, replace it.

The arguments file and line should be __FILE__ and __LINE__, so that if the additions is not successful, an IsException with sensible parameters can be thrown. The final arg is optional setting of the severity of the MRS message which will be sent it it fails

Definition at line 32 of file ISUtilities.cpp.

References addOrUpdateOrThrow(), and Sct::Throwable::sendToMrs().

Referenced by SctCalibrationController::Test::publish(), and SctCalibrationController::Sequence::publish().

Here is the call graph for this function:

void Sct::ISUtilities::addOrUpdateOrThrow std::string &  name,
ISInfo &  info,
const std::string &  file,
int  line,
severity  sev
[static]
 

Add a ISInfo to IS, with a name, or if it exists, replace it.

The arguments file and line should be __FILE__ and __LINE__, so that if the additions is not successful, an IsException with sensible parameters can be thrown. The final arg is optional setting of the severity of the MRS message which will be sent it it fails

Definition at line 11 of file ISUtilities.cpp.

References Sct::SctNames::getISDictionary().

Referenced by addOrUpdateOrMessage(), SctAnalysis::AnalysisAlgorithm::finish(), and SctService::WorkerGroup< T >::reportThreadMain().

Here is the call graph for this function:


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