2 #include "otsdaq/TablePlugins/DataManagerTable.h"
4 #include "otsdaq-components/UserTableDataFormats/FEOtsUDPLCLS2InterfaceTable.h"
5 #include "otsdaq/Macros/TablePluginMacros.h"
10 FEOtsUDPLCLS2InterfaceTable::FEOtsUDPLCLS2InterfaceTable(
void)
11 : FEInterfaceTableBase(
"FEOtsUDPLCLS2InterfaceTable")
45 FEOtsUDPLCLS2InterfaceTable::~FEOtsUDPLCLS2InterfaceTable(
void) {}
48 void FEOtsUDPLCLS2InterfaceTable::init(ConfigurationManager* configManager)
63 bool FEOtsUDPLCLS2InterfaceTable::getStatus(std::string interfaceID)
const
66 TableBase::activeTableView_->getValue(
68 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
74 unsigned int FEOtsUDPLCLS2InterfaceTable::getFirmwareVersion(
75 std::string interfaceID)
const
77 unsigned int tmpFirmwareVersion;
78 TableBase::activeTableView_->getValue(
80 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
82 return tmpFirmwareVersion;
86 std::string FEOtsUDPLCLS2InterfaceTable::getIPAddress(std::string interfaceID)
const
88 std::string tmpIPAddress;
89 TableBase::activeTableView_->getValue(
91 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
97 unsigned int FEOtsUDPLCLS2InterfaceTable::getPort(std::string interfaceID)
const
100 TableBase::activeTableView_->getValue(
101 tmpPort, TableBase::activeTableView_->findRow(InterfaceID, interfaceID), Port);
106 std::string FEOtsUDPLCLS2InterfaceTable::getInterfaceIPAddress(
107 std::string interfaceID)
const
109 std::string tmpInterfaceIPAddress;
110 TableBase::activeTableView_->getValue(
111 tmpInterfaceIPAddress,
112 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
114 return tmpInterfaceIPAddress;
118 unsigned int FEOtsUDPLCLS2InterfaceTable::getInterfacePort(std::string interfaceID)
const
120 unsigned int tmpInterfacePort;
121 TableBase::activeTableView_->getValue(
123 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
125 return tmpInterfacePort;
129 std::string FEOtsUDPLCLS2InterfaceTable::getStreamingIPAddress(
130 std::string interfaceID)
const
132 std::string tmpStreamingIPAddress;
133 TableBase::activeTableView_->getValue(
134 tmpStreamingIPAddress,
135 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
137 return tmpStreamingIPAddress;
141 unsigned int FEOtsUDPLCLS2InterfaceTable::getStreamingPort(std::string interfaceID)
const
143 unsigned int tmpStreamingPort;
144 TableBase::activeTableView_->getValue(
146 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
148 return tmpStreamingPort;
152 int FEOtsUDPLCLS2InterfaceTable::getNumberOfWords(std::string interfaceID)
const
154 unsigned int tmpStreamingPort;
155 TableBase::activeTableView_->getValue(
157 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
159 return tmpStreamingPort;
163 unsigned int FEOtsUDPLCLS2InterfaceTable::getDataRate(std::string interfaceID)
const
165 unsigned int tmpStreamingPort;
166 TableBase::activeTableView_->getValue(
168 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
170 return tmpStreamingPort;