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::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.
Definition at line 51 of file QueryGraphBuilder.cpp.
References ~QueryGraphBuilder().
|
virtualdefault |
Virtual destructor.
Referenced by QueryGraphBuilder().
| bool te::graph::QueryGraphBuilder::build | ( | te::graph::AbstractGraph * | g, |
| te::da::Expression * | eEdge, | ||
| te::da::Expression * | eVertex, | ||
| const 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 | The necessary information to access the data source |
| graphType | Attribute used to define the output graph type |
| gInfo | Container with graph generation parameters |
Definition at line 58 of file QueryGraphBuilder.cpp.
References te::dt::Property::clone(), te::graph::AbstractIterator::getEdgeInteratorCount(), te::graph::GraphMetadata::getEdgeProperty(), te::graph::AbstractGraph::getEdgePropertySize(), te::graph::QueryIterator::getFirstEdge(), te::graph::QueryIterator::getFirstVertex(), te::graph::AbstractGraph::getMetadata(), te::graph::AbstractIterator::getNextEdge(), te::graph::AbstractIterator::getNextVertex(), te::graph::AbstractIterator::getVertexInteratorCount(), te::graph::GraphMetadata::getVertexProperty(), te::graph::AbstractGraph::getVertexPropertySize(), te::graph::AbstractIterator::isEdgeIteratorAfterEnd(), te::graph::AbstractIterator::isVertexIteratorAfterEnd(), te::graph::AbstractGraphBuilder::m_graph, te::graph::AbstractGraphFactory::make(), p, te::common::TaskProgress::pulse(), te::common::TaskProgress::setMessage(), te::dt::Property::setParent(), te::common::TaskProgress::setTotalSteps(), TE_TR, and te::common::TaskProgress::useTimer().
|
inherited |
Get error message.
Definition at line 41 of file AbstractGraphBuilder.cpp.
References te::graph::AbstractGraphBuilder::m_errorMessage.
Referenced by CreateLDDGraph().
|
inherited |
Get generated graph.
Definition at line 46 of file AbstractGraphBuilder.cpp.
References te::graph::AbstractGraphBuilder::m_graph.
Referenced by CreateLDDGraph().
|
protectedinherited |
Error message.
Definition at line 84 of file AbstractGraphBuilder.h.
Referenced by te::graph::AbstractGraphBuilder::AbstractGraphBuilder(), and te::graph::AbstractGraphBuilder::getErrorMessage().
|
protectedinherited |
Graph object.
Definition at line 82 of file AbstractGraphBuilder.h.
Referenced by te::graph::AbstractGraphBuilder::AbstractGraphBuilder(), build(), te::graph::RAGGraphBuilder::build(), te::graph::LDDGraphBuilder::build(), te::graph::FlowGraphBuilder::build(), te::graph::RAGGraphBuilder::createEdgeObjects(), te::graph::FlowGraphBuilder::createEdgeObjects(), te::graph::RAGGraphBuilder::createVertexObjects(), te::graph::FlowGraphBuilder::createVertexObjects(), and te::graph::AbstractGraphBuilder::getGraph().