Initial commit
[remote/remote-mci.git] / protocols / client_server / MsgMoteIdList.h
blobed1b38e93f29a5819b2b3581bdaf35da0472b761
1 #ifndef MSGMOTEIDLIST_H_
2 #define MSGMOTEIDLIST_H_
4 #include <stdlib.h>
5 #include <list>
6 #include "types.h"
7 #include "tcputil.h"
9 namespace remote { namespace protocols { namespace client_server {
11 typedef std::list<dbkey_t> idlist_t;
13 class MsgMoteIdList
15 public:
16 MsgMoteIdList();
17 void operator = (const MsgMoteIdList& o);
18 uint32_t getLength();
19 uint8_t* write(uint8_t* buffer, uint32_t& buflen);
20 uint8_t* read(uint8_t* buffer, uint32_t& buflen);
21 void print(_IO_FILE* s);
22 void clear();
23 void addMoteId(dbkey_t p_moteId);
24 bool getNextMoteId(dbkey_t &p_moteId);
25 protected:
26 idlist_t moteIdList;
30 }}}
32 #endif /*MSGMOTEIDLIST_H_*/