Initial commit
[remote/remote-mci.git] / protocols / motecontrol / MsgConfirm.h
bloba8e9d4b8881bff5168024e05b7f25aab65748253
1 #ifndef MSGCONFIRM_H_
2 #define MSGCONFIRM_H_
4 #include "BaseMsg.h"
5 #include "MsgRequest.h"
6 #include "types.h"
7 #include "localconstants.h"
9 namespace remote { namespace protocols { namespace motecontrol {
11 class MsgConfirm : public BaseMsg
13 public:
14 MsgConfirm(uint8_t command, result_t result, status_t status );
15 MsgConfirm(uint8_t*& buffer, uint32_t& buflen);
16 void operator = (const MsgConfirm& o);
18 uint32_t getLength();
19 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
20 void print(_IO_FILE* s);
22 uint8_t getCommand();
23 result_t getResult();
24 status_t getStatus();
26 protected:
27 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
28 uint8_t command;
29 result_t result;
30 status_t status;
32 }}}
33 #endif /*MSGCONFIRM_H_*/