biblioteca que serve como midleware para as diversas placas que podem implementar esse padrão !
communication/Communication.h@1:3a7f743de36f, 2019-06-15 (annotated)
- Committer:
- AndersonIctus
- Date:
- Sat Jun 15 10:50:50 2019 -0300
- Revision:
- 1:3a7f743de36f
- Child:
- 3:c87e6b48834e
Inclusao das classes basicas para o MIDLEWARE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndersonIctus | 1:3a7f743de36f | 1 | #ifndef SGAM_MDW_COMMUNICATION_H |
AndersonIctus | 1:3a7f743de36f | 2 | #define SGAM_MDW_COMMUNICATION_H |
AndersonIctus | 1:3a7f743de36f | 3 | |
AndersonIctus | 1:3a7f743de36f | 4 | class Communication { |
AndersonIctus | 1:3a7f743de36f | 5 | public: |
AndersonIctus | 1:3a7f743de36f | 6 | Communication() { }; |
AndersonIctus | 1:3a7f743de36f | 7 | ~Communication(){ }; |
AndersonIctus | 1:3a7f743de36f | 8 | |
AndersonIctus | 1:3a7f743de36f | 9 | virtual int initialize(char* parameters) = 0; |
AndersonIctus | 1:3a7f743de36f | 10 | virtual int finalize() = 0; |
AndersonIctus | 1:3a7f743de36f | 11 | |
AndersonIctus | 1:3a7f743de36f | 12 | virtual int write(char* data) = 0; |
AndersonIctus | 1:3a7f743de36f | 13 | virtual int read(char* buffer, int offset) = 0; |
AndersonIctus | 1:3a7f743de36f | 14 | }; |
AndersonIctus | 1:3a7f743de36f | 15 | #endif |