00001 #ifndef _ots_UDPDataListenerProducerConfiguration_h_
00002 #define _ots_UDPDataListenerProducerConfiguration_h_
00003
00004 #include "otsdaq-core/ConfigurationDataFormats/ConfigurationBase.h"
00005
00006 #include <string>
00007
00008
00009 namespace ots
00010 {
00011
00012 class UDPDataListenerProducerConfiguration : public ConfigurationBase
00013 {
00014
00015 public:
00016
00017 UDPDataListenerProducerConfiguration(void);
00018 virtual ~UDPDataListenerProducerConfiguration(void);
00019
00020
00021 void init(ConfigurationManager *configManager);
00022
00023
00024 std::vector<std::string> getProcessorIDList(void) const;
00025 unsigned int getBufferSize (std::string processorUID) const;
00026 std::string getIPAddress (std::string processorUID) const;
00027 unsigned int getPort (std::string processorUID) const;
00028
00029 private:
00030
00031 void check(std::string processorUID) const;
00032 enum{
00033 ProcessorID,
00034 BufferSize,
00035 IPAddress,
00036 Port
00037 };
00038
00039 std::map<std::string, unsigned int> processorIDToRowMap_;
00040
00041 };
00042 }
00043 #endif