Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/synchronizeable_var/synchronizeable_bool.h @ 7459

Last change on this file since 7459 was 7459, checked in by rennerc, 18 years ago

finished some SynchronizeableVars classes

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