Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/network/synchronizeable_var/synchronizeable_classid.h @ 10196

Last change on this file since 10196 was 10114, checked in by patrick, 18 years ago

merged network back to trunk

File size: 903 bytes
Line 
1/*!
2 * @file synchronizeable_int.h
3 * @brief Definition of SynchronizeableInt
4*/
5
6
7#ifndef _SYNCHRONIZEABLE_CLASSID_H
8#define _SYNCHRONIZEABLE_CLASSID_H
9
10#include "synchronizeable_var.h"
11
12class BaseObject;
13
14class SynchronizeableClassID : public SynchronizeableVar {
15
16  public:
17    SynchronizeableClassID( BaseObject * ptrIn, std::string name, int permission, int priority = 0 );
18    virtual ~SynchronizeableClassID();
19
20    virtual int writeToBuf( byte * buf, int maxLength );
21    virtual int readFromBuf( byte * buf, int maxLength );
22
23    /**
24     * check if writeToBuf will return the same size every time
25     * @return true if same size every time
26     */
27    virtual bool hasStaticSize(){ return true; };
28
29    virtual void debug();
30
31  protected:
32    BaseObject * vPtrIn;       //!< pointer to data (read)
33    BaseObject * vPtrOut;      //!< pointer to data (write)
34
35
36};
37
38#endif /* _PROTO_CLASS_H */
Note: See TracBrowser for help on using the repository browser.