An object identifier is meant to represent a unique identifier for an object instance within the context of the web service or database that is serving the object. More...
#include <ObjectId.h>
Public Types | |
enum | OidType { GMLOBJECTID, FEATUREID } |
The type of object identification used. More... | |
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
ObjectId (const char *id, OidType oidType) | |
It initializes a new ObjectId. More... | |
~ObjectId () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setId (const std::string &id) |
It sets the feature identification value. More... | |
const std::string & | getId () const |
It returns the feature identification value. More... | |
void | setOidType (OidType t) |
It sets the format type used by the feature identification value. More... | |
OidType | getOidType () const |
It returns the format type used by the feature identification value. More... | |
Private Attributes | |
std::string | m_id |
The id in a string format. More... | |
OidType | m_oidType |
May be one of: GmlObjectId, FeatureId, ObjectId, RecordId. More... | |
An object identifier is meant to represent a unique identifier for an object instance within the context of the web service or database that is serving the object.
The Filter Encoding specification does not define a specific element for identifying objects but instead defines the abstract element Id as the head of an XML substitution group that may be used to define an object identifier element for specific object types.
Remember that:
Definition at line 58 of file ObjectId.h.
The type of object identification used.
Enumerator | |
---|---|
GMLOBJECTID |
Using GML 3 format for oid (default). |
FEATUREID |
using GML 2 format for oid. |
Definition at line 67 of file ObjectId.h.
te::fe::ObjectId::ObjectId | ( | const char * | id, |
OidType | oidType | ||
) |
It initializes a new ObjectId.
id | The object identification value. Must be a non empty value. |
oidType | The type of object identification used. |
te::fe::ObjectId::~ObjectId | ( | ) |
Destructor.
const std::string& te::fe::ObjectId::getId | ( | ) | const |
It returns the feature identification value.
OidType te::fe::ObjectId::getOidType | ( | ) | const |
It returns the format type used by the feature identification value.
void te::fe::ObjectId::setId | ( | const std::string & | id | ) |
It sets the feature identification value.
id | The feature identification value. |
void te::fe::ObjectId::setOidType | ( | OidType | t | ) |
It sets the format type used by the feature identification value.
t | The format type used by the feature identification value. |
|
private |
The id in a string format.
Definition at line 128 of file ObjectId.h.
|
private |
May be one of: GmlObjectId, FeatureId, ObjectId, RecordId.
Definition at line 129 of file ObjectId.h.