te::graph::QueryGraphBuilder Class Reference

This class defines the Query strategy to build a graph having a exist graph as input parameters. More...

#include <QueryGraphBuilder.h>

Inheritance diagram for te::graph::QueryGraphBuilder:
te::graph::AbstractGraphBuilder

Public Member Functions

 QueryGraphBuilder ()
 Default constructor. More...
 
virtual ~QueryGraphBuilder ()
 Virtual destructor. More...
 
Methods

Methods used by this builder

bool build (te::graph::AbstractGraph *g, te::da::Expression *eEdge, te::da::Expression *eVertex, const std::map< std::string, std::string > &dsInfo, const std::string &graphType, const std::map< std::string, std::string > &gInfo)
 Function used to generated the vertex id based on raster coordenate. More...
 
Abstract Methods

Method common to each graph builder

std::string getErrorMessage ()
 Get error message. More...
 
boost::shared_ptr< AbstractGraphgetGraph ()
 Get generated graph. More...
 

Protected Attributes

std::string m_errorMessage
 Error message. More...
 
boost::shared_ptr< AbstractGraphm_graph
 Graph object. More...
 

Detailed Description

This class defines the Query strategy to build a graph having a exist graph as input parameters.

The query must be defined using only the terralib Query module elements.

See also
AbstractGraphBuilder

Definition at line 61 of file QueryGraphBuilder.h.

Constructor & Destructor Documentation

te::graph::QueryGraphBuilder::QueryGraphBuilder ( )

Default constructor.

virtual te::graph::QueryGraphBuilder::~QueryGraphBuilder ( )
virtual

Virtual destructor.

Member Function Documentation

bool te::graph::QueryGraphBuilder::build ( te::graph::AbstractGraph g,
te::da::Expression eEdge,
te::da::Expression eVertex,
const std::map< std::string, std::string > &  dsInfo,
const std::string &  graphType,
const std::map< std::string, std::string > &  gInfo 
)

Function used to generated the vertex id based on raster coordenate.

Parameters
gInpput graph
eExpression tha defines a query
dsInfoContainer with data source information
graphTypeAttribute used to define the output graph type
gInfoContainer with graph generation parameters
Returns
True if the graph was correctly generated and false in other case.
std::string te::graph::AbstractGraphBuilder::getErrorMessage ( )
inherited

Get error message.

boost::shared_ptr<AbstractGraph> te::graph::AbstractGraphBuilder::getGraph ( )
inherited

Get generated graph.

Member Data Documentation

std::string te::graph::AbstractGraphBuilder::m_errorMessage
protectedinherited

Error message.

Definition at line 84 of file AbstractGraphBuilder.h.

boost::shared_ptr<AbstractGraph> te::graph::AbstractGraphBuilder::m_graph
protectedinherited

Graph object.

Definition at line 82 of file AbstractGraphBuilder.h.


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