te::da::ObjectId Class Reference

This class represents an unique id for a data set element. More...

#include <ObjectId.h>

Public Member Functions

void addValue (te::dt::AbstractData *data)
 It adds a property value to uniquely identify a data set element. More...
 
ObjectIdclone () const
 
const boost::ptr_vector< te::dt::AbstractData > & getValue () const
 It gets the properties values used to uniquely identify a data set element. More...
 
std::string getValueAsString () const
 It gets the properties values used to uniquely identify a data set element as string. More...
 
 ObjectId ()
 Default constructor. More...
 
 ObjectId (const ObjectId &rhs)
 Copy constructor. More...
 
bool operator< (const ObjectId &rhs) const
 
 ~ObjectId ()
 Destructor. More...
 

Private Attributes

boost::ptr_vector< te::dt::AbstractDatam_data
 A vector of property values. More...
 

Detailed Description

This class represents an unique id for a data set element.

See also
AbstractData, ObjectIdSet

Definition at line 47 of file ObjectId.h.

Constructor & Destructor Documentation

te::da::ObjectId::ObjectId ( )

Default constructor.

te::da::ObjectId::ObjectId ( const ObjectId rhs)

Copy constructor.

te::da::ObjectId::~ObjectId ( )

Destructor.

Member Function Documentation

void te::da::ObjectId::addValue ( te::dt::AbstractData data)

It adds a property value to uniquely identify a data set element.

Parameters
dataThe value of the property.
Note
This class will take the ownership of the given pointer.
ObjectId* te::da::ObjectId::clone ( ) const
const boost::ptr_vector<te::dt::AbstractData>& te::da::ObjectId::getValue ( ) const

It gets the properties values used to uniquely identify a data set element.

Returns
A vector with the property values.
Note
The caller will NOT take the ownership of the returned pointers.
std::string te::da::ObjectId::getValueAsString ( ) const

It gets the properties values used to uniquely identify a data set element as string.

Returns
A string that represents the set of values.

Referenced by te::qt::widgets::PointToObjectId::getObjIdAsString(), and te::qt::widgets::IntervalToObjectId::getObjIdAsString().

bool te::da::ObjectId::operator< ( const ObjectId rhs) const

Member Data Documentation

boost::ptr_vector<te::dt::AbstractData> te::da::ObjectId::m_data
private

A vector of property values.

Definition at line 91 of file ObjectId.h.


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