te::fe::GeometryOperands Class Reference

Geometry operands. More...

#include <GeometryOperands.h>

Public Member Functions

Initializer Methods

Methods related to instantiation and destruction.

 GeometryOperands ()
 It initializes a new GeometryOperands. More...
 
 ~GeometryOperands ()
 Destructor. More...
 

Private Attributes

std::vector< const char * > m_operands
 A vector of const pointer to geometry operand type name. Mandatory at least one operand type. More...
 

Static Private Attributes

static std::set< const char *, te::common::LessCmp< const char * > > sm_validGeometryOperands
 The list of valid bynary geometry operands. More...
 

Accessor methods

Methods used to get or set properties.

size_t size () const
 It returns the number of available geometry operands in the object list. More...
 
void push_back (const char *g)
 It adds the geometry operand to the supported list of operands. More...
 
const char * operator[] (size_t i) const
 It returns a specified geometry operand. More...
 
static const char * findOperand (const char *o)
 It checks if operator 'o' is a valid operator. It returns a pointer to the found operator or NULL otherwise. More...
 
static void loadValidGeometryOperandsList ()
 It loads the valid geometry operands list. More...
 
static void clearValidGeometryOperandsList ()
 It clears the valid geometry operands list. More...
 

Detailed Description

Geometry operands.

The geometry operands can be:

  • gml:Envelope
  • gml:Point
  • gml:LineString
  • gml:Polygon
  • gml:ArcByCenterPoint
  • gml:CircleByCenterPoint
  • gml:Arc
  • gml:Circle
  • gml:ArcByBulge
  • gml:Bezier
  • gml:Clothoid
  • gml:CubicSpline
  • gml:Geodesic
  • gml:OffsetCurve
  • gml:Triangle
  • gml:PolyhedralSurface
  • gml:TriangulatedSurface
  • gml:Tin
  • gml:Solid
See also
SpatialCapabilities, SpatialOperator

Definition at line 71 of file GeometryOperands.h.

Constructor & Destructor Documentation

te::fe::GeometryOperands::GeometryOperands ( )

It initializes a new GeometryOperands.

te::fe::GeometryOperands::~GeometryOperands ( )

Destructor.

Member Function Documentation

static void te::fe::GeometryOperands::clearValidGeometryOperandsList ( )
static

It clears the valid geometry operands list.

static const char* te::fe::GeometryOperands::findOperand ( const char *  o)
static

It checks if operator 'o' is a valid operator. It returns a pointer to the found operator or NULL otherwise.

Parameters
oThe operator name we are looking for.
static void te::fe::GeometryOperands::loadValidGeometryOperandsList ( )
static

It loads the valid geometry operands list.

const char* te::fe::GeometryOperands::operator[] ( size_t  i) const

It returns a specified geometry operand.

Parameters
iThe index of desired geometry operand.
Returns
A specified geometry operand.
Note
You must not clear the returned geometry operand.
The method will not check the index range.
void te::fe::GeometryOperands::push_back ( const char *  g)

It adds the geometry operand to the supported list of operands.

Parameters
gThe geometry operand to be added to the supported list of operands.
size_t te::fe::GeometryOperands::size ( ) const

It returns the number of available geometry operands in the object list.

Returns
The number of available geometry operands in the object list.
Warning
This is not the same as the all available in the system! This way you can limit in your service the geometry operands.

Member Data Documentation

std::vector<const char*> te::fe::GeometryOperands::m_operands
private

A vector of const pointer to geometry operand type name. Mandatory at least one operand type.

Definition at line 139 of file GeometryOperands.h.

std::set<const char*, te::common::LessCmp<const char*> > te::fe::GeometryOperands::sm_validGeometryOperands
staticprivate

The list of valid bynary geometry operands.

Definition at line 141 of file GeometryOperands.h.


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