1 #include "otsdaq/Configurable/Configurable.h"
3 #include "otsdaq/TablePlugins/XDAQContextTable/XDAQContextTable.h"
9 const std::string& theConfigurationPath)
10 : theXDAQContextConfigTree_(theXDAQContextConfigTree)
11 , theConfigurationPath_(theConfigurationPath)
12 , theConfigurationRecordName_(
13 (theXDAQContextConfigTree_.getNode(theConfigurationPath_).isLinkNode() &&
14 theXDAQContextConfigTree_.getNode(theConfigurationPath_).isDisconnected())
15 ? theXDAQContextConfigTree_.getNode(theConfigurationPath_)
16 .getDisconnectedLinkID()
17 : theXDAQContextConfigTree_.getNode(theConfigurationPath_)
20 __CFG_COUT__ <<
" Configurable class constructed. " << __E__;
24 Configurable::~Configurable(
void) {}
31 return theXDAQContextConfigTree_.
getNode(theConfigurationPath_);
41 const std::string& Configurable::getContextUID()
const
43 return theXDAQContextConfigTree_
44 .getForwardNode(theConfigurationPath_, 1 )
49 const std::string& Configurable::getApplicationUID()
const
51 return theXDAQContextConfigTree_
52 .getForwardNode(theConfigurationPath_, 3 )
57 unsigned int Configurable::getApplicationLID()
const
64 getConfigurationManager(), getContextUID(), getApplicationUID())
65 .
getNode(contextConfig->colApplication_.colId_)
70 std::string Configurable::getContextAddress()
const
75 return contextConfig->getContextNode(getConfigurationManager(), getContextUID())
76 .
getNode(contextConfig->colContext_.colAddress_)
81 unsigned int Configurable::getContextPort()
const
86 return contextConfig->getContextNode(getConfigurationManager(), getContextUID())
87 .
getNode(contextConfig->colContext_.colPort_)
ConfigurationTree getNode(const std::string &nodeName, bool doNotThrowOnBrokenUIDLinks=false) const
navigating between nodes
const std::string & getValueAsString(bool returnLinkTableValue=false) const
const ConfigurationManager * getConfigurationManager(void) const
extracting information from node
void getValue(T &value) const