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.

56 lines
1.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. {
  10. protected:
  11. public:
  12. // Constructor
  13. basicCommunicationTransport();
  14. // Destructor
  15. virtual ~basicCommunicationTransport();
  16. // Copy constructor
  17. // TODO: Uncomment the copy constructor when you need it.
  18. // basicCommunicationTransport(const basicCommunicationTransport& src);
  19. // Assignment operator
  20. // TODO: Uncomment the assignment operator when you need it.
  21. // basicCommunicationTransport& operator=(const basicCommunicationTransport& src);
  22. virtual int sendData(unsigned char * Data, int DataSize) {}
  23. virtual int recptData(unsigned char * Buffer, int BufferLength) {}
  24. };
  25. // Constructor implementation
  26. inline basicCommunicationTransport::basicCommunicationTransport() {}
  27. // Destructor implementation
  28. inline basicCommunicationTransport::~basicCommunicationTransport() {}
  29. // TODO: Uncomment the copy constructor when you need it.
  30. // inline basicCommunicationTransport::basicCommunicationTransport(const basicCommunicationTransport& src)
  31. //{
  32. // // TODO: copy
  33. //}
  34. // TODO: Uncomment the assignment operator when you need it.
  35. // inline basicCommunicationTransport& basicCommunicationTransport::operator=(const basicCommunicationTransport& rhs)
  36. //{
  37. // if (this == &rhs) {
  38. // return *this;
  39. // }
  40. //
  41. // // TODO: assignment
  42. //
  43. // return *this;
  44. //}
  45. #endif // __BASICCOMMUNICATIONTRANSPORT_H_INCL__