28 #ifndef __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHLOADERSTRATEGY_H
29 #define __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHLOADERSTRATEGY_H
32 #include "../core/GraphMetadata.h"
33 #include "../Config.h"
This class define the main functions necessary to save and load the graph data and metadata informati...
void saveEdgeAttributes(GraphData *data)
Used to save the edges elements attributes from a graph data.
Vertex * loadVertex(int id)
Function used to load one vertex given a ID.
Vertex * loadVertexAttrs(int id)
Function used to load one vertex given a ID.
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.
virtual void removeVertex(int id)
Function used to remove a vertex saved in a data source.
te::graph::GraphMetadata * getMetadata()
It returns a pointer to a class that describes the graph metadata.
void saveGraphVertexList(GraphData *data)
Used to save the vertex elements from a graph data.
virtual void saveData(GraphData *data)
Save the graph data structure in Data Source.
AbstractGraphLoaderStrategy(te::graph::GraphMetadata *metadata)
Default constructor.
void saveGraphEdgeList(GraphData *data)
Used to save the edge elements from a graph data.
virtual void removeEdge(int id)
Function used to remove a edge saved in a data source.
virtual ~AbstractGraphLoaderStrategy()
Default destructor.
void saveVertexAttributes(GraphData *data)
Used to save the vertex elements attributes from a graph data.
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.
Edge * loadEdge(int id)
Function used to load one edge given a ID.
te::graph::GraphMetadata * m_graphMetadata
Graph metadata attribute.
Edge * loadEdgeAttrs(int id)
Function used to load one edge given a ID.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
Class used to manager the graph data elements. This class uses a cache policy to control the elements...
This class define a important struct used to group a map of vertex and edges. A flag is used to indic...
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.