00001 #include "SctNames.h"
00002
00003 #include <mrs/message.h>
00004 #include <cstdlib>
00005
00006 using namespace std;
00007
00008 namespace Sct {
00009
00010 string SctNames::getPartitionName() throw() {
00011 return "SCT";
00012 }
00013
00014 string SctNames::getEventDataName() throw() {
00015 return "EventData";
00016 }
00017
00018 string SctNames::getFittedDataName() throw() {
00019 return "FittedData";
00020 }
00021
00022 string SctNames::getTestDataName() throw() {
00023 return "TestData";
00024 }
00025
00026 string SctNames::getControlDataName() throw() {
00027 return "ControlData";
00028 }
00029
00030 string SctNames::getRetrievedDataName() throw() {
00031 return "RetrievedData";
00032 }
00033
00034 string SctNames::getTempDir() throw() {
00035 static std::string dir = getenv("SCT_SCRATCH_DIR") ? getenv("SCT_SCRATCH_DIR") : "/tmp";
00036 return dir;
00037 }
00038
00039 std::string SctNames::getPersistentDir() throw(){
00040 static std::string dir = getenv("SCT_PERSISTENT_DIR") ? getenv ("SCT_PERSISTENT_DIR") : "/tmp";
00041 return dir;
00042 }
00043
00044 std::string SctNames::getLogDir() throw(){
00045 static std::string dir = getenv("TDAQ_LOGS_PATH") ? getenv ("TDAQ_LOGS_PATH") : "/tmp";
00046 return dir;
00047 }
00048
00049 string SctNames::getLocation() throw() {
00050 return "Oxford";
00051 }
00052
00053 string SctNames::getUser() throw() {
00054 return "daquser";
00055 }
00056
00057 IPCPartition& SctNames::getPartition() throw() {
00058 static IPCPartition partition (getPartitionName());
00059 return partition;
00060 }
00061
00062 ISInfoDictionary& SctNames::getISDictionary() throw() {
00063 static ISInfoDictionary dictionary(getPartition());
00064 return dictionary;
00065 }
00066
00067 MRSStream& SctNames::Mrs() {
00068 static MRSStream mrs(getPartition());
00069 return mrs;
00070 }
00071
00072
00073 }