39 #ifndef _uhal_ProtocolControlHub_hpp_
40 #define _uhal_ProtocolControlHub_hpp_
63 UHAL_DEFINE_EXCEPTION_CLASS ( XMLfileMissingRequiredParameters , "Exception class to handle the case where the received header does not match the expected header." )
66 UHAL_DEFINE_EXCEPTION_CLASS ( ControlHubReturnedWrongAddress , "Exception class to handle the case where the ControlHub returned the wrong IP or Port" )
72 UHAL_DEFINE_DERIVED_EXCEPTION_CLASS ( ControlHubErrorCodeSet, PacketLevelError , "Exception class to handle cases in which the ControlHub returns a non-zero error code (excluding target timeouts)" )
84 template < typename InnerProtocol >
111 virtual uint32_t getPreambleSize();
128 uint8_t* aSendBufferEnd ,
129 std::deque< std::pair< uint8_t* , uint32_t > >::iterator aReplyStartIt ,
130 std::deque< std::pair< uint8_t* , uint32_t > >::iterator aReplyEndIt );
139 virtual uint32_t getMaxNumberOfBuffers();
142 virtual void dispatchExceptionHandler();
145 static void translateErrorCode(std::ostream& aStream,
const uint16_t& aErrorCode);