Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataModel Class Referenceabstract

#include <DataModel.hxx>

Inheritance diagram for DataModel:
Inheritance graph

Public Member Functions

 DataModel ()
 
 ~DataModel ()
 
virtual DataObjectnewDataObject ()=0
 
bool addDataObject (DataObject *dataObject)
 
bool removeDataObject (string nameId)
 
bool removeDataObject (DataObject *dataObject)
 
DataObjectgetDataObject (string nameId)
 
map< string, DataObject * >
::iterator 
begin ()
 
map< string, DataObject * >
::iterator 
end ()
 

Private Attributes

map< string, DataObject * > _mapDataObjects
 

Constructor & Destructor Documentation

DataModel::DataModel ( )
DataModel::~DataModel ( )

References _mapDataObjects.

Member Function Documentation

bool DataModel::addDataObject ( DataObject dataObject)

Function to add data object to the model

References _mapDataObjects, and DataObject::getNameId().

map< string, DataObject * >::iterator DataModel::begin ( )

References _mapDataObjects.

map< string, DataObject * >::iterator DataModel::end ( )

References _mapDataObjects.

DataObject * DataModel::getDataObject ( string  nameId)

Function to retrieve a data object in the model

References _mapDataObjects.

virtual DataObject* DataModel::newDataObject ( )
pure 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.

Implemented in MyDataModel.

bool DataModel::removeDataObject ( string  nameId)

Functions to remove data object from the model

References _mapDataObjects.

bool DataModel::removeDataObject ( DataObject dataObject)

Member Data Documentation

map<string, DataObject *> DataModel::_mapDataObjects
private

The documentation for this class was generated from the following files: