tdaq-develop-2025-02-12
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,
12  const std::string& theConfigurationPath);
13  virtual ~Configurable();
14 
15  ConfigurationTree getSelfNode() const;
16  const ConfigurationManager* getConfigurationManager() const;
17 
18  const std::string& getContextUID() const;
19  const std::string& getApplicationUID() const;
20 
21  unsigned int getApplicationLID() const;
22  std::string getContextAddress() const;
23  unsigned int getContextPort() const;
24 
25  protected:
26  const ConfigurationTree theXDAQContextConfigTree_;
27  const std::string theConfigurationPath_;
28  const std::string theConfigurationRecordName_;
29 };
30 } // namespace ots
31 
32 #endif