Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/synchronizeable_var/synchronizeable_classid.h @ 9906

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

Return of the Network :D

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.