You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __BASICCOMMUNICATIONTRANSPORT_H_INCL__
  2. #define __BASICCOMMUNICATIONTRANSPORT_H_INCL__
  3. /**
  4. * TODO: Add class description
  5. *
  6. * @author gagua
  7. */
  8. class basicCommunicationTransport {
  9. protected:
  10. public:
  11. // Constructor
  12. basicCommunicationTransport();
  13. // Destructor
  14. virtual ~basicCommunicationTransport();
  15. // Copy constructor
  16. // TODO: Uncomment the copy constructor when you need it.
  17. //basicCommunicationTransport(const basicCommunicationTransport& src);
  18. // Assignment operator
  19. // TODO: Uncomment the assignment operator when you need it.
  20. //basicCommunicationTransport& operator=(const basicCommunicationTransport& src);
  21. virtual int sendData( unsigned char *Data, int DataSize ){};
  22. virtual int recptData( unsigned char *Buffer, int BufferLength ){};
  23. };
  24. // Constructor implementation
  25. inline basicCommunicationTransport::basicCommunicationTransport()
  26. {
  27. }
  28. // Destructor implementation
  29. inline basicCommunicationTransport::~basicCommunicationTransport()
  30. {
  31. }
  32. // TODO: Uncomment the copy constructor when you need it.
  33. //inline basicCommunicationTransport::basicCommunicationTransport(const basicCommunicationTransport& src)
  34. //{
  35. // // TODO: copy
  36. //}
  37. // TODO: Uncomment the assignment operator when you need it.
  38. //inline basicCommunicationTransport& basicCommunicationTransport::operator=(const basicCommunicationTransport& rhs)
  39. //{
  40. // if (this == &rhs) {
  41. // return *this;
  42. // }
  43. //
  44. // // TODO: assignment
  45. //
  46. // return *this;
  47. //}
  48. #endif // __BASICCOMMUNICATIONTRANSPORT_H_INCL__