Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

finished some SynchronizeableVars classes

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