#include <Config.h>
Public Member Functions | |
Config (const std::string &objname) | |
~Config () | |
const std::string & | jobOptionsPath () const |
const std::string & | messageSvcType () const |
const std::string & | evtSel () const |
const std::string & | dllName () const |
const std::string & | factoryName () const |
const std::string & | pythonSetupFile () const |
Private Attributes | |
std::string | m_jobOptionsPath |
std::string | m_messageSvcType |
std::string | m_evtSel |
std::string | m_dllName |
std::string | m_factoryName |
std::string | m_pythonSetupFile |
Definition at line 21 of file Config.h.
efpsc::Config::Config | ( | const std::string & | objname | ) |
Reads the efpscSteering configuration node.
objname | The name of the object in the configuration database, that contains the entry point for this dummy steering. |
Definition at line 7 of file Config.cxx.
References EFPSC_DBG1, m_dllName, m_evtSel, m_factoryName, m_jobOptionsPath, m_messageSvcType, m_pythonSetupFile, and deljobs::string.
00008 { 00009 // Default Parameters 00010 m_jobOptionsPath = "jobOptions.txt"; 00011 m_messageSvcType = "MessageSvc"; 00012 m_evtSel = "NONE"; 00013 m_dllName = ""; 00014 m_factoryName = ""; 00015 m_pythonSetupFile = "ESController/ESControllerPythonSetup.py"; 00016 00017 // Set Parameters 00018 std::string tmp_string = objname; 00019 //cout<<"objname: "<<objname<<endl; 00020 00021 // parameter 1 : jobOptionsPath 00022 m_jobOptionsPath = tmp_string.substr(0, tmp_string.find(";")); 00023 //tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size()); 00024 if (tmp_string.substr(0, tmp_string.find(";")) != "") { 00025 m_jobOptionsPath = tmp_string.substr(0, tmp_string.find(";")); 00026 // cout<<"m_jobOptionsPAth: "<<endl; 00027 } 00028 00029 // parameter 2 : MessageSvcType 00030 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size()); 00031 if (tmp_string.substr(0, tmp_string.find(";")) != "") { 00032 m_messageSvcType = tmp_string.substr(0, tmp_string.find(";")); 00033 } 00034 00035 // parameter 3 : Event selector 00036 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size()); 00037 if (tmp_string.substr(0, tmp_string.find(";")) != "") { 00038 m_evtSel = tmp_string.substr(0, tmp_string.find(";")); 00039 } 00040 00041 // parameter 4 : ApplicationMgr DLL 00042 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size()); 00043 if (tmp_string.substr(0, tmp_string.find(";")) != "") { 00044 m_dllName = tmp_string.substr(0, tmp_string.find(";")); 00045 } 00046 00047 // parameter 5 : ApplicationMgr Factory Name 00048 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size()); 00049 if (tmp_string.substr(0, tmp_string.find(";")) != "") { 00050 m_factoryName = tmp_string.substr(0, tmp_string.find(";")); 00051 } 00052 00053 // parameter 6 : Basic Python Setup File 00054 tmp_string = tmp_string.substr(tmp_string.find(";")+1,tmp_string.size()); 00055 if (tmp_string.substr(0, tmp_string.find(";")) != "") { 00056 m_pythonSetupFile = tmp_string.substr(0, tmp_string.find(";")); 00057 } 00058 00059 // Print Parameters 00060 00061 EFPSC_DBG1("efpsc::Config::Config"," -> jobOptions Path = " << m_jobOptionsPath); 00062 EFPSC_DBG1("efpsc::Config::Config"," -> MessageSvcType = " << m_messageSvcType); 00063 EFPSC_DBG1("efpsc::Config::Config"," -> Event Selector = " << m_evtSel); 00064 EFPSC_DBG1("efpsc::Config::Config"," -> ApplicationMgr DLL name = " << m_dllName); 00065 EFPSC_DBG1("efpsc::Config::Config"," -> ApplicationMgr Factory name = " << m_factoryName); 00066 EFPSC_DBG1("efpsc::Config::Config"," -> Basic Python setup file = " << m_pythonSetupFile); 00067 }
efpsc::Config::~Config | ( | ) |
const std::string& efpsc::Config::dllName | ( | ) | const [inline] |
Definition at line 45 of file Config.h.
References m_dllName.
Referenced by efpsc::SC::configure().
00045 { return m_dllName; }
const std::string& efpsc::Config::evtSel | ( | ) | const [inline] |
Definition at line 43 of file Config.h.
References m_evtSel.
Referenced by efpsc::SC::configure().
00043 { return m_evtSel; }
const std::string& efpsc::Config::factoryName | ( | ) | const [inline] |
Definition at line 47 of file Config.h.
References m_factoryName.
Referenced by efpsc::SC::configure().
00047 { return m_factoryName; }
const std::string& efpsc::Config::jobOptionsPath | ( | ) | const [inline] |
Definition at line 39 of file Config.h.
References m_jobOptionsPath.
Referenced by efpsc::SC::configure().
00039 { return m_jobOptionsPath; }
const std::string& efpsc::Config::messageSvcType | ( | ) | const [inline] |
Definition at line 41 of file Config.h.
References m_messageSvcType.
Referenced by efpsc::SC::configure().
00041 { return m_messageSvcType; }
const std::string& efpsc::Config::pythonSetupFile | ( | ) | const [inline] |
Definition at line 49 of file Config.h.
References m_pythonSetupFile.
00049 { return m_pythonSetupFile; }
std::string efpsc::Config::m_dllName [private] |
std::string efpsc::Config::m_evtSel [private] |
std::string efpsc::Config::m_factoryName [private] |
std::string efpsc::Config::m_jobOptionsPath [private] |
std::string efpsc::Config::m_messageSvcType [private] |
std::string efpsc::Config::m_pythonSetupFile [private] |