otsdaq  v1_01_02
 All Classes Namespaces Functions
UDPDataStreamerConsumerConfiguration.h
1 #ifndef _ots_UDPDataStreamerConsumerConfiguration_h_
2 #define _ots_UDPDataStreamerConsumerConfiguration_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  std::string getIPAddress (std::string processorUID) const;
26  unsigned int getPort (std::string processorUID) const;
27  std::string getStreamToIPAddress(std::string processorUID) const;
28  unsigned int getStreamToPort (std::string processorUID) const;
29 
30 private:
31 
32  void check(std::string processorUID) const;
33  enum{
34  ProcessorID,
35  IPAddress,
36  Port,
37  StreamToIPAddress,
38  StreamToPort
39  };
40 
41  std::map<std::string, unsigned int> processorIDToRowMap_;
42 
43 };
44 }
45 #endif