|
SparkseeNet 6.1.0
|
Defines how to export a graph to an external format. More...

Public Member Functions | |
| bool | GetEdge (long edge, com.sparsity.sparksee.gdb.EdgeExport edgeExport) |
| Gets the edge export definition for the given edge. | |
| void | Release () |
| Ends the export process. | |
| bool | GetGraph (com.sparsity.sparksee.gdb.GraphExport graphExport) |
| Gets the graph export definition. | |
| long | NextEdge () |
| Gets the next edge to export or InvalidOID. | |
| bool | GetNode (long node, com.sparsity.sparksee.gdb.NodeExport nodeExport) |
| Gets the node export definition for the given node. | |
| long | NextNode () |
| Gets the next node to export or InvalidOID. | |
| bool | GetNodeType (int type, com.sparsity.sparksee.gdb.NodeExport nodeExport) |
| Gets the default node export definition for the given node type. | |
| 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 | EnableType (int type) |
| Gets whether a node or edge type must be exported or not. | |
| void | Prepare (com.sparsity.sparksee.gdb.Graph graph) |
| Prepares the graph for the export process. | |
| bool | GetEdgeType (int type, com.sparsity.sparksee.gdb.EdgeExport edgeExport) |
| Gets the default node export definition for the given edge type. | |
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.
| bool com.sparsity.sparksee.gdb.ExportManager.EnableType | ( | int | type | ) |
Gets whether a node or edge type must be exported or not.
| type | Node or edge type identifier. |
| bool com.sparsity.sparksee.gdb.ExportManager.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.
| bool com.sparsity.sparksee.gdb.ExportManager.GetEdge | ( | long | edge, |
| com.sparsity.sparksee.gdb.EdgeExport | edgeExport ) |
Gets the edge export definition for the given edge.
| edge | Edge identifier. |
| edgeExport | [out] The EdgeExport which defines how to export given edge. |
| bool com.sparsity.sparksee.gdb.ExportManager.GetEdgeType | ( | int | type, |
| com.sparsity.sparksee.gdb.EdgeExport | 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. |
| bool com.sparsity.sparksee.gdb.ExportManager.GetGraph | ( | com.sparsity.sparksee.gdb.GraphExport | graphExport | ) |
Gets the graph export definition.
| graphExport | [out] The GraphExport which defines how to export the graph. |
| bool com.sparsity.sparksee.gdb.ExportManager.GetNode | ( | long | node, |
| com.sparsity.sparksee.gdb.NodeExport | nodeExport ) |
Gets the node export definition for the given node.
| node | Node identifier. |
| nodeExport | [out] The NodeExport which defines how to export given node. |
| bool com.sparsity.sparksee.gdb.ExportManager.GetNodeType | ( | int | type, |
| com.sparsity.sparksee.gdb.NodeExport | 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. |
| long com.sparsity.sparksee.gdb.ExportManager.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.
| long com.sparsity.sparksee.gdb.ExportManager.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.
| void com.sparsity.sparksee.gdb.ExportManager.Prepare | ( | com.sparsity.sparksee.gdb.Graph | graph | ) |
Prepares the graph for the export process.
It is called once before the export process.
| graph | Graph to be exported. |
| void com.sparsity.sparksee.gdb.ExportManager.Release | ( | ) |
Ends the export process.
It is called once after the export process.