|
Sparksee 6.1.0
|
Defines how to export a graph to an external format. More...
#include <Sparksee.h>


Instance Methods | |
| (void) | - prepare: |
| Prepares the graph for the export process. | |
| (void) | - close |
| Ends the export process. | |
| (BOOL) | - getGraph: |
| Gets the graph export definition. | |
| (BOOL) | - getNodeType:nodeExport: |
| Gets the default node export definition for the given node type. | |
| (BOOL) | - getEdgeType:edgeExport: |
| Gets the default node export definition for the given edge type. | |
| (BOOL) | - getNode:nodeExport: |
| Gets the node export definition for the given node. | |
| (BOOL) | - getEdge:edgeExport: |
| Gets the edge export definition for the given edge. | |
| (BOOL) | - enableType: |
| Gets whether a node or edge type must be exported or not. | |
| (BOOL) | - exportAll |
| Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions. | |
| (BOOL) | - exportAllSwigExplicitSTSExportManager |
| Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions. | |
| (long long) | - nextNode |
| Gets the next node to export or InvalidOID. | |
| (long long) | - nextNodeSwigExplicitSTSExportManager |
| Gets the next node to export or InvalidOID. | |
| (long long) | - nextEdge |
| Gets the next edge to export or InvalidOID. | |
| (long long) | - nextEdgeSwigExplicitSTSExportManager |
| Gets the next edge to export or InvalidOID. | |
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.
| - (void) close |
Ends the export process.
It is called once after the export process.
Implemented in STSDefaultExport.
References close.
Referenced by close.
| - (BOOL) enableType: | (int) | type |
Gets whether a node or edge type must be exported or not.
| type | Node or edge type identifier. |
Implemented in STSDefaultExport.
| - (BOOL) exportAll |
Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions.
Or false to use the new NextNode() and NextEdge() methods of this class to get the only nodes/edges that should be exported.
Implemented in STSDefaultExport.
References exportAll.
Referenced by exportAll.
| - (BOOL) exportAllSwigExplicitSTSExportManager |
Get if all the graph object should be exported or only a subgraph It should return true (default option), to export all the nodes and edges in the Graph as with previous verions.
Or false to use the new NextNode() and NextEdge() methods of this class to get the only nodes/edges that should be exported.
References exportAllSwigExplicitSTSExportManager.
Referenced by exportAllSwigExplicitSTSExportManager.
| - (BOOL) getEdge: | (long long) | edge | |
| edgeExport: | (STSEdgeExport *) | edgeExport |
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 STSDefaultExport.
| - (BOOL) getEdgeType: | (int) | type | |
| edgeExport: | (STSEdgeExport *) | edgeExport |
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 STSDefaultExport.
| - (BOOL) getGraph: | (STSGraphExport *) | graphExport |
Gets the graph export definition.
| graphExport | [out] The GraphExport which defines how to export the graph. |
Implemented in STSDefaultExport.
| - (BOOL) getNode: | (long long) | node | |
| nodeExport: | (STSNodeExport *) | nodeExport |
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 STSDefaultExport.
| - (BOOL) getNodeType: | (int) | type | |
| nodeExport: | (STSNodeExport *) | nodeExport |
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 STSDefaultExport.
| - (long long) nextEdge |
Gets the next edge to export or InvalidOID.
It will return valid edge OIDs to export and InvalidOID when there is not any more edges to export. ExportAll returns false.
Implemented in STSDefaultExport.
References nextEdge.
Referenced by nextEdge.
| - (long long) nextEdgeSwigExplicitSTSExportManager |
Gets the next edge to export or InvalidOID.
It will return valid edge OIDs to export and InvalidOID when there is not any more edges to export. ExportAll returns false.
References nextEdgeSwigExplicitSTSExportManager.
Referenced by nextEdgeSwigExplicitSTSExportManager.
| - (long long) nextNode |
Gets the next node to export or InvalidOID.
It will return valid node OIDs to export and InvalidOID when there is not any more nodes to export. ExportAll returns false.
Implemented in STSDefaultExport.
References nextNode.
Referenced by nextNode.
| - (long long) nextNodeSwigExplicitSTSExportManager |
Gets the next node to export or InvalidOID.
It will return valid node OIDs to export and InvalidOID when there is not any more nodes to export. ExportAll returns false.
References nextNodeSwigExplicitSTSExportManager.
Referenced by nextNodeSwigExplicitSTSExportManager.
| - (void) prepare: | (STSGraph *) | graph |
Prepares the graph for the export process.
It is called once before the export process.
| graph | Graph to be exported. |
Implemented in STSDefaultExport.