Last change
on this file since 9625 was
9625,
checked in by patrick, 18 years ago
|
yet another weekend commit, quite much work done:
- introduced a new PERMISSION layer: PERMISSION_SERVER: the nearest server hast authority
- tightening up permissions: brand new implementation to prevent sending unused variables in the network (less smog in the net:D_
- removed some compiler warnings from some central modules
- networkmonitor interface changed to work with networknodes mainly
- better debug output for the network monitor
- networnode inteface standardisation
- force reconnection commands integration
|
File size:
877 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file synchronizeable_float.h |
---|
3 | * @brief Definition of SynchronizeableFloat |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | #ifndef _SYNCHRONIZEABLE_FLOAT_H |
---|
8 | #define _SYNCHRONIZEABLE_FLOAT_H |
---|
9 | |
---|
10 | #include "synchronizeable_var.h" |
---|
11 | |
---|
12 | class SynchronizeableFloat : public SynchronizeableVar { |
---|
13 | |
---|
14 | public: |
---|
15 | SynchronizeableFloat( float * ptrIn, float * ptrOut, std::string name, int permission, int priority = 0 ); |
---|
16 | virtual ~SynchronizeableFloat(); |
---|
17 | |
---|
18 | virtual int writeToBuf( byte * buf, int maxLength ); |
---|
19 | virtual int readFromBuf( byte * buf, int maxLength ); |
---|
20 | |
---|
21 | /** |
---|
22 | * check if writeToBuf will return the same size every time |
---|
23 | * @return true if same size every time |
---|
24 | */ |
---|
25 | virtual bool hasStaticSize(){ return true; }; |
---|
26 | |
---|
27 | virtual void debug(); |
---|
28 | |
---|
29 | private: |
---|
30 | float * vPtrIn; //!< pointer to data (read) |
---|
31 | float * vPtrOut; //!< pointer to data (write) |
---|
32 | |
---|
33 | }; |
---|
34 | |
---|
35 | #endif /* _PROTO_CLASS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.