efpsc::Config Class Reference

#include <Config.h>

List of all members.

Public Member Functions

 Config (const std::string &objname)
 ~Config ()
const std::stringjobOptionsPath () const
const std::stringmessageSvcType () const
const std::stringevtSel () const
const std::stringdllName () const
const std::stringfactoryName () const
const std::stringpythonSetupFile () 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


Detailed Description

Defines the Dummy Algorithm setup. This class is thread-safe.

Definition at line 21 of file Config.h.


Constructor & Destructor Documentation

efpsc::Config::Config ( const std::string objname  ) 

Reads the efpscSteering configuration node.

Parameters:
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 (  ) 

D'tor.

Definition at line 69 of file Config.cxx.

00070 {
00071 }


Member Function Documentation

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; }


Member Data Documentation

std::string efpsc::Config::m_dllName [private]

Definition at line 56 of file Config.h.

Referenced by Config(), and dllName().

std::string efpsc::Config::m_evtSel [private]

Definition at line 55 of file Config.h.

Referenced by Config(), and evtSel().

std::string efpsc::Config::m_factoryName [private]

Definition at line 57 of file Config.h.

Referenced by Config(), and factoryName().

std::string efpsc::Config::m_jobOptionsPath [private]

Definition at line 53 of file Config.h.

Referenced by Config(), and jobOptionsPath().

std::string efpsc::Config::m_messageSvcType [private]

Definition at line 54 of file Config.h.

Referenced by Config(), and messageSvcType().

std::string efpsc::Config::m_pythonSetupFile [private]

Definition at line 58 of file Config.h.

Referenced by Config(), and pythonSetupFile().


Generated on Tue Nov 29 23:36:31 2016 for BOSS_7.0.2 by  doxygen 1.4.7