Commit e1772357 authored by Jan Möbius's avatar Jan Möbius

Improved per Object data with copy constructor

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7985 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 39e08fe0
......@@ -56,6 +56,11 @@ PerObjectData()
}
PerObjectData::
PerObjectData(const PerObjectData& _b ) {
std::cerr << "Please implement a copy constructor for your perObjectData!"
}
PerObjectData::
~PerObjectData()
{
......
......@@ -81,9 +81,14 @@ class DLLEXPORT PerObjectData {
public :
/// You have to provide your own constructor for your object
PerObjectData();
/** \brief 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.
*/
PerObjectData(const PerObjectData& _b );
virtual ~PerObjectData();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment