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::getTempDir() throw() {
00031 static std::string dir = getenv("SCT_SCRATCH_DIR") ? getenv("SCT_SCRATCH_DIR") : "/tmp";
00032 return dir;
00033 }
00034
00035 string SctNames::getLocation() throw() {
00036 return "Oxford";
00037 }
00038
00039 string SctNames::getUser() throw() {
00040 return "daquser";
00041 }
00042
00043 IPCPartition& SctNames::getPartition() throw() {
00044 static IPCPartition partition (getPartitionName());
00045 return partition;
00046 }
00047
00048 ISInfoDictionary& SctNames::getISDictionary() throw() {
00049 static ISInfoDictionary dictionary(getPartition());
00050 return dictionary;
00051 }
00052
00053 MRSStream& SctNames::Mrs() {
00054 static MRSStream mrs(getPartition());
00055 return mrs;
00056 }
00057
00058
00059 }