Sparksee
6.0.2
|
Defines how to export a graph to an external format. More...
Public Member Functions | |
virtual | ~ExportManager () |
Destructor. | |
virtual void | Prepare (Graph *graph)=0 |
Prepares the graph for the export process. More... | |
virtual void | Release ()=0 |
Ends the export process. More... | |
virtual bool_t | GetGraph (GraphExport &graphExport)=0 |
Gets the graph export definition. More... | |
virtual bool_t | GetNodeType (type_t type, NodeExport &nodeExport)=0 |
Gets the default node export definition for the given node type. More... | |
virtual bool_t | GetEdgeType (type_t type, EdgeExport &edgeExport)=0 |
Gets the default node export definition for the given edge type. More... | |
virtual bool_t | GetNode (oid_t node, NodeExport &nodeExport)=0 |
Gets the node export definition for the given node. More... | |
virtual bool_t | GetEdge (oid_t edge, EdgeExport &edgeExport)=0 |
Gets the edge export definition for the given edge. More... | |
virtual bool_t | EnableType (type_t type)=0 |
Gets whether a node or edge type must be exported or not. More... | |
Defines how to export a graph to an external format.
This is an interface which must be implemented by the user. While the export proces, a call for each node or edge type and node or edge object is done to get how to export that element.
It is possible to export a Graph to a diferent fortmats. Nowadays, available formats are defined in the ExportType enum.
Gets whether a node or edge type must be exported or not.
type | Node or edge type identifier. |
Implemented in DefaultExport.
|
pure virtual |
Gets the edge export definition for the given edge.
edge | Edge identifier. |
edgeExport | [out] The EdgeExport which defines how to export given edge. |
Implemented in DefaultExport.
|
pure virtual |
Gets the default node export definition for the given edge type.
GetEdge has a higher priority than this function. That is, only if GetEdge returns FALSE, the EdgeExport of this function will be used.
type | [in] Edge type identifier. |
edgeExport | [out] The EdgeExport which defines how to export the edges of the given type. |
Implemented in DefaultExport.
|
pure virtual |
Gets the graph export definition.
graphExport | [out] The GraphExport which defines how to export the graph. |
Implemented in DefaultExport.
|
pure virtual |
Gets the node export definition for the given node.
node | Node identifier. |
nodeExport | [out] The NodeExport which defines how to export given node. |
Implemented in DefaultExport.
|
pure virtual |
Gets the default node export definition for the given node type.
GetNode has a higher priority than this function. That is, only if GetNode returns FALSE, the NodeExport of this function will be used.
type | [in] Node type identifier. |
nodeExport | [out] The NodeExport which defines how to export the nodes of the given type. |
Implemented in DefaultExport.
|
pure virtual |
Prepares the graph for the export process.
It is called once before the export process.
graph | Graph to be exported. |
Implemented in DefaultExport.
|
pure virtual |