otsdaq  v2_04_01
UDPDataStreamerConsumerConfiguration.h
1 #ifndef _ots_UDPDataStreamerConsumerConfiguration_h_
2 #define _ots_UDPDataStreamerConsumerConfiguration_h_
3 
4 #include <string>
5 
6 #include "otsdaq-coreTableCore/TableBase.h"
7 
8 namespace ots
9 {
11 {
12  public:
15 
16  // Methods
17  void init(ConfigurationManager* configManager);
18 
19  // Getter
20  std::vector<std::string> getProcessorIDList(void) const;
21  std::string getIPAddress(std::string processorUID) const;
22  unsigned int getPort(std::string processorUID) const;
23  std::string getStreamToIPAddress(std::string processorUID) const;
24  unsigned int getStreamToPort(std::string processorUID) const;
25 
26  private:
27  void check(std::string processorUID) const;
28  enum
29  {
30  ProcessorID,
31  IPAddress,
32  Port,
33  StreamToIPAddress,
34  StreamToPort
35  };
36 
37  std::map<std::string, unsigned int> processorIDToRowMap_;
38 };
39 } // namespace ots
40 #endif