8 #ifndef _ots_FrontEndHardwareBase_h_
9 #define _ots_FrontEndHardwareBase_h_
11 #include "otsdaq/Macros/CoutMacros.h"
30 virtual void write(
const std::string& sendBuffer)
33 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
35 virtual void write(
const std::vector<std::string>& sendBuffers)
38 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
40 virtual void writeAndAcknowledge(
const std::string& sendBuffer,
41 int timeoutSeconds = -1)
44 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
46 virtual void writeAndAcknowledge(
const std::vector<std::string>& sendBuffers,
47 int timeoutSeconds = -1)
50 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
52 virtual void read(
const std::string& sendBuffer,
53 std::string& receiveBuffer,
54 int timeoutSeconds = -1)
57 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
59 virtual void read(
const std::vector<std::string>& sendBuffers,
60 std::vector<std::string>& receiveBuffers,
61 int timeoutSeconds = -1)
64 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
68 virtual int flushRead()
71 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
75 static const std::string PURDUE_HARDWARE_NAME;
76 static const std::string OTS_HARDWARE_NAME;
79 unsigned int version_;
82 const std::string FrontEndHardwareBase::PURDUE_HARDWARE_NAME =
"PurdueHardware";
83 const std::string FrontEndHardwareBase::OTS_HARDWARE_NAME =
"OtsUDPHardware";
87 #endif // _ots_FrontEndHardwareBase_h_