otsdaq  v2_04_01
UDPDataListenerProducerConfiguration.h
1 #ifndef _ots_UDPDataListenerProducerConfiguration_h_
2 #define _ots_UDPDataListenerProducerConfiguration_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  unsigned int getBufferSize(std::string processorUID) const;
22  std::string getIPAddress(std::string processorUID) const;
23  unsigned int getPort(std::string processorUID) const;
24 
25  private:
26  void check(std::string processorUID) const;
27  enum
28  {
29  ProcessorID,
30  BufferSize,
31  IPAddress,
32  Port
33  };
34 
35  std::map<std::string, unsigned int> processorIDToRowMap_;
36 };
37 } // namespace ots
38 #endif