Class representing the possible versions of the LAS standard.
More...
|
bool | EqualsOrAfter (LasVersion version) |
| Check if this version equals or is after the specified one.
|
|
bool | EqualsOrBefore (LasVersion version) |
| Check if this version equals or is before the specified one.
|
|
string | GetDescription () |
| Return the description of the version as it would appear in a parameter record of a LAS file.
|
|
int | GetSequenceNumber () |
| Return the version sequence number which makes it possible to compare versions.
|
|
string | GetVersion () |
| Return the version text of this version.
|
|
override string | ToString () |
|
|
static readonly LasVersion | VERSION_1_2 = new LasVersion(1, "1.2", "CWLS LAS ASCII Standard - Version 1.2") |
| LAS version 1.2.
|
|
static readonly LasVersion | VERSION_2_0 = new LasVersion(2, "2.0", "CWLS LAS ASCII Standard - Version 2.0") |
| LAS version 2.0.
|
|
static readonly LasVersion | VERSION_3_0 = new LasVersion(3, "3.0", "CWLS LAS ASCII Standard - Version 3.0") |
| LAS version 3.0.
|
|
Class representing the possible versions of the LAS standard.
- Author
- Petroware AS
◆ EqualsOrAfter()
Check if this version equals or is after the specified one.
- Parameters
-
version | Version to compare with. Non-null. |
- Returns
- True if this version is of the specified version or after.
- Exceptions
-
ArgumentNullException | If version is null. |
◆ EqualsOrBefore()
Check if this version equals or is before the specified one.
- Parameters
-
version | Version to compare with. Non-null. |
- Returns
- True if this version is of the specified version or before.
- Exceptions
-
ArgumentNullException | If version is null. |
◆ GetDescription()
string GetDescription |
( |
| ) |
|
Return the description of the version as it would appear in a parameter record of a LAS file.
- Returns
- Description of this version. Never null.
◆ GetSequenceNumber()
int GetSequenceNumber |
( |
| ) |
|
Return the version sequence number which makes it possible to compare versions.
The actual sequence numbers may be arbitrary, but a newer LAS version will always have a higher sequence number than an older one.
Example: To check that a certain version is later than 2.0:
if (version.GetSequenceNumber() > LasVersion.VERSION_2_0.GetSequenceNumber())
...
- Returns
- Sequence number of this version.
◆ GetVersion()
Return the version text of this version.
- Returns
- Version text of this version. Never null.
The documentation for this class was generated from the following file:
- Petroware/LogIo/Las/LasVersion.cs