Log I/O
Loading...
Searching...
No Matches
DlisType Class Referenceabstract

Capture the different atomic types that DLIS defines, representing entities like float, double, int, long, string etc. More...

Inherited by DlisType.ASCII, DlisType.ATTREF, DlisType.BINARY, DlisType.CDOUBL, DlisType.CSINGL, DlisType.DRATIO, DlisType.DTIME, DlisType.FDOUB1, DlisType.FDOUB2, DlisType.FDOUBL, DlisType.FRATIO, DlisType.FSHORT, DlisType.FSING1, DlisType.FSING2, DlisType.FSINGL, DlisType.IDENT, DlisType.IRLONG, DlisType.IRNORM, DlisType.ISINGL, DlisType.ISLONG, DlisType.ISNORM, DlisType.IULONG, DlisType.IUNORM, DlisType.LOGICL, DlisType.OBJREF, DlisType.OBNAME, DlisType.ORIGIN, DlisType.RLONG, DlisType.RNORM, DlisType.SLONG, DlisType.SNORM, DlisType.SSHORT, DlisType.STATUS, DlisType.TASCII, DlisType.TIDENT, DlisType.TUNORM, DlisType.ULONG, DlisType.UNITS, DlisType.UNORM, DlisType.USHORT, DlisType.UVARI, and DlisType.VSINGL.

Classes

class  ASCII
 Representation of the DLIS type ASCII. More...
 
class  ATTREF
 Representation of the DLIS type ATTREF. More...
 
class  BINARY
 Representation of the DLIS type BINARY. More...
 
class  CDOUBL
 Representation of the DLIS type CDOUBL. More...
 
class  CSINGL
 Representation of the DLIS type CSINGL. More...
 
class  DRATIO
 Representation of the DLIS type DRATIO. More...
 
class  DTIME
 Representation of the DLIS type DTIME. More...
 
class  FDOUB1
 Representation of the DLIS type FDOUB1. More...
 
class  FDOUB2
 Representation of the DLIS type FDOUB2. More...
 
class  FDOUBL
 Representation of the DLIS type FDOUBL. More...
 
class  FRATIO
 Representation of the DLIS type FRATIO. More...
 
class  FSHORT
 Representation of the DLIS type FSHORT. More...
 
class  FSING1
 Representation of the DLIS type FSING1. More...
 
class  FSING2
 Representation of the DLIS type FSING2. More...
 
class  FSINGL
 Representation of the DLIS type FSINGL. More...
 
class  IDENT
 Representation of the DLIS type IDENT. More...
 
class  IRLONG
 Representation of the DLIS type IRLONG. More...
 
class  IRNORM
 Representation of the DLIS type IRNORM. More...
 
class  ISINGL
 Representation of the DLIS type ISINGL. More...
 
class  ISLONG
 Representation of the DLIS type ISLONG. More...
 
class  ISNORM
 Representation of the DLIS type ISNORM. More...
 
class  IULONG
 Representation of the DLIS type IULONG. More...
 
class  IUNORM
 Representation of the DLIS type IUNORM. More...
 
class  LOGICL
 Representation of the DLIS type LOGICL. More...
 
class  OBJREF
 Representation of the DLIS type OBJREF. More...
 
class  OBNAME
 Representation of the DLIS type OBNAME. More...
 
class  ORIGIN
 Representation of the DLIS type ORIGIN. More...
 
class  RLONG
 Representation of the DLIS type RLONG. More...
 
class  RNORM
 Representation of the DLIS type RNORM. More...
 
class  SLONG
 Representation of the DLIS type SLONG. More...
 
class  SNORM
 Representation of the DLIS type SNORM. More...
 
class  SSHORT
 Representation of the DLIS type SSHORT. More...
 
class  STATUS
 Representation of the DLIS type STATUS. More...
 
class  TASCII
 Representation of the DLIS type TASCII. More...
 
class  TIDENT
 Representation of the DLIS type TIDENT. More...
 
class  TUNORM
 Representation of the DLIS type TUNORM. More...
 
class  ULONG
 Representation of the DLIS type ULONG. More...
 
class  UNITS
 Representation of the DLIS type UNITS. More...
 
class  UNORM
 Representation of the DLIS type UNORM. More...
 
class  USHORT
 Representation of the DLIS type USHORT. More...
 
class  UVARI
 Representation of the DLIS type UVARI. More...
 
class  VSINGL
 Representation of the DLIS type VSINGL. More...
 

Public Member Functions

override bool Equals (object o)
 
double? GetAsDouble ()
 Return the value of this instance as a double.
 
int? GetAsInteger ()
 Return the value of this instance as an integer.
 
string GetAsString ()
 Return a string representation of this instance.
 
override int GetHashCode ()
 
object GetValue ()
 Return the value of this instance.
 
Type GetValueType ()
 Return the .Net type of the value of this instance.
 
virtual bool IsNoValue ()
 Check if the value of this instance represents a no-value.
 
void SetValue (object v)
 Set the value of this instance.
 

Detailed Description

Capture the different atomic types that DLIS defines, representing entities like float, double, int, long, string etc.

See RP66 V1 Appendix B .

The generic base class is DlisType that each specific type derives from.

Author
Petroware AS

Member Function Documentation

◆ GetAsDouble()

double? GetAsDouble ( )

Return the value of this instance as a double.

If the instance is non-numeric, null is returned.

Returns
The value of this instance as a double. Null if non-numeric.

◆ GetAsInteger()

int? GetAsInteger ( )

Return the value of this instance as an integer.

If the instance is not compatible with an integer, null is returned.

Returns
The value of this instance as an integer. Null if non-numeric.

◆ GetAsString()

string GetAsString ( )

Return a string representation of this instance.

Returns
A string representation of this instance. Never null.

◆ GetValue()

object GetValue ( )
abstract

Return the value of this instance.

Returns
The value of this instance. Never null.

◆ GetValueType()

Type GetValueType ( )

Return the .Net type of the value of this instance.

Typical a double, int, long, string or DateTime type.

Returns
.Net type of the value of this instance. Never null.

◆ IsNoValue()

virtual bool IsNoValue ( )
virtual

Check if the value of this instance represents a no-value.

Returns
True if the value represents a no-value, false otherwise.

Reimplemented in DlisType.ULONG.

◆ SetValue()

void SetValue ( object v)
abstract

Set the value of this instance.

Parameters
vThe value of this instance. May be null to indicate absent, in case the no-value for the type will be set instead.

The documentation for this class was generated from the following file: