Click or drag to resize

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.

Inheritance Hierarchy
SystemObject
  DHI.Mike1D.ResultDataAccessM11FfBlockReader

Namespace:  DHI.Mike1D.ResultDataAccess
Assembly:  DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class M11FfBlockReader

The M11FfBlockReader type exposes the following members.

Constructors
  NameDescription
Public methodM11FfBlockReader
Initializes a new instance of the M11FfBlockReader class
Top
Properties
  NameDescription
Public propertyBlockCount
Number of blocks read. The index matches the value of the M11FfBlockReaderBlockType, the last value is the number of unknown and skipped blocks.
Top
Methods
  NameDescription
Public methodConnect
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFinish
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNextBlockType
Returns the next block type. Can be called several times.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadBlock
Read and return the next block as a general object.
Public methodReadBlock0ItemDescriptor
Read and return next block, assuming it is a ItemBlock0
Public methodReadBlock10Real48
Read and return next block, assuming it is a Real48Block10. It will return an array of 20 doubles.
Public methodReadBlock10Real48(Double)
Read and return next block, assuming it is a Real48Block10. The values must be an array of 20 doubles.
Public methodReadBlock11Doubles
Read and return next block, assuming it is a DoubleBlock11 It will return an array of 15 doubles.
Public methodReadBlock11Doubles(Double)
Read and return next block, assuming it is a DoubleBlock11 The values array must have length 15.
Public methodReadBlock1ChannelDescriptor
Read and return next block, assuming it is a ChannelBlock1
Public methodReadBlock2TimeDescriptor
Read and return next block, assuming it is a TimeBlock2
Public methodReadBlock3Bytes
Read and return next block, assuming it is a ByteBlock3 It will return an array of 120 bytes.
Public methodReadBlock3Bytes(Byte)
Read and return next block, assuming it is a ByteBlock3 the bytes arguement must be 120 bytes long.
Public methodReadBlock4UShorts
Read and return next block, assuming it is a UShortBlock4 It will return an array of 60 unsigned shorts.
Public methodReadBlock5Shorts
Read and return next block, assuming it is a ShortBlock5 It will return an array of 60 shorts.
Public methodReadBlock6Real48
Read and return next block, assuming it is a Real48Block6 It will return an array of 20 doubles.
Public methodReadBlock7NotAllowed
Read and return next block, assuming it is a NotAllowedBlock7
Public methodReadBlock8Text
Read and return next block, assuming it is a TextBlock8 The string is at most 120 characters long, only ASCII characters supported.
Public methodReadBlock9Misc
Read and return next block, assuming it is a MiscBlock9
Public methodReadExtraBlocks
Read a number of extra blocks, store them in a list
Public methodSkipBlock
Skip next block
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberToString(Byte, Int32)
Converts an integer array of char values, null-terminated (the integer value after the last value is zero) into a string.
Top
See Also