/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/EventFilter/OnlineJointer/ESController/ESController-00-01-05/src/Config.cxx

Go to the documentation of this file.
00001 //Dear emacs, this is -*- c++ -*-
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   // 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 }
00068 
00069 efpsc::Config::~Config(void)
00070 {
00071 }
00072 
00073 

Generated on Tue Nov 29 23:12:08 2016 for BOSS_7.0.2 by  doxygen 1.4.7