30 #include "../../core/translator/Translator.h" 31 #include "../../common/StringUtils.h" 32 #include "../core/Edge.h" 33 #include "../core/Vertex.h" 34 #include "../loader/AbstractGraphLoaderStrategy.h" 35 #include "../Config.h" 36 #include "../Exception.h" void saveGraphData(GraphData *data)
Save the graph data structure in Data Source.
void loadGraphDataByVertexId(int vertexId, te::graph::GraphCache *gc=0)
Load a set of vertex elements that includes the desired element.
virtual ~GraphDataManager()
Default destructor.
void removeEdge(int id)
Function used to remove a edge from data source.
void setLoaderStrategy(AbstractGraphLoaderStrategy *loaderStrategy)
Function used to set a current loader strategy.
virtual void loadDataByEdgeId(int edgeId, te::graph::AbstractGraph *g, te::graph::GraphCache *gc=0)=0
Functio used to load a group of edges elements given a base element.
te::gm::GeometryCollection * gc
AbstractGraphLoaderStrategy * getLoaderStrategy()
Function used to get the current loader strategy.
virtual void saveData(GraphData *data)
Save the graph data structure in Data Source.
This class defines a interface to access the graph elements inside a data source. Its use a implement...
virtual void removeVertex(int id)
Function used to remove a vertex saved in a data source.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
This class define the main functions necessary to save and load the graph data and metadata informati...
Class used to manager the graph data elements. This class uses a cache policy to control the elements...
void loadGraphDataByEdgeId(int edgeId, te::graph::GraphCache *gc=0)
Load a set of edges elements that includes the desired element.
GraphDataManager(te::graph::AbstractGraph *g)
Default constructor.
void removeVertex(int id)
Function used to remove a vertex from data source.
This class define a important struct used to group a map of vertex and edges. A flag is used to indic...
virtual void loadDataByVertexId(int vertexId, te::graph::AbstractGraph *g, te::graph::GraphCache *gc=0)=0
Functio used to load a group of vertex elements given a base element.
AbstractGraph * m_graph
Pointer to a graph object.
AbstractGraphLoaderStrategy * m_loadStrategy
Pointer to a loader strategy object.
virtual void removeEdge(int id)
Function used to remove a edge saved in a data source.