|
Developer Documentation
|
Object Payload. More...
#include <OpenFlipper/common/perObjectData.hh>
Public Member Functions | |
| PerObjectData () | |
| You have to provide your own constructor for your object. | |
| virtual | ~PerObjectData () |
| Copy Constructor You have to reimplement this copy constructor for your object to get copied by the core. Otherwise, per Object data will not be copied when the core creates a copy of your object. | |
| virtual PerObjectData * | copyPerObjectData () |
| Copy Function You have to reimplement this function to create a copy of your Object. By default it will return 0;. | |
Object Payload.
This class is used to add arbitrary data to objects in OpenFlipper. You can derive any kind of class from PerObjectData and attach it to an object. See BaseObject::setObjectData() for more details.
Definition at line 79 of file perObjectData.hh.
|
virtual |
Copy Constructor You have to reimplement this copy constructor for your object to get copied by the core. Otherwise, per Object data will not be copied when the core creates a copy of your object.
If you reimplemented the function, set copyOk_ at the end of the function.
Definition at line 70 of file perObjectData.cc.