Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

efpsc::Config Class Reference

#include <Config.h>

List of all members.

Public Member Functions

 Config (const std::string &objname)
 Config (const std::string &objname)
const std::string & dllName () const
const std::string & dllName () const
const std::string & evtSel () const
const std::string & evtSel () const
const std::string & factoryName () const
const std::string & factoryName () const
const std::string & jobOptionsPath () const
const std::string & jobOptionsPath () const
const std::string & messageSvcType () const
const std::string & messageSvcType () const
const std::string & pythonSetupFile () const
const std::string & pythonSetupFile () const
 ~Config ()
 ~Config ()

Private Attributes

std::string m_dllName
std::string m_evtSel
std::string m_factoryName
std::string m_jobOptionsPath
std::string m_messageSvcType
std::string m_pythonSetupFile


Detailed Description

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


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.
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.

00070 {
00071 }

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.

efpsc::Config::~Config  ) 
 

D'tor.


Member Function Documentation

const std::string& efpsc::Config::dllName  )  const [inline]
 

00045 { return m_dllName; }

const std::string& efpsc::Config::dllName  )  const [inline]
 

00045 { return m_dllName; }

const std::string& efpsc::Config::evtSel  )  const [inline]
 

00043 { return m_evtSel; }

const std::string& efpsc::Config::evtSel  )  const [inline]
 

00043 { return m_evtSel; }

const std::string& efpsc::Config::factoryName  )  const [inline]
 

00047 { return m_factoryName; }

const std::string& efpsc::Config::factoryName  )  const [inline]
 

00047 { return m_factoryName; }

const std::string& efpsc::Config::jobOptionsPath  )  const [inline]
 

00039 { return m_jobOptionsPath; }

const std::string& efpsc::Config::jobOptionsPath  )  const [inline]
 

00039 { return m_jobOptionsPath; }

const std::string& efpsc::Config::messageSvcType  )  const [inline]
 

00041 { return m_messageSvcType; }

const std::string& efpsc::Config::messageSvcType  )  const [inline]
 

00041 { return m_messageSvcType; }

const std::string& efpsc::Config::pythonSetupFile  )  const [inline]
 

00049 { return m_pythonSetupFile; }

const std::string& efpsc::Config::pythonSetupFile  )  const [inline]
 

00049 { return m_pythonSetupFile; }


Member Data Documentation

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]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:19:10 2011 for BOSS6.5.5 by  doxygen 1.3.9.1