OpendTect-6_4  6.4
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
ascistream Class Reference

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 ()
 
ascistreamnext ()
 
bool isOK () const
 
const char * headerStartLine () const
 
bool hasStandardHeader () const
 
const char * fileType () const
 
bool isOfFileType (const char *) const
 
const char * version () const
 
const char * timeStamp () const
 
int majorVersion () const
 
int minorVersion () const
 
EntryType type () const
 
bool atEOS () const
 returns true if at end of segment (='paragraph') More...
 
const char * keyWord () const
 
const char * value () const
 
bool hasKeyword (const char *) const
 
bool hasValue (const char *) const
 
int getIValue (int i=0) const
 
unsigned int getUIValue (int i=0) const
 
int64_t getI64Value (int i=0) const
 
uint64_t getUI64Value (int i=0) const
 
float getFValue (int i=0) const
 
double getDValue (int i=0) const
 
bool getYN (int i=0) const
 
od_istreamstream ()
 
void setKeyWord (const char *s)
 
void setValue (const char *s)
 

Protected Attributes

od_istreamstrm_
 
bool strmmine_
 
BufferString keybuf_
 
BufferString valbuf_
 
BufferString header_
 
BufferString filetype_
 
BufferString timestamp_
 

Private Member Functions

void init (bool)
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
Empty 
Keyword 
KeyVal 
ParagraphMark 
EndOfFile 

Constructor & Destructor Documentation

ascistream::ascistream ( od_istream ,
bool  rdhead = true 
)
ascistream::ascistream ( od_istream ,
bool  rdhead = true 
)
virtual ascistream::~ascistream ( )
virtual

Member Function Documentation

bool ascistream::atEOS ( ) const
inline

returns true if at end of segment (='paragraph')

const char* ascistream::fileType ( ) const
inline
double ascistream::getDValue ( int  i = 0) const
float ascistream::getFValue ( int  i = 0) const
int64_t ascistream::getI64Value ( int  i = 0) const
int ascistream::getIValue ( int  i = 0) const
uint64_t ascistream::getUI64Value ( int  i = 0) const
unsigned int 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
const char* ascistream::headerStartLine ( ) const
inline
void ascistream::init ( bool  )
private
bool ascistream::isOfFileType ( const char *  ) const
bool ascistream::isOK ( ) const
const char* ascistream::keyWord ( ) const
inline
int ascistream::majorVersion ( ) const
int ascistream::minorVersion ( ) const
ascistream& ascistream::next ( )
void ascistream::setKeyWord ( const char *  s)
inline
void ascistream::setValue ( const char *  s)
inline
od_istream& ascistream::stream ( )
inline
const char* ascistream::timeStamp ( ) const
inline
EntryType ascistream::type ( ) const
const char* ascistream::value ( ) const
inline
const char* ascistream::version ( ) const

Member Data Documentation

BufferString ascistream::filetype_
protected
BufferString ascistream::header_
protected
BufferString ascistream::keybuf_
protected
od_istream& ascistream::strm_
protected
bool ascistream::strmmine_
protected
BufferString ascistream::timestamp_
protected
BufferString ascistream::valbuf_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019