Commit 8b71ae53 authored by Jan Möbius's avatar Jan Möbius
Browse files

Per Object data extension



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15264 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b024bd1c
......@@ -103,9 +103,9 @@ class DLLEXPORT PerObjectData {
class DLLEXPORT _CLASS : public PerObjectData { \
\
public: \
inline _CLASS() : data_( _VALUE() ) { } \
inline _CLASS() : data_( 0) { } \
inline _CLASS(const _VALUE& _x) : data_(_x) { } \
inline ~_CLASS() { } \
inline virtual ~_CLASS() { } \
inline virtual _CLASS* copyPerObjectData() { return new _CLASS(data_); } \
inline _VALUE& data() { return data_; } \
inline const _VALUE& data() const { return data_; } \
......@@ -117,7 +117,9 @@ class DLLEXPORT _CLASS : public PerObjectData { \
PER_OBJECT_DATA(BoolPerObjectData, bool );
PER_OBJECT_DATA(CharPerObjectData, char );
PER_OBJECT_DATA(UCharPerObjectData, unsigned char);
PER_OBJECT_DATA(IntPerObjectData, int );
PER_OBJECT_DATA(UIntPerObjectData, unsigned int );
PER_OBJECT_DATA(FloatPerObjectData, float );
PER_OBJECT_DATA(DoublePerObjectData, double );
......
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