8 #ifndef _ots_FrontEndHardwareBase_h_
9 #define _ots_FrontEndHardwareBase_h_
12 #include "otsdaq-core/Macros/CoutMacros.h"
31 virtual void write (
const std::string& sendBuffer)
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");}
32 virtual void write (
const std::vector<std::string>& sendBuffers)
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");}
33 virtual void writeAndAcknowledge(
const std::string& sendBuffer,
int timeoutSeconds = -1)
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");}
34 virtual void writeAndAcknowledge(
const std::vector<std::string>& sendBuffers,
int timeoutSeconds = -1)
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");}
35 virtual void read (
const std::string& sendBuffer , std::string& receiveBuffer,
int timeoutSeconds = -1)
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");}
36 virtual void read (
const std::vector<std::string>& sendBuffers, std::vector<std::string>& receiveBuffers,
int timeoutSeconds = -1)
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");}
39 virtual int flushRead ()
throw(std::runtime_error){__SS__; __THROW__(ss.str() +
"Illegal call to undefined base class member function");
return 0;}
41 static const std::string PURDUE_HARDWARE_NAME;
42 static const std::string OTS_HARDWARE_NAME;
44 unsigned int version_;
47 const std::string FrontEndHardwareBase::PURDUE_HARDWARE_NAME =
"PurdueHardware";
48 const std::string FrontEndHardwareBase::OTS_HARDWARE_NAME =
"OtsUDPHardware";
52 #endif // _ots_FrontEndHardwareBase_h_