Version: 9.12.0
DataObject Class Referenceabstract

#include <DataObject.hxx>

Inheritance diagram for DataObject:
Inheritance graph

Public Member Functions

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

Static Public Attributes

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

Private Attributes

std::string _label
 
std::string _nameId
 
std::map< std::string, std::string > _properties
 

Static Private Attributes

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

Constructor & Destructor Documentation

◆ DataObject()

DataObject::DataObject ( )

References _BASENAME, _label, _lastId, and _nameId.

◆ ~DataObject()

DataObject::~DataObject ( )

References _properties.

Member Function Documentation

◆ getLabel()

std::string DataObject::getLabel ( )

References _label.

◆ getNameId()

std::string DataObject::getNameId ( )

References _nameId.

◆ getPath()

virtual std::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.

◆ getPathName()

std::string DataObject::getPathName ( )

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

◆ getProperty()

std::string DataObject::getProperty ( std::string  key)

References _properties.

◆ setLabel()

void DataObject::setLabel ( std::string  label)

References _label.

◆ setProperty()

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

References _properties.

◆ toString()

std::string DataObject::toString ( )

This function can be used for debug

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

Member Data Documentation

◆ _BASENAME

const std::string DataObject::_BASENAME = std::string("object_")
staticprivate

◆ _label

std::string DataObject::_label
private

The name this object can be displayed with

◆ _lastId

int DataObject::_lastId =0
staticprivate

◆ _nameId

std::string DataObject::_nameId
private

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

◆ _properties

std::map<std::string, std::string> DataObject::_properties
private

The dictionnary of properties that characterize this object

◆ pathsep

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

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