00001
00002
00003 #include "ESController/Config.h"
00004 #include "ESController/error.h"
00005 #include <cstdlib>
00006
00007 efpsc::Config::Config(const std::string& objname)
00008 {
00009
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
00018 std::string tmp_string = objname;
00019
00020
00021
00022 m_jobOptionsPath = tmp_string.substr(0, tmp_string.find(";"));
00023
00024 if (tmp_string.substr(0, tmp_string.find(";")) != "") {
00025 m_jobOptionsPath = tmp_string.substr(0, tmp_string.find(";"));
00026
00027 }
00028
00029
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
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
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
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
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
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 }
00068
00069 efpsc::Config::~Config(void)
00070 {
00071 }
00072
00073