1 #include "otsdaq-core/Configurable/Configurable.h"
3 #include "otsdaq-core/TablePlugins/XDAQContextTable.h"
9 const std::string& theConfigurationPath)
10 : theXDAQContextConfigTree_(theXDAQContextConfigTree)
11 , theConfigurationPath_(theConfigurationPath)
12 , theConfigurationRecordName_(
13 theXDAQContextConfigTree_.getNode(theConfigurationPath_).getValueAsString())
15 __CFG_COUT__ <<
" Configurable class constructed. " << __E__;
19 Configurable::~Configurable(
void) {}
26 return theXDAQContextConfigTree_.getNode(theConfigurationPath_);
32 return theXDAQContextConfigTree_.getConfigurationManager();
36 const std::string& Configurable::getContextUID()
const
38 return theXDAQContextConfigTree_
39 .getForwardNode(theConfigurationPath_, 1 )
44 const std::string& Configurable::getApplicationUID()
const
46 return theXDAQContextConfigTree_
47 .getForwardNode(theConfigurationPath_, 3 )
52 unsigned int Configurable::getApplicationLID()
const
59 getConfigurationManager(), getContextUID(), getApplicationUID())
60 .getNode(contextConfig->colApplication_.colId_)
61 .getValue<
unsigned int>();
65 std::string Configurable::getContextAddress()
const
70 return contextConfig->getContextNode(getConfigurationManager(), getContextUID())
71 .getNode(contextConfig->colContext_.colAddress_)
72 .getValue<std::string>();
76 unsigned int Configurable::getContextPort()
const
81 return contextConfig->getContextNode(getConfigurationManager(), getContextUID())
82 .getNode(contextConfig->colContext_.colPort_)
83 .getValue<
unsigned int>();