otsdaq  v2_05_02_indev
Configurable.h
1 #ifndef _ots_Configurable_h_
2 #define _ots_Configurable_h_
3 
4 #include "otsdaq/ConfigurationInterface/ConfigurationTree.h"
5 
6 namespace ots
7 {
9 {
10  public:
11  Configurable(const ConfigurationTree& theXDAQContextConfigTree, const std::string& theConfigurationPath);
12  virtual ~Configurable();
13 
14  ConfigurationTree getSelfNode() const;
15  const ConfigurationManager* getConfigurationManager() const;
16 
17  const std::string& getContextUID() const;
18  const std::string& getApplicationUID() const;
19 
20  unsigned int getApplicationLID() const;
21  std::string getContextAddress() const;
22  unsigned int getContextPort() const;
23 
24  protected:
25  const ConfigurationTree theXDAQContextConfigTree_;
26  const std::string theConfigurationPath_;
27  const std::string theConfigurationRecordName_;
28 };
29 } // namespace ots
30 
31 #endif