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

#include <DataObject.hxx>

Inheritance diagram for DataObject:
Inheritance graph

Public Member Functions

 DataObject ()
 
 ~DataObject ()
 
void setLabel (string label)
 
string getLabel ()
 
void setProperty (string key, string value)
 
string getProperty (string key)
 
virtual string getPath ()=0
 
string getPathName ()
 
string getNameId ()
 
string toString ()
 

Static Public Attributes

static const string pathsep = string("/")
 

Private Attributes

string _label
 
string _nameId
 
map< string, string > _properties
 

Static Private Attributes

static int _lastId =0
 
static const string _BASENAME = string("object_")
 

Constructor & Destructor Documentation

DataObject::DataObject ( )

References _BASENAME, _label, _lastId, and _nameId.

DataObject::~DataObject ( )

References _properties.

Member Function Documentation

string DataObject::getLabel ( )

References _label.

string DataObject::getNameId ( )

References _nameId.

virtual string DataObject::getPath ( )
pure virtual

This function specifies the localization of the object in the hierarchical organization that can be defined by the DataModel it belongs to.

Implemented in MyDataObject.

string DataObject::getPathName ( )

References getLabel(), getPath(), and pathsep.

string DataObject::getProperty ( string  key)

References _properties.

void DataObject::setLabel ( string  label)

References _label.

void DataObject::setProperty ( string  key,
string  value 
)

References _properties.

string DataObject::toString ( )

This function can be used for debug

References getLabel(), getNameId(), and getPath().

Member Data Documentation

const string DataObject::_BASENAME = string("object_")
staticprivate
string DataObject::_label
private

The name this object can be displayed with

int DataObject::_lastId =0
staticprivate
string DataObject::_nameId
private

The identifier of this object. An identifier is invariant all the session long

map<string, string> DataObject::_properties
private

The dictionnary of properties that characterize this object

const string DataObject::pathsep = string("/")
static

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