#include <DataElement.h>

Public Member Functions | |
| virtual DataDescriptor * | getDataDescriptor ()=0 |
| virtual const DataDescriptor * | getDataDescriptor () const =0 |
| virtual std::string | getType () const =0 |
| virtual std::string | getFilename () const =0 |
| virtual DataElement * | getParent () const =0 |
| virtual std::vector< std::string > | getParentDesignator () const =0 |
| virtual Classification * | getClassification ()=0 |
| virtual const Classification * | getClassification () const =0 |
| virtual void | setClassification (const Classification *pClassification)=0 |
| virtual void | copyClassification (const DataElement *pElement)=0 |
| virtual DynamicObject * | getMetadata ()=0 |
| virtual const DynamicObject * | getMetadata () const =0 |
| virtual DataElement * | copy (const std::string &name, DataElement *pParent) const =0 |
Protected Member Functions | |
| virtual | ~DataElement () |
The DataElement is a base class for all objects that are managed by ModelServices within the application. This class only stores anscillary data in a DataDescriptor object, where subclasses store or manage the actual raw data. An instance of this class can be created to provide an element container for custom data not provided by the subclasses.
This subclass of Subject will notify upon the following conditions:
Definition at line 41 of file DataElement.h.
| virtual DataElement::~DataElement | ( | ) | [protected, virtual] |
This should be destroyed by calling ModelServices::destroyElement.
Definition at line 250 of file DataElement.h.
| virtual DataDescriptor* DataElement::getDataDescriptor | ( | ) | [pure virtual] |
Returns all anscillary data for the element.
| virtual const DataDescriptor* DataElement::getDataDescriptor | ( | ) | const [pure virtual] |
Returns read-only access to all anscillary data for the element.
| virtual std::string DataElement::getType | ( | ) | const [pure virtual] |
Returns the identifying type for the element.
This is a convenience method that returns the element type that is stored in the DataDescriptor object.
The element type is one of the unique identifiers for a DataElement that is used to query elements in the ModelServices interface.
| virtual std::string DataElement::getFilename | ( | ) | const [pure virtual] |
Returns the filename where the element is saved on disk.
This is a convenience method that returns the filename that is stored in the FileDecriptor object contained in the element's DataDescriptor object.
| virtual DataElement* DataElement::getParent | ( | ) | const [pure virtual] |
Returns the parent element.
This is a convenience method that returns the parent element that is stored in the DataDescriptor object. The element parent is typically the data set to which the element is associated.
The parent element is one of the unique identifiers for a DataElement that is used to query elements in the ModelServices interface.
| virtual std::vector<std::string> DataElement::getParentDesignator | ( | ) | const [pure virtual] |
Returns the parent element designator.
The parent element designator is a vector of strings such that the first string is the name of a top level element, the second is the name of a child of that element, and so on. This designator identifies the parent element.
| virtual Classification* DataElement::getClassification | ( | ) | [pure virtual] |
Returns a pointer to the element's classification object.
The classification object documents how the data in the element is to be handled and/or restricted.
This is a convenience method that returns the classification object that is stored in the DataDescriptor object.
| virtual const Classification* DataElement::getClassification | ( | ) | const [pure virtual] |
Returns read-only access to the element's classification object.
The classification object documents how the data in the element is to be handled and/or restricted.
This is a convenience method that returns the classification object that is stored in the DataDescriptor object.
| virtual void DataElement::setClassification | ( | const Classification * | pClassification | ) | [pure virtual] |
Sets the element's classification object.
The classification object documents how the data in element is to be handled and/or restricted.
This is a convenience method that makes a deep copy of the given classification object that is stored in its DataDescriptor object, so it is the responsibility of the calling object to delete the classification object when necessary.
| pClassification | The classification for the element. A deep copy is performed so it is the responsibility of the calling object to delete the given classification object when necessary. This method does nothing if NULL is passed in. |
| virtual void DataElement::copyClassification | ( | const DataElement * | pElement | ) | [pure virtual] |
Copies the classification settings from a DataElement.
This is a convenience method that deep copies the Classification object that is stored in the DataDescriptor object of another DataElement into the DataDescriptor object of this DataElement. The existing classification settings for this DataElement are replaced by the settings from the passed DataElement. No attempt is made to merge the settings.
| pElement | The DataElement from which the Classification object will be copied. |
| virtual DynamicObject* DataElement::getMetadata | ( | ) | [pure virtual] |
Returns a pointer to the element's metadata values.
This is a convenience method that returns the metadata object that is stored in the DataDescriptor object.
Please see Special Metadata for details on special entries in the metadata that the application will attempt to use.
| virtual const DynamicObject* DataElement::getMetadata | ( | ) | const [pure virtual] |
Returns read-only access to the element's metadata values.
This is a convenience method that returns the metadata object that is stored in the DataDescriptor object.
Please see Special Metadata for details on special entries in the metadata that the application will attempt to use.
| virtual DataElement* DataElement::copy | ( | const std::string & | name, | |
| DataElement * | pParent | |||
| ) | const [pure virtual] |
Creates a new data element with the same values as this element.
The method creates a new element based on the data contained in this element, which includes a copy of all data in the data descriptor.
| name | The name for the created data element, which can be the same as this object's name if the parent is different than this object's parent. | |
| pParent | The parent element for the created data element, which can be the same as this object's parent if the name is different than this object's name. |