HDLC-Daemon
ISerialPortHandler.h
Go to the documentation of this file.
1 
37 #ifndef ISERIAL_PORT_HANDLER_H
38 #define ISERIAL_PORT_HANDLER_H
39 
40 #include <vector>
41 #include "BufferType.h"
42 
44 public:
45  // DTOR
46  virtual ~ISerialPortHandler(){}
47 
48  // Methods called by the HDLC ProtocolState object
49  virtual bool RequiresBufferType(E_BUFFER_TYPE a_eBufferType) const = 0;
50  virtual void DeliverBufferToClients(E_BUFFER_TYPE a_eBufferType, const std::vector<unsigned char> &a_Payload, bool a_bReliable, bool a_bInvalid, bool a_bWasSent) = 0;
51  virtual void ChangeBaudRate() = 0;
52  virtual void PropagateSerialPortState() = 0;
53  virtual void TransmitHDLCFrame(const std::vector<unsigned char> &a_Payload) = 0;
54  virtual void QueryForPayload(bool a_bQueryReliable, bool a_bQueryUnreliable) = 0;
55 };
56 
57 #endif // ISERIAL_PORT_HANDLER_H
Copyright (c) 2016, Florian Evers, florian-evers@gmx.de All rights reserved.
virtual void QueryForPayload(bool a_bQueryReliable, bool a_bQueryUnreliable)=0
virtual bool RequiresBufferType(E_BUFFER_TYPE a_eBufferType) const =0
virtual void PropagateSerialPortState()=0
virtual void DeliverBufferToClients(E_BUFFER_TYPE a_eBufferType, const std::vector< unsigned char > &a_Payload, bool a_bReliable, bool a_bInvalid, bool a_bWasSent)=0
E_BUFFER_TYPE
Definition: BufferType.h:40
virtual void TransmitHDLCFrame(const std::vector< unsigned char > &a_Payload)=0
virtual void ChangeBaudRate()=0