Click or drag to resize

GRSImportImport Method (TextReader, Int64, String, IBackend, IActions)

Imports the given graph from the given text reader input stream. Any errors will be reported by exception.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 8.0beta
Syntax
C#
public static INamedGraph Import(
	TextReader reader,
	long fileSize,
	string modelOverride,
	IBackend backend,
	out IActions actions
)

Parameters

reader
Type: System.IOTextReader
The text reader input stream import source.
fileSize
Type: SystemInt64
The size of the input file.
modelOverride
Type: SystemString
The graph model to be used, it must be conformant to the model used in the file to be imported.
backend
Type: de.unika.ipd.grGen.libGrIBackend
The backend to use to create the graph.
actions
Type: de.unika.ipd.grGen.libGrIActions
Receives the actions object in case a .grg model is given.

Return Value

Type: INamedGraph
The imported graph. An INamedGraph is returned. If you don't need it: create an LGSPGraph from it and throw the named graph away. (the naming requires about the same amount of memory the raw graph behind it requires).
See Also