DHI.Mike1D.ModelState Namespace

Reading and writing of model state.

Classes

BlockReaderXml Block writer implementation, outputting XML
BlockWriterXml Block writer implementation, outputting XML
ModelStateExtensions Extension for reading/writing state
ModelStateReader Class for reading model state file.
ModelStateWriter Class for writing to state stream.

It supports optional objects and optional values. Whenever a non-optional object or value is included, all earlier optional object and values at that level and lower will be added to the stream. Objects with purely optional sub-objects and parameters will not be added to the stream.

The optional object can be used if an ancestor does not know whether a child actually contains state, so the ancestor can add itself and its parameters as optional, and only if a child has state, the ancestor values will be included.

StateNode State node. Helper class for reading and writing state.
StateReach State reach. Helper class for reading and writing state.
StatestartInfo Structure to store state start information.

Interfaces

IBlockReader Interface for a block reader
IBlockWriter Interface for a block writer
IModelStateReadWrite Interface of model class that can handle state

Enumerations

StateDataType Type of state data. Can be used to select which part of the state to apply or exclude.
StateReachType Type of reach. Helper enum for reading and writing state.
StateReadMode Read mode enumeration, describing what happens when reading and old/new version of a state file.
StateToken Tokens in state