Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ReferenceProperty.h

Go to the documentation of this file.
00001 
00045 #ifndef _AMIRE_PROPERTY_REFERENCE_PROPERTY_H
00046 #define _AMIRE_PROPERTY_REFERENCE_PROPERTY_H
00047 
00048 #include <amire/common/Defines.h>
00049 #include <amire/property/Property.h>
00050 
00051 namespace amire {
00052   namespace property {
00053     class AMIRE_EXPORT_API PropertyType;
00054 
00058     class AMIRE_EXPORT_API ReferenceProperty : public virtual Property {
00059     private:
00060       void *reference;
00061 
00062     public:
00063       ReferenceProperty(void *reference, const PropertyTypeManager *propertyTypeManager);
00064       ReferenceProperty(const ReferenceProperty &reference);
00065 
00066       virtual ~ReferenceProperty();
00067 
00068       virtual bool equals(const osg::ref_ptr<const Property> &property) const;
00069       virtual osg::ref_ptr<Property> clone() const;
00070       virtual void cloneFrom(const osg::ref_ptr<const Property> &property);
00071       virtual void fromPersistentProperty(const osg::ref_ptr<const Property> &property);
00072       virtual osg::ref_ptr<Property> toPersistentProperty();
00073 
00079       inline void *getReference() const {
00080         return reference;
00081       }
00082 
00087       inline void setReference(void *reference) {
00088         this->reference = reference;
00089       }
00090     };
00091   }
00092 }
00093 
00094 #endif
00095 

Generated on Tue May 20 17:23:53 2003 for AMIRE-Framework by doxygen1.3