M11FfBlockReader Class

Class for reading the generic blocks of the original MIKE 11 file format, that is currently only used by MOUSE. File extensions that indicate a file in MIKE 11 file format: .PRF, .CRF,

After connecting to the file, use the GetNextBlockType to quiery the block type, and then any of the ReadBlock methods or the SkipBlock to read/skip the next block. At end-of-file, GetNextBlockType returns EndOfFile.

Definition

Namespace: DHI.Mike1D.ResultDataAccess
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class M11FfBlockReader
Inheritance
Object    M11FfBlockReader

Constructors

M11FfBlockReaderInitializes a new instance of the M11FfBlockReader class

Properties

BlockCount Number of blocks read. The index matches the value of the M11FfBlockReaderBlockType, the last value is the number of unknown and skipped blocks.

Methods

Connect 
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Finish 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetNextBlockType Returns the next block type. Can be called several times.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ReadBlock Read and return the next block as a general object.
ReadBlock0ItemDescriptor Read and return next block, assuming it is a ItemBlock0
ReadBlock10Real48 Read and return next block, assuming it is a Real48Block10. It will return an array of 20 doubles.
ReadBlock10Real48(Double) Read and return next block, assuming it is a Real48Block10. The values must be an array of 20 doubles.
ReadBlock11Doubles Read and return next block, assuming it is a DoubleBlock11 It will return an array of 15 doubles.
ReadBlock11Doubles(Double) Read and return next block, assuming it is a DoubleBlock11 The values array must have length 15.
ReadBlock1ChannelDescriptor Read and return next block, assuming it is a ChannelBlock1
ReadBlock2TimeDescriptor Read and return next block, assuming it is a TimeBlock2
ReadBlock3Bytes Read and return next block, assuming it is a ByteBlock3 It will return an array of 120 bytes.
ReadBlock3Bytes(Byte) Read and return next block, assuming it is a ByteBlock3 the bytes arguement must be 120 bytes long.
ReadBlock4UShorts Read and return next block, assuming it is a UShortBlock4 It will return an array of 60 unsigned shorts.
ReadBlock5Shorts Read and return next block, assuming it is a ShortBlock5 It will return an array of 60 shorts.
ReadBlock6Real48 Read and return next block, assuming it is a Real48Block6 It will return an array of 20 doubles.
ReadBlock7NotAllowed Read and return next block, assuming it is a NotAllowedBlock7
ReadBlock8Text Read and return next block, assuming it is a TextBlock8 The string is at most 120 characters long, only ASCII characters supported.
ReadBlock9Misc Read and return next block, assuming it is a MiscBlock9
ReadExtraBlocks Read a number of extra blocks, store them in a list
SkipBlock Skip next block
ToStringReturns a string that represents the current object.
(Inherited from Object)
ToString(Byte, Int32) Converts an integer array of char values, null-terminated (the integer value after the last value is zero) into a string.

See Also