Last change
on this file since 8286 was
7954,
checked in by patrick, 18 years ago
|
trunk: merged the network branche back to trunk.
|
File size:
962 bytes
|
Rev | Line | |
---|
[7444] | 1 | /*! |
---|
| 2 | * @file synchronizeable_vector.h |
---|
| 3 | * @brief Definition of SynchronizeableVector |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #include "synchronizeable_var/synchronizeable_var.h" |
---|
| 7 | |
---|
| 8 | #ifndef _SYNCHRONIZEABLE_VECTOR_H |
---|
| 9 | #define _SYNCHRONIZEABLE_VECTOR_H |
---|
| 10 | |
---|
| 11 | #include "vector.h" |
---|
| 12 | |
---|
| 13 | class SynchronizeableVector : public SynchronizeableVar { |
---|
| 14 | |
---|
| 15 | public: |
---|
[7631] | 16 | SynchronizeableVector( Vector * ptrIn, Vector * ptrOut, std::string name, int permission = PERMISSION_SERVER, int priority = 0 ); |
---|
[7444] | 17 | virtual ~SynchronizeableVector(); |
---|
| 18 | |
---|
| 19 | virtual int writeToBuf( byte * buf, int maxLength ); |
---|
| 20 | virtual int readFromBuf( byte * buf, int maxLength ); |
---|
| 21 | |
---|
[7459] | 22 | /** |
---|
| 23 | * check if writeToBuf will return the same size every time |
---|
| 24 | * @return true if same size every time |
---|
| 25 | */ |
---|
[7578] | 26 | virtual bool hasStaticSize(){ return true; } |
---|
[7459] | 27 | |
---|
[7578] | 28 | virtual void debug(); |
---|
| 29 | |
---|
[7444] | 30 | private: |
---|
| 31 | Vector * vPtrIn; //!< pointer to data (read) |
---|
| 32 | Vector * vPtrOut; //!< pointer to data (write) |
---|
| 33 | |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | #endif /* _PROTO_CLASS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.