Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/network/synchronizeable_var/synchronizeable_float.h @ 9496

Last change on this file since 9496 was 9406, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy back

merged with commandsvn merge -r9346:HEAD https://svn.orxonox.net/orxonox/branches/proxy .

no conflicts

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