VisioMove SDK (iOS)  2.1.22
VgEngine::VgQuery Class Reference

Public Types

Public Member Functions

 VgQuery ()
 
virtual ~VgQuery ()
 
VgQuerywhere (const std::string &pKey, VgQuery::Operator pOp, const std::string &pValue)
 
VgQueryreset ()
 

Protected Attributes

Private * mPrivate
 

Friends

class VgObjectBridge
 

Detailed Description

Holds a query that could be executed by the engine.

Warning
Performance note: this query mechanism should not be used intensively.
Version
2.0.9334
See also
VgEngine::VgIEngine::execute

Member Enumeration Documentation

Enumerator
eEquals 

Equality operator.

Constructor & Destructor Documentation

VgEngine::VgQuery::VgQuery ( )

Constructor.

virtual VgEngine::VgQuery::~VgQuery ( )
virtual

Destructor.

Member Function Documentation

VgQuery& VgEngine::VgQuery::reset ( )

Resets the VgQuery conditions, useful when reusing VgQuery's

Returns
A reference of itself, allowing calls to be chained.
VgQuery& VgEngine::VgQuery::where ( const std::string &  pKey,
VgQuery::Operator  pOp,
const std::string &  pValue 
)

Adds a condition to the query. If the pKey has already been used replaces the condition for that key. ie lQuery.where("ID",...,"A").where("ID",...,"B") is equivalent to lQuery.where("ID",...,"B")

Parameters
pKeyCurrently, the key can be 'class' or 'ID'.
pOpThe operation to be performed by the query. For the list of available operations, see VgEngine::VgQuery::Operator.
pValueThe value that will be the object of the query operation. When using the key 'class' this value must be the fully qualified name, for example 'Vg3DModule::VgPoint'. Currently, Vg3DModule::VgPoint, Vg3DModule::VgLine, Vg3DModule::VgIGeometry, and VgEngine::VgSpatial can be queried.

Example:

...
// Query for an specific ID
...
lSpatials = lEngine->execute(lQuery.where("ID",VgEngine::VgQuery::eEquals,"L-250"));
...
// Query all VgPoint
VgEngine::VgQuery lQueryAll;
lSpatials = lEngine->execute(lQueryAll.where("class",VgEngine::VgQuery::eEquals,"Vg3DModule::VgPoint"));
...
Returns
A reference of itself, allowing calls to be chained.
Version
2.1.0 Allows for Vg3DModule::VgLine
2.1.3 documented all the classes that are accessible.
See also
VgEngine::VgIEngine::execute for more complete example.

Friends And Related Function Documentation

friend class VgObjectBridge
friend

Member Data Documentation

Private* VgEngine::VgQuery::mPrivate
protected

Private.


The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016