Sct::SctNames Class Reference

This static class exists to provide the names of SCT Online Software components. More...

#include <SctNames.h>


Static Public Member Functions

static std::string getPartitionName () throw ()
 Get the Partition name.
static std::string getEventDataName () throw ()
 Get the IS server name for raw event data.
static std::string getFittedDataName () throw ()
 Get the IS server name for fitted data.
static std::string getDcsServerName () throw ()
 Get the IS server name for Test data.
static std::string getTestDataName () throw ()
 Get the IS server name for fitted data.
static std::string getControlDataName () throw ()
 Get the IS server name for Control data.
static std::string getRetrievedDataName () throw ()
 Get the IS server name for retrieved data.
static std::string getTempDir () throw ()
 Get the directory for storing temporary files.
static std::string getLocation () throw ()
 Get the location.
static std::string getUser () throw ()
 Get the user.
static IPCPartition & getPartition () throw ()
 Get the IPC Partition.
static ISInfoDictionary & getISDictionary () throw ()
 Get the IS dictionary.
static std::string getPersistentDir () throw ()
 Gets the directory for storing all persistent data in.
static void setPersistentDir (const char *newDirectory) throw ()
 Sets the directory for storing data -- specifically for the use for a re-analyser.
static std::string getLogDir () throw ()
 Gets the directory for storing log files in.
static MRSStream & Mrs ()
static bool isMrsValid ()

Static Private Attributes

static std::string m_persistent_dir


Detailed Description

This static class exists to provide the names of SCT Online Software components.

For example, the partition name, the name of the IS server that event data is stored in. It also provides a few simple utility functions. For instance, it caches a reference to the Partition.

Also, at some point, it may be useful to expand this class if we wanted to run say a subset of modules entirely independantly of the rest and thus wanted to have all those components in a separate partition. (This is why all access is via methods rather than static member variables.)

Definition at line 21 of file SctNames.h.


Member Function Documentation

string Sct::SctNames::getControlDataName  )  throw () [static]
 

Get the IS server name for Control data.

Definition at line 35 of file SctNames.cpp.

string Sct::SctNames::getDcsServerName  )  throw () [static]
 

Get the IS server name for Test data.

Definition at line 27 of file SctNames.cpp.

string Sct::SctNames::getEventDataName  )  throw () [static]
 

Get the IS server name for raw event data.

Definition at line 19 of file SctNames.cpp.

Referenced by SctData::ScanResultWriter::publish().

string Sct::SctNames::getFittedDataName  )  throw () [static]
 

Get the IS server name for fitted data.

Definition at line 23 of file SctNames.cpp.

ISInfoDictionary & Sct::SctNames::getISDictionary  )  throw () [static]
 

Get the IS dictionary.

Definition at line 77 of file SctNames.cpp.

References getPartition().

Referenced by Sct::ISUtilities::addNoUpdateOrThrow(), Sct::ISUtilities::addOrUpdateOrThrow(), SctCalibrationController::IsInfoWrapper::publishWrappedObject(), Sct::ISSerializableWrapper< T >::publishWrappedObjectToServer(), Sct::IS::IOManagerIS::read(), SctFitter::FitterWorkerGroup::work(), and Sct::IS::IOManagerIS::write().

Here is the call graph for this function:

string Sct::SctNames::getLocation  )  throw () [static]
 

Get the location.

Definition at line 64 of file SctNames.cpp.

Referenced by SctData::ISTestSummary::ISSummaryWriter::writeHeader().

std::string Sct::SctNames::getLogDir  )  throw () [static]
 

Gets the directory for storing log files in.

Definition at line 59 of file SctNames.cpp.

Referenced by SctApi::reportEventErrors().

IPCPartition & Sct::SctNames::getPartition  )  throw () [static]
 

Get the IPC Partition.

Definition at line 72 of file SctNames.cpp.

References getPartitionName().

Referenced by SctAnalysis::ConfigurationInterface::ConfigurationInterface(), getISDictionary(), Mrs(), and SctApi::setIsDictionary().

Here is the call graph for this function:

string Sct::SctNames::getPartitionName  )  throw () [static]
 

Get the Partition name.

Definition at line 14 of file SctNames.cpp.

Referenced by Sct::MultiMessageDebugStream::announce(), Sct::ApplicationStartupDebugTools::announceStartOfMain(), getPartition(), and SctApiDDC::initDDC().

std::string Sct::SctNames::getPersistentDir  )  throw () [static]
 

Gets the directory for storing all persistent data in.

Definition at line 48 of file SctNames.cpp.

References m_persistent_dir.

Referenced by Sct::Archive::IONameArchiveFile::construct(), and Sct::Archive::IOManagerArchiveFile::status().

string Sct::SctNames::getRetrievedDataName  )  throw () [static]
 

Get the IS server name for retrieved data.

Definition at line 39 of file SctNames.cpp.

Referenced by SctArchiving::Archiver::Archiver().

string Sct::SctNames::getTempDir  )  throw () [static]
 

Get the directory for storing temporary files.

Definition at line 43 of file SctNames.cpp.

Referenced by Sct::File::IONameFile::construct(), SctApi::dumpPrimList(), SctApi::dumpRawEvent(), Sct::Archive::IONameArchiveFile::expandWildcards(), and SctApi::standardRegisterDump().

string Sct::SctNames::getTestDataName  )  throw () [static]
 

Get the IS server name for fitted data.

Definition at line 31 of file SctNames.cpp.

string Sct::SctNames::getUser  )  throw () [static]
 

Get the user.

Definition at line 68 of file SctNames.cpp.

void Sct::SctNames::setPersistentDir const char *  newDirectory  )  throw () [static]
 

Sets the directory for storing data -- specifically for the use for a re-analyser.

..

Definition at line 52 of file SctNames.cpp.


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