Dfs123File Class |
Namespace: DHI.Generic.MikeZero.DFS.dfs123
The Dfs123File type exposes the following members.
Name | Description | |
---|---|---|
![]() | FileInfo |
File info
|
![]() | FileName |
Name of file.
|
![]() | ItemInfo |
Information on all the dynamic items in the file.
|
![]() | SpatialAxis |
Spatial axis that are valid for all dynamic and static items.
|
Name | Description | |
---|---|---|
![]() | Close |
See Close |
![]() | Dispose |
Close file and release ressources on the unmanaged side.
|
![]() | Equals | (Inherited from Object.) |
![]() | FindItem |
Positions the file pointer at the location in the file where the
specified dynamic item at the specified time step starts.
|
![]() | FindTimeStep |
Positions the file pointer at the location in the file where the
specified time step starts.
|
![]() | Flush |
See Flush |
![]() | FlushTimeStep |
See FlushTimeStep |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ReadStaticItem | |
![]() | ReadStaticItemNext | |
![]() | Reset |
Resets the file pointer to point on the first dynamic item time step in the file.
Can also be used if it is required to restart reading the static items. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteItemTimeStep |
Writes data to the specified item and timestep in the file.
If the item-timestep exists already, data is updated. If it does not exist, the item number and timestep index must match exactly the next item-timestep after the last one in the file. The size of the data must match the data size of the item that is to be written. The time value is only relevant for files with non-equidistant time axis. For files with an equidistant time axis, the time value is ignored, and a zero can be used. |
![]() | WriteItemTimeStepNext | Writes the next dynamic item-timestep. If the file pointer points to the end of the file, this will append a new item-timestep to the file. If the file pointer points to an existing item-timestep, the data of that item-timestep is updated. Remember that the file pointer position depends on the mode that the file was opened: In edit mode the file pointer points at the first item-timestep. In append mode the file pointer points initially at the end of file. It iterates over the item-timesteps as the ReadItemTimeStepNext, see there for more details. This is the most efficient way to iterate through and update/append the items and timesteps in a file, since it iterates exactly as the data is stored on the disk. The size of the data must match the data size of the item that is to be written. The time value is only relevant for files with non-equidistant time axis. For files with an equidistant time axis, the time value is ignored, and a zero can be used. |
![]() | WriteStaticItemData |