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 dataaccess/dataset/ObjectId.h.

Constructor & Destructor Documentation

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

Default constructor.

Referenced by clone().

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

Copy constructor.

Definition at line 34 of file src/terralib/dataaccess/dataset/ObjectId.cpp.

References m_data, and ~ObjectId().

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

Destructor.

Referenced by ObjectId().

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.

Definition at line 57 of file src/terralib/dataaccess/dataset/ObjectId.cpp.

References m_data.

Referenced by te::edit::GenerateId(), and te::vp::CheckGeomValidityDialog::onVerifyPushButtonClicked().

te::da::ObjectId * te::da::ObjectId::clone ( ) const

Definition at line 64 of file src/terralib/dataaccess/dataset/ObjectId.cpp.

References ObjectId().

Referenced by te::edit::Feature::clone().

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.

Definition at line 42 of file src/terralib/dataaccess/dataset/ObjectId.cpp.

References m_data.

Referenced by te::da::getBasePkey(), GetOidAsString(), te::qt::widgets::Promoter::map2Row(), and te::qt::plugins::edit::ToolBar::onSaveActivated().

std::string te::da::ObjectId::getValueAsString ( ) const
bool te::da::ObjectId::operator< ( const ObjectId rhs) const

Definition at line 69 of file src/terralib/dataaccess/dataset/ObjectId.cpp.

References getValueAsString().

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 dataaccess/dataset/ObjectId.h.

Referenced by addValue(), getValue(), getValueAsString(), and ObjectId().


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