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