Log I/O
|
Class representing a LAS section in terms of its title and its containing records. More...
Public Types | |
enum | SectionType { PARAMETER , DEFINITION , DATA } |
The different section types. More... | |
Public Member Functions | |
void | AddRecord (int index, LasRecord record) |
Add the specified record at the given index of this LAS section. | |
void | AddRecord (LasRecord record) |
Add the specified record to this LAS section. | |
override bool | Equals (object obj) |
LasParameterRecord | FindParameterRecord (string parameterName) |
Find a specific parameter record of this section. | |
string | GetAssociation () |
Return name of the associated section of this section. | |
override int | GetHashCode () |
string | GetName () |
Return name of this section. | |
IList< LasParameterRecord > | GetParameterRecords () |
Get all the parameter records of this section. | |
string | GetParameterValue (string parameterName) |
Get value of a specific parameter of this section. | |
IList< LasRecord > | GetRecords () |
Return all (non-data) records of this section. | |
SectionType | GetSectionType () |
Return type of this section. | |
LasSection (string name) | |
Create an empty LAS parameter section with the specified name. | |
LasSection (string name, string association) | |
Create an empty LAS parameter section with the specified name and association. | |
void | RemoveRecord (LasRecord record) |
Remove the specified record from this section. | |
override string | ToString () |
Class representing a LAS section in terms of its title and its containing records.
A LAS section title has the following format on disk:
~name[modifier] [| association]
The optional modifier is either _Parameter
, _Definition
or _Data
if it is present. The association is the name of a different section that this one is associated with, typically in a definition/data relation.
In a disk file a section contains all records between the section title record and the next section title record.
See LAS 3.0 Specification for details.
enum SectionType |
LasSection | ( | string | name, |
string | association ) |
Create an empty LAS parameter section with the specified name and association.
name | Name of section. Non-null. |
association | Section association. Null if N/A. |
ArgumentNullException | If name is null. |
LasSection | ( | string | name | ) |
Create an empty LAS parameter section with the specified name.
name | Name of section. Non-null. |
ArgumentNullException | If name is null. |
void AddRecord | ( | int | index, |
LasRecord | record ) |
Add the specified record at the given index of this LAS section.
index | Index to insert to. [0,nRecords>. |
record | Record to add. Non-null. |
ArgumentException | If index is out of bounds. |
ArgumentNullException | If record is null. |
void AddRecord | ( | LasRecord | record | ) |
Add the specified record to this LAS section.
record | Record to add. Non-null. |
ArgumentNullException | If record is null. |
LasParameterRecord FindParameterRecord | ( | string | parameterName | ) |
Find a specific parameter record of this section.
parameterName | Name of parameter record to find. Case insensitive. Non-null. |
ArgumentNullException | If parameterName is null. |
string GetAssociation | ( | ) |
Return name of the associated section of this section.
string GetName | ( | ) |
Return name of this section.
IList< LasParameterRecord > GetParameterRecords | ( | ) |
Get all the parameter records of this section.
string GetParameterValue | ( | string | parameterName | ) |
Get value of a specific parameter of this section.
parameterName | Name of parameter record to find value of. Case insensitive. Non-null. |
ArgumentNullException | If parameterName is null. |
IList< LasRecord > GetRecords | ( | ) |
Return all (non-data) records of this section.
SectionType GetSectionType | ( | ) |
Return type of this section.
void RemoveRecord | ( | LasRecord | record | ) |
Remove the specified record from this section.
If the record is not in this section, this call has no effect.
record | Record to remove. Non-null. |
ArgumentNullException | If record is null. |