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... | |
| AbstractGraph * | getGraph () | 
| Get generated graph.  More... | |
Protected Attributes | |
| std::string | m_errorMessage | 
| Error message.  More... | |
| 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.
Definition at line 51 of file QueryGraphBuilder.cpp.
      
  | 
  virtual | 
Virtual destructor.
Definition at line 56 of file QueryGraphBuilder.cpp.
| 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 | 
Definition at line 60 of file QueryGraphBuilder.cpp.
References te::dt::Property::clone(), te::graph::AbstractIterator::getEdgeInteratorCount(), te::graph::GraphMetadata::getEdgeProperty(), te::graph::AbstractGraph::getEdgePropertySize(), te::graph::AbstractGraph::getFirstEdge(), te::graph::AbstractGraph::getFirstVertex(), te::graph::AbstractGraph::getIterator(), te::graph::AbstractGraph::getMetadata(), te::graph::AbstractGraph::getNextEdge(), te::graph::AbstractGraph::getNextVertex(), te::graph::AbstractIterator::getVertexInteratorCount(), te::graph::GraphMetadata::getVertexProperty(), te::graph::AbstractGraph::getVertexPropertySize(), te::graph::AbstractIterator::isEdgeIteratorAfterEnd(), te::graph::AbstractIterator::isVertexIteratorAfterEnd(), te::graph::AbstractGraphFactory::make(), te::common::TaskProgress::pulse(), te::graph::AbstractGraph::setIterator(), te::common::TaskProgress::setMessage(), te::dt::Property::setParent(), te::common::TaskProgress::setTotalSteps(), TR_GRAPH, and te::common::TaskProgress::useTimer().
      
  | 
  inherited | 
Get error message.
Definition at line 13 of file AbstractGraphBuilder.cpp.
      
  | 
  inherited | 
Get generated graph.
Definition at line 18 of file AbstractGraphBuilder.cpp.
      
  | 
  protectedinherited | 
Error message.
Definition at line 85 of file AbstractGraphBuilder.h.
Referenced by te::graph::AbstractGraphBuilder::AbstractGraphBuilder().
      
  | 
  protectedinherited | 
Graph object.
Definition at line 83 of file AbstractGraphBuilder.h.
Referenced by te::graph::AbstractGraphBuilder::AbstractGraphBuilder().