OpendTect
7.0
|
OpendTect standard ascii format file reading. More...
Public Types | |
enum | EntryType { Empty , Keyword , KeyVal , ParagraphMark , EndOfFile } |
Public Member Functions | |
ascistream (od_istream &, bool rdhead=true) | |
ascistream (od_istream *, bool rdhead=true) | |
virtual | ~ascistream () |
bool | atEOS () const |
returns true if at end of segment (='paragraph') More... | |
const char * | fileType () const |
double | getDValue (int i=0) const |
float | getFValue (int i=0) const |
std::int64_t | getI64Value (int i=0) const |
int | getIValue (int i=0) const |
std::uint64_t | getUI64Value (int i=0) const |
std::uint32_t | getUIValue (int i=0) const |
bool | getYN (int i=0) const |
bool | hasKeyword (const char *) const |
bool | hasStandardHeader () const |
bool | hasValue (const char *) const |
const char * | headerStartLine () const |
bool | isOfFileType (const char *) const |
bool | isOK () const |
const char * | keyWord () const |
int | majorVersion () const |
int | minorVersion () const |
ascistream & | next () |
int | patchVersion () const |
void | setKeyWord (const char *s) |
void | setValue (const char *s) |
od_istream & | stream () |
const char * | timeStamp () const |
EntryType | type () const |
const char * | value () const |
const char * | version () const |
Protected Attributes | |
BufferString | filetype_ |
BufferString | header_ |
BufferString | keybuf_ |
od_istream & | strm_ |
bool | strmmine_ |
BufferString | timestamp_ |
BufferString | valbuf_ |
Private Member Functions | |
void | init (bool) |
OpendTect standard ascii format file reading.
An ascistream gets data from a OpendTect standard ascii format file. This format consists of the OpendTect header (version, file type, date), and then a number of 'paragraphs', each separated by a single '!' on a line.
<>
ascistream::ascistream | ( | od_istream & | , |
bool | rdhead = true |
||
) |
ascistream::ascistream | ( | od_istream * | , |
bool | rdhead = true |
||
) |
|
virtual |
|
inline |
returns true if at end of segment (='paragraph')
|
inline |
double ascistream::getDValue | ( | int | i = 0 | ) | const |
float ascistream::getFValue | ( | int | i = 0 | ) | const |
std::int64_t ascistream::getI64Value | ( | int | i = 0 | ) | const |
int ascistream::getIValue | ( | int | i = 0 | ) | const |
std::uint64_t ascistream::getUI64Value | ( | int | i = 0 | ) | const |
std::uint32_t ascistream::getUIValue | ( | int | i = 0 | ) | const |
bool ascistream::getYN | ( | int | i = 0 | ) | const |
bool ascistream::hasKeyword | ( | const char * | ) | const |
bool ascistream::hasStandardHeader | ( | ) | const |
bool ascistream::hasValue | ( | const char * | ) | const |
|
inline |
|
private |
bool ascistream::isOfFileType | ( | const char * | ) | const |
bool ascistream::isOK | ( | ) | const |
|
inline |
int ascistream::majorVersion | ( | ) | const |
int ascistream::minorVersion | ( | ) | const |
ascistream& ascistream::next | ( | ) |
int ascistream::patchVersion | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
EntryType ascistream::type | ( | ) | const |
|
inline |
const char* ascistream::version | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024