All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 51 of file QueryGraphBuilder.cpp.

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

Virtual destructor.

Definition at line 56 of file QueryGraphBuilder.cpp.

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 
)
std::string te::graph::AbstractGraphBuilder::getErrorMessage ( )
inherited

Get error message.

Definition at line 43 of file AbstractGraphBuilder.cpp.

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

Get generated graph.

Definition at line 48 of file AbstractGraphBuilder.cpp.

Member Data Documentation

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

Error message.

Definition at line 84 of file AbstractGraphBuilder.h.

Referenced by te::graph::AbstractGraphBuilder::AbstractGraphBuilder().

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

Graph object.

Definition at line 82 of file AbstractGraphBuilder.h.

Referenced by te::graph::AbstractGraphBuilder::AbstractGraphBuilder().


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