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:
863 bytes
|
Rev | Line | |
---|
[7444] | 1 | /*! |
---|
| 2 | * @file synchronizeable_int.h |
---|
| 3 | * @brief Definition of SynchronizeableInt |
---|
[9406] | 4 | */ |
---|
[7444] | 5 | |
---|
| 6 | #ifndef _SYNCHRONIZEABLE_BOOL_H |
---|
| 7 | #define _SYNCHRONIZEABLE_BOOL_H |
---|
| 8 | |
---|
[9406] | 9 | #include "synchronizeable_var.h" |
---|
| 10 | |
---|
[7444] | 11 | class SynchronizeableBool : public SynchronizeableVar { |
---|
| 12 | |
---|
| 13 | public: |
---|
[9625] | 14 | SynchronizeableBool( bool * ptrIn, bool * ptrOut, std::string name, int permission, int priority = 0 ); |
---|
[7444] | 15 | virtual ~SynchronizeableBool(); |
---|
[9406] | 16 | |
---|
[7444] | 17 | virtual int writeToBuf( byte * buf, int maxLength ); |
---|
| 18 | virtual int readFromBuf( byte * buf, int maxLength ); |
---|
[9406] | 19 | |
---|
[7459] | 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; }; |
---|
[9406] | 25 | |
---|
[7578] | 26 | virtual void debug(); |
---|
[9406] | 27 | |
---|
[7444] | 28 | private: |
---|
| 29 | bool * vPtrIn; //!< pointer to data (read) |
---|
| 30 | bool * vPtrOut; //!< pointer to data (write) |
---|
| 31 | |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | #endif /* _PROTO_CLASS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.