#include <TdkThemeObjects.h>
Public Member Functions | |
TdkThemeObjects (TdkTheme &th) | |
Constructor (must receive a theme). | |
~TdkThemeObjects () | |
TdkThemeObjects * | copy () |
void | idList (TeGeomRep geom, TdkObjectIdList &lst) |
Returns a list of strings with the object_ids for a given geometry. | |
TdkObjectIdentifierList & | geomIdentifiers (TeGeomRep geom) |
Returns a list of pairs of geom_id and object for a given geometry. | |
void | pointIds (TdkObjectIdList &lst) |
Returns a list of strings with the object_ids with POINT geometry. | |
TdkObjectIdentifierList & | pointIdentifiers () |
Returns a list of pairs of geom_id and object_id with POINT geometry. | |
void | lineIds (TdkObjectIdList &lst) |
Returns a list of strings with the object_ids with LINE geometry. | |
TdkObjectIdentifierList & | lineIdentifiers () |
Returns a list of pairs of geom_id and object_id with LINE geometry. | |
void | polyIds (TdkObjectIdList &lst) |
Returns a list of strings with the object_ids with POLYGON geometry. | |
TdkObjectIdentifierList & | polyIdentifiers () |
Returns a list of pairs of geom_id and object_id with POLYGON geometry. | |
void | textIds (TdkObjectIdList &lst) |
Returns a list of strings with the object_ids with TEXT geometry. | |
TdkObjectIdentifierList & | textIdentifiers () |
Returns a list of pairs of geom_id and object_id with TEXT geometry. | |
std::string | whereClause (std::string indexName, bool exclusive) |
Returns a string to be used as a Where clause in a sql statement. | |
void | clear () |
Clears the internal list of objects. | |
bool | hasID (std::string id) |
Returns if an object with an especific id exist in the internal list of objects. | |
bool | hasIdentifier (int geom_id, std::string object_id) |
Returns if an object with an especific geom_id and object_id exist in the internal list of objects. | |
void | erase () |
Removes all the objects. | |
void | erase (TeGeomRep geom, string id) |
Removes from the internal list of objects an object with a given id and a given geometry. | |
unsigned int | size () |
Returns the size of the internal list of objects for ALL geometries. | |
Public Attributes | |
TdkTheme & | theme |
Private Member Functions | |
void | getObjectIdList (TdkObjectIdentifierList &os, TdkObjectIdList &ids) |
Private Attributes | |
TdkObjectIdentifierList | ids_ [4] |
This class defines a container of objects that belongs to a Theme. The objects in this class are grouped by geometry type. The objects are pairs of geom_id and object_id. In this class, there are methods that return only selected object_ids because of old versions of this class.
TdkThemeObjects::TdkThemeObjects | ( | TdkTheme & | th | ) | [inline] |
Constructor (must receive a theme).
TdkThemeObjects::~TdkThemeObjects | ( | ) | [inline] |
TdkThemeObjects * TdkThemeObjects::copy | ( | ) |
void TdkThemeObjects::idList | ( | TeGeomRep | geom, | |
TdkObjectIdList & | lst | |||
) | [inline] |
Returns a list of strings with the object_ids for a given geometry.
TdkObjectIdentifierList & TdkThemeObjects::geomIdentifiers | ( | TeGeomRep | geom | ) | [inline] |
Returns a list of pairs of geom_id and object for a given geometry.
void TdkThemeObjects::pointIds | ( | TdkObjectIdList & | lst | ) | [inline] |
Returns a list of strings with the object_ids with POINT geometry.
TdkObjectIdentifierList & TdkThemeObjects::pointIdentifiers | ( | ) | [inline] |
Returns a list of pairs of geom_id and object_id with POINT geometry.
void TdkThemeObjects::lineIds | ( | TdkObjectIdList & | lst | ) | [inline] |
Returns a list of strings with the object_ids with LINE geometry.
TdkObjectIdentifierList & TdkThemeObjects::lineIdentifiers | ( | ) | [inline] |
Returns a list of pairs of geom_id and object_id with LINE geometry.
void TdkThemeObjects::polyIds | ( | TdkObjectIdList & | lst | ) | [inline] |
Returns a list of strings with the object_ids with POLYGON geometry.
TdkObjectIdentifierList & TdkThemeObjects::polyIdentifiers | ( | ) | [inline] |
Returns a list of pairs of geom_id and object_id with POLYGON geometry.
void TdkThemeObjects::textIds | ( | TdkObjectIdList & | lst | ) | [inline] |
Returns a list of strings with the object_ids with TEXT geometry.
TdkObjectIdentifierList & TdkThemeObjects::textIdentifiers | ( | ) | [inline] |
Returns a list of pairs of geom_id and object_id with TEXT geometry.
std::string TdkThemeObjects::whereClause | ( | std::string | indexName, | |
bool | exclusive | |||
) |
Returns a string to be used as a Where clause in a sql statement.
This string contains all the object identifiers in the internal list of objects. The parameter indexName is used to put the name of the column to build the sql statement. The exclusive parameter defines if the statement is to find the objects that are IN or NOT IN all the objects.
void TdkThemeObjects::clear | ( | ) | [inline] |
Clears the internal list of objects.
bool TdkThemeObjects::hasID | ( | std::string | id | ) |
Returns if an object with an especific id exist in the internal list of objects.
bool TdkThemeObjects::hasIdentifier | ( | int | geom_id, | |
std::string | object_id | |||
) |
Returns if an object with an especific geom_id and object_id exist in the internal list of objects.
void TdkThemeObjects::erase | ( | ) |
Removes all the objects.
void TdkThemeObjects::erase | ( | TeGeomRep | geom, | |
string | id | |||
) |
Removes from the internal list of objects an object with a given id and a given geometry.
unsigned int TdkThemeObjects::size | ( | ) |
Returns the size of the internal list of objects for ALL geometries.
void TdkThemeObjects::getObjectIdList | ( | TdkObjectIdentifierList & | os, | |
TdkObjectIdList & | ids | |||
) | [private] |
TdkObjectIdentifierList TdkThemeObjects::ids_[4] [private] |