Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/synchronizeable_var/synchronizeable_classid_list.h @ 9909

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

ClassID synchronization might work. at least it still works with it :D

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