8 #ifndef _ots_FrontEndHardwareBase_h_
9 #define _ots_FrontEndHardwareBase_h_
11 #include "otsdaq-core/Macros/CoutMacros.h"
30 virtual void write(
const std::string& sendBuffer)
throw(std::runtime_error)
33 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
35 virtual void write(
const std::vector<std::string>& sendBuffers)
throw(
39 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
41 virtual void writeAndAcknowledge(
const std::string& sendBuffer,
42 int timeoutSeconds = -1)
throw(std::runtime_error)
45 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
47 virtual void writeAndAcknowledge(
const std::vector<std::string>& sendBuffers,
48 int timeoutSeconds = -1)
throw(std::runtime_error)
51 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
53 virtual void read(
const std::string& sendBuffer,
54 std::string& receiveBuffer,
55 int timeoutSeconds = -1)
throw(std::runtime_error)
58 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
60 virtual void read(
const std::vector<std::string>& sendBuffers,
61 std::vector<std::string>& receiveBuffers,
62 int timeoutSeconds = -1)
throw(std::runtime_error)
65 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
69 virtual int flushRead()
throw(std::runtime_error)
72 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
76 static const std::string PURDUE_HARDWARE_NAME;
77 static const std::string OTS_HARDWARE_NAME;
80 unsigned int version_;
83 const std::string FrontEndHardwareBase::PURDUE_HARDWARE_NAME =
"PurdueHardware";
84 const std::string FrontEndHardwareBase::OTS_HARDWARE_NAME =
"OtsUDPHardware";
88 #endif // _ots_FrontEndHardwareBase_h_