OMF::BasicExtension< Type > Class Template Reference
#include <Extension.hpp>
Inheritance diagram for OMF::BasicExtension< Type >:
List of all members.
Detailed Description
template<class Type>
class OMF::BasicExtension< Type >
An extension is very much like a property but is not part of any standard metamodel. Rather than support the whole range of methods for an extension property, we simply provide get/set support. Extensions are not included in the basic set of properties and are not accessible via the same mechanisms. This procludes the possibility that a developer will overwrite an existing property of an element. This class is templated to provide "ready-made" extensions. Note that the templated type must be default-constructable. If the contained type is a dynamically allocated object, the user is responsible for the management of that memory. This could be done in several ways: respond to the object deleted event or create a derived class that overloads the destructor.
The Extension class by itself does not provide support for persistence. That is done through a derived class, PersistentExtension.
Constructor & Destructor Documentation
Member Function Documentation
const std::string& OMF::Extension::name |
( |
|
) |
const [inherited] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Fri Sep 10 13:07:38 2004 for OpenModelingFramework by
1.3.8