otsdaq  v1_01_02
 All Classes Namespaces Functions
UDPDataListenerProducerConfiguration.h
1 #ifndef _ots_UDPDataListenerProducerConfiguration_h_
2 #define _ots_UDPDataListenerProducerConfiguration_h_
3 
4 #include "otsdaq-core/ConfigurationDataFormats/ConfigurationBase.h"
5 
6 #include <string>
7 
8 
9 namespace ots
10 {
11 
13 {
14 
15 public:
16 
19 
20  //Methods
21  void init(ConfigurationManager *configManager);
22 
23  //Getter
24  std::vector<std::string> getProcessorIDList(void) const;
25  unsigned int getBufferSize (std::string processorUID) const;
26  std::string getIPAddress (std::string processorUID) const;
27  unsigned int getPort (std::string processorUID) const;
28 
29 private:
30 
31  void check(std::string processorUID) const;
32  enum{
33  ProcessorID,
34  BufferSize,
35  IPAddress,
36  Port
37  };
38 
39  std::map<std::string, unsigned int> processorIDToRowMap_;
40 
41 };
42 }
43 #endif