1 #include "otsdaq-core/Configurable/Configurable.h"
3 #include "otsdaq-core/TablePluginDataFormats/XDAQContextTable.h"
9 const std::string& theConfigurationPath)
10 : theXDAQContextConfigTree_(theXDAQContextConfigTree)
11 , theConfigurationPath_(theConfigurationPath)
12 , theConfigurationRecordName_(
13 theXDAQContextConfigTree_.getNode(theConfigurationPath_).getValueAsString())
14 , selfNode_(theXDAQContextConfigTree_.getNode(theConfigurationPath_))
16 __CFG_COUT__ <<
" Configurable class constructed. " << __E__;
20 Configurable::~Configurable(
void) {}
31 return theXDAQContextConfigTree_.getConfigurationManager();
35 const std::string& Configurable::getContextUID()
const
37 return theXDAQContextConfigTree_
38 .getForwardNode(theConfigurationPath_, 1 )
43 const std::string& Configurable::getApplicationUID()
const
45 return theXDAQContextConfigTree_
46 .getForwardNode(theConfigurationPath_, 3 )
51 unsigned int Configurable::getApplicationLID()
const
58 getConfigurationManager(), getContextUID(), getApplicationUID())
59 .getNode(contextConfig->colApplication_.colId_)
60 .getValue<
unsigned int>();
64 std::string Configurable::getContextAddress()
const
69 return contextConfig->getContextNode(getConfigurationManager(), getContextUID())
70 .getNode(contextConfig->colContext_.colAddress_)
71 .getValue<std::string>();
75 unsigned int Configurable::getContextPort()
const
80 return contextConfig->getContextNode(getConfigurationManager(), getContextUID())
81 .getNode(contextConfig->colContext_.colPort_)
82 .getValue<
unsigned int>();