otsdaq_components  v2_05_02_indev
FEOtsUDPLCLS2InterfaceTable.h
1 #ifndef _ots_FEOtsUDPLCLS2InterfaceTable_h_
2 #define _ots_FEOtsUDPLCLS2InterfaceTable_h_
3 
4 #include <string>
5 #include "otsdaq/TableDataFormats/FEInterfaceTableBase.h"
6 
7 namespace ots
8 {
9 class FEOtsUDPLCLS2InterfaceTable : public FEInterfaceTableBase
10 {
11  public:
13  virtual ~FEOtsUDPLCLS2InterfaceTable(void);
14 
15  // Methods
16  void init(ConfigurationManager* configManager);
17 
18  // Getters
19  bool getStatus(std::string interfaceID) const;
20  bool getChannelStatus(std::string interfaceID, unsigned int channel) const;
21  unsigned int getFirmwareVersion(std::string interfaceID) const;
22  std::string getIPAddress(std::string interfaceID) const;
23  unsigned int getPort(std::string interfaceID) const;
24  std::string getInterfaceIPAddress(std::string interfaceID) const;
25  unsigned int getInterfacePort(std::string interfaceID) const;
26  std::string getStreamingIPAddress(std::string interfaceID) const;
27  unsigned int getStreamingPort(std::string interfaceID) const;
28  int getNumberOfWords(std::string interfaceID) const;
29  unsigned int getDataRate(std::string interfaceID) const;
30 
31  private:
32  enum
33  {
34  InterfaceID,
35  Status,
36  FirmwareVersion,
37  IPAddress,
38  Port,
39  InterfaceIPAddress,
40  InterfacePort,
41  StreamingIPAddress,
42  StreamingPort,
43  NumberOfWords,
44  DataRate,
45  };
46 };
47 }
48 #endif