Log I/O
|
Defines one entry, i.e. More...
Public Types | |
enum | EntryType { TERMINATOR , DATA_RECORD_TYPE , DATUM_SPEC_BLOCK_TYPE , DATA_FRAME_SIZE , UP_DOWN_FLAG , OPTICAL_LOG_DEPTH_SCALE_UNITS , DATA_REFERENCE_POINT , UNITS_OF_DATA_REFERENCE_POINT , FRAME_SPACING , UNITS_OF_FRAME_SPACING , UNDEFINED , MAXIMUM_FRAMES_PER_RECORD , ABSENT_VALUE , DEPTH_RECORDING_MODE , UNITS_OF_DEPTH , REPRESENTATION_CODE_FOR_OUTPUT_DEPTH , DATUM_SPEC_BLOCK_SUB_TYPE } |
Entry type. | |
Public Member Functions | |
Entry (EntryType entryType, double value) | |
Create a new entry with the specified double value. | |
Entry (EntryType entryType, int dataSize, int representationCode, List< object > values) | |
Create a new entry. | |
Entry (EntryType entryType, int value) | |
Create a new entry with the specified integer value. | |
Entry (EntryType entryType, object value) | |
Create a new entry with the specified value. | |
Entry (EntryType entryType, string value) | |
Create a new entry with the specified string value. | |
int | GetDataSize () |
Return size (in bytes) of this entry. | |
EntryType | GetEntryType () |
Return entry type. | |
int | GetRepresentationCode () |
Return presentation code of this entry. | |
int | GetSize () |
Return total size (in bytes) of the datum as it appears on disk. | |
object | GetValue () |
Return the first value of this entry. | |
IList< object > | GetValues () |
Return the values of this entry. | |
override string | ToString () |
Static Public Member Functions | |
static ? EntryType | GetEntryType (int tag) |
Return associated entry type for the specified tag. | |
static int | GetId (EntryType entryType) |
Return associated ID for the given entry type. | |
Defines one entry, i.e.
one specific meta-attribute about the LIS file.
Create a new entry.
entryType | Entry type. |
dataSize | Data size. <0,>. |
representationCode | Data type. |
values | Entry values. Non-null. |
ArgumentException | If dataSize <=0 or representationCode is invalid. |
ArgumentNullException | If values is null. |
Create a new entry with the specified value.
entryType | Entry type. |
value | Entry value. |
ArgumentNullException | If value is null. |
Create a new entry with the specified double value.
entryType | Entry type. |
value | Entry value. |
Create a new entry with the specified integer value.
entryType | Entry type. |
value | Entry value. |
Create a new entry with the specified string value.
entryType | Entry type. |
value | Entry value. |
int GetDataSize | ( | ) |
Return size (in bytes) of this entry.
EntryType GetEntryType | ( | ) |
Return entry type.
|
static |
Return associated entry type for the specified tag.
tag | Entry type tag. |
|
static |
Return associated ID for the given entry type.
entryType | Entry type to get ID of. Non-null. |
int GetRepresentationCode | ( | ) |
Return presentation code of this entry.
int GetSize | ( | ) |
Return total size (in bytes) of the datum as it appears on disk.
object GetValue | ( | ) |
Return the first value of this entry.
Convenient if the client knows that there are only one value in the entry.
IList< object > GetValues | ( | ) |
Return the values of this entry.