Rev | Line | |
---|
[9909] | 1 | /*! |
---|
| 2 | * @file synchronizeable_classid_list.h |
---|
| 3 | * @brief Definition of SynchronizeableClassIDList |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _SYNCHRONIZEABLE_CLASSID_LIST_H |
---|
| 7 | #define _SYNCHRONIZEABLE_CLASSID_LIST_H |
---|
| 8 | |
---|
| 9 | #include "synchronizeable_var.h" |
---|
| 10 | |
---|
| 11 | #include <map> |
---|
| 12 | #include <string> |
---|
| 13 | |
---|
| 14 | class SynchronizeableClassIDList : public SynchronizeableVar { |
---|
| 15 | |
---|
| 16 | public: |
---|
| 17 | SynchronizeableClassIDList( std::map< std::string, int > * ptrIn, std::map< std::string, int > * ptrOut, std::string name, int permission, int priority = 0 ); |
---|
| 18 | virtual ~SynchronizeableClassIDList(); |
---|
| 19 | |
---|
| 20 | virtual int writeToBuf( byte * buf, int maxLength ); |
---|
| 21 | virtual int readFromBuf( byte * buf, int maxLength ); |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | /** |
---|
| 25 | * check if writeToBuf will return the same size every time |
---|
| 26 | * @return true if same size every time |
---|
| 27 | */ |
---|
| 28 | virtual bool hasStaticSize(){ return false; }; |
---|
| 29 | |
---|
| 30 | virtual int getSize(); |
---|
| 31 | |
---|
| 32 | virtual int getSizeFromBuf( byte * buf, int maxLength ); |
---|
| 33 | |
---|
| 34 | virtual void debug(); |
---|
| 35 | |
---|
| 36 | private: |
---|
| 37 | std::map< std::string, int > * vPtrIn; //!< pointer to data (read) |
---|
| 38 | std::map< std::string, int > * vPtrOut; //!< pointer to data (write) |
---|
| 39 | |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | #endif /* _SYNCHRONIZEABLE_STRING_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.