| 
                Last change
                  on this file since 10586 was
                  9656,
                  checked in by bensch, 19 years ago
           | 
        
        
          | 
               
orxonox/trunk: merged the proxy bache back with no conflicts 
 
           | 
        
        | 
            File size:
            857 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | /*! | 
|---|
| 2 |  * @file synchronizeable_int.h | 
|---|
| 3 |  * @brief Definition of SynchronizeableInt | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 |  | 
|---|
| 7 | #ifndef _SYNCHRONIZEABLE_INT_H | 
|---|
| 8 | #define _SYNCHRONIZEABLE_INT_H | 
|---|
| 9 |  | 
|---|
| 10 | #include "synchronizeable_var.h" | 
|---|
| 11 |  | 
|---|
| 12 | class SynchronizeableInt : public SynchronizeableVar { | 
|---|
| 13 |  | 
|---|
| 14 |   public: | 
|---|
| 15 |     SynchronizeableInt( int * ptrIn, int * ptrOut, std::string name, int permission, int priority = 0 ); | 
|---|
| 16 |     virtual ~SynchronizeableInt(); | 
|---|
| 17 |  | 
|---|
| 18 |     virtual int writeToBuf( byte * buf, int maxLength ); | 
|---|
| 19 |     virtual int readFromBuf( byte * buf, int maxLength ); | 
|---|
| 20 |  | 
|---|
| 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; }; | 
|---|
| 26 |  | 
|---|
| 27 |     virtual void debug(); | 
|---|
| 28 |  | 
|---|
| 29 |   protected: | 
|---|
| 30 |     int * vPtrIn;       //!< pointer to data (read) | 
|---|
| 31 |     int * vPtrOut;      //!< pointer to data (write) | 
|---|
| 32 |  | 
|---|
| 33 |  | 
|---|
| 34 | }; | 
|---|
| 35 |  | 
|---|
| 36 | #endif /* _PROTO_CLASS_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.