#include <MyDataModel.hxx>
Public Member Functions | |
MyDataModel () | |
virtual DataObject * | newDataObject () |
Public Member Functions inherited from DataModel | |
DataModel () | |
~DataModel () | |
bool | addDataObject (DataObject *dataObject) |
bool | removeDataObject (string nameId) |
bool | removeDataObject (DataObject *dataObject) |
DataObject * | getDataObject (string nameId) |
map< string, DataObject * > ::iterator | begin () |
map< string, DataObject * > ::iterator | end () |
MyDataModel::MyDataModel | ( | ) |
|
virtual |
This function can be used to create a specific instance of DataObject. Note that this function is a pure virtual method and then no default behavior is done. In particular, the newly created object is not automatically added to the data model. This behavior should be implemented in a dedicated version of this class.
Implements DataModel.