This class defines the Query strategy to build a graph having a exist graph as input parameters. More...
#include <QueryGraphBuilder.h>
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< AbstractGraph > | getGraph () |
Get generated graph. More... | |
Protected Attributes | |
std::string | m_errorMessage |
Error message. More... | |
boost::shared_ptr< AbstractGraph > | m_graph |
Graph object. More... | |
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.
Definition at line 61 of file QueryGraphBuilder.h.
te::graph::QueryGraphBuilder::QueryGraphBuilder | ( | ) |
Default constructor.
|
virtual |
Virtual destructor.
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.
g | Inpput graph |
e | Expression tha defines a query |
dsInfo | Container with data source information |
graphType | Attribute used to define the output graph type |
gInfo | Container with graph generation parameters |
|
inherited |
Get error message.
|
inherited |
Get generated graph.
|
protectedinherited |
Error message.
Definition at line 84 of file AbstractGraphBuilder.h.
|
protectedinherited |
Graph object.
Definition at line 82 of file AbstractGraphBuilder.h.