Click or drag to resize

IRecorder Interface

An interface for recording changes (and their causes) applied to a graph into a file, so that they can get replayed.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
public interface IRecorder

The IRecorder type exposes the following members.

Methods
  NameDescription
Public methodExternal
Writes a line starting with "external ", ending with a new line, containing the given string in between (which must not contain "\n" or "\r"), to the currently ongoing recordings. This is the format expected for fine-grain external attribute changes, the string is passed to External of the graph model on replaying, which is forwarding it to external user code for parsing and executing the changes.
Public methodFlush
Flushes the writer
Public methodIsRecording
Returns whether the graph changes get currently recorded into the given file.
Public methodStartRecording
Creates a file which initially gets filled with a .grs export of the graph. Afterwards the changes applied to the graph are recorded into the file, in the order they occur. You can start multiple recordings into differently named files.
Public methodStopRecording
Stops recording of the changes applied to the graph to the given file.
Public methodTransactionCommit
Called by the transaction manager when a transaction is committed
Public methodTransactionRollback
Called by the transaction manager when a transaction is rolled back
Public methodTransactionStart
Called by the transaction manager when a transaction is started
Public methodWrite
Writes the given string to the currently ongoing recordings
Public methodWriteLine
Writes the given string to the currently ongoing recordings followed by a new line
Top
See Also