Last change
on this file was
9656,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the proxy bache back with no conflicts
|
File size:
853 bytes
|
Rev | Line | |
---|
[9293] | 1 | /*! |
---|
| 2 | * @file synchronizeable_ip.h |
---|
| 3 | * @brief Definition of SynchronizeableIP |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | #ifndef _SYNCHRONIZEABLE_IP_H |
---|
| 8 | #define _SYNCHRONIZEABLE_IP_H |
---|
| 9 | |
---|
[9386] | 10 | #include "synchronizeable_var.h" |
---|
[9293] | 11 | |
---|
[9386] | 12 | class IP; |
---|
[9293] | 13 | |
---|
| 14 | class SynchronizeableIP : public SynchronizeableVar { |
---|
| 15 | |
---|
| 16 | public: |
---|
[9656] | 17 | SynchronizeableIP( IP *ptrIn, IP * ptrOut, std::string name, int permission, int priority = 0 ); |
---|
[9293] | 18 | virtual ~SynchronizeableIP(); |
---|
| 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 | |
---|
| 32 | private: |
---|
[9334] | 33 | IP * vPtrIn; //!< pointer to data (read) |
---|
| 34 | IP * vPtrOut; //!< pointer to data (write) |
---|
[9293] | 35 | |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | #endif /* _PROTO_CLASS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.