Last change
on this file was
9656,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the proxy bache back with no conflicts
|
File size:
1.0 KB
|
Rev | Line | |
---|
[7444] | 1 | /*! |
---|
| 2 | * @file synchronizeable_string.h |
---|
| 3 | * @brief Definition of SynchronizeableString |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _SYNCHRONIZEABLE_STRING_H |
---|
| 7 | #define _SYNCHRONIZEABLE_STRING_H |
---|
| 8 | |
---|
[9406] | 9 | #include "synchronizeable_var.h" |
---|
| 10 | |
---|
[7444] | 11 | #include <string> |
---|
| 12 | |
---|
| 13 | class SynchronizeableString : public SynchronizeableVar { |
---|
| 14 | |
---|
| 15 | public: |
---|
[9656] | 16 | SynchronizeableString( std::string * ptrIn, std::string * ptrOut, std::string name, int permission, int priority = 0 ); |
---|
[7444] | 17 | virtual ~SynchronizeableString(); |
---|
[9406] | 18 | |
---|
[7444] | 19 | virtual int writeToBuf( byte * buf, int maxLength ); |
---|
| 20 | virtual int readFromBuf( byte * buf, int maxLength ); |
---|
[9406] | 21 | |
---|
| 22 | |
---|
[7459] | 23 | /** |
---|
| 24 | * check if writeToBuf will return the same size every time |
---|
| 25 | * @return true if same size every time |
---|
| 26 | */ |
---|
| 27 | virtual bool hasStaticSize(){ return false; }; |
---|
[9406] | 28 | |
---|
| 29 | virtual int getSize(); |
---|
| 30 | |
---|
[7631] | 31 | virtual int getSizeFromBuf( byte * buf, int maxLength ); |
---|
[9406] | 32 | |
---|
[7578] | 33 | virtual void debug(); |
---|
[9406] | 34 | |
---|
[7444] | 35 | private: |
---|
| 36 | std::string * vPtrIn; //!< pointer to data (read) |
---|
| 37 | std::string * vPtrOut; //!< pointer to data (write) |
---|
| 38 | |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | #endif /* _SYNCHRONIZEABLE_STRING_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.