OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
EM::Horizon2DAscIO Class Reference

Ascii I/O for Horizon2D. More...

Inheritance diagram for EM::Horizon2DAscIO:
[legend]

Public Member Functions

 Horizon2DAscIO (const Table::FormatDesc &fd, const char *filenm)
 
int getNextLine (BufferString &lnm, Coord &crd, int &trcnr, TypeSet< float > &data)
 
int getNextLineWithSP (BufferString &lnm, Coord &crd, int &trcnr, float &spnr, TypeSet< float > &data)
 
bool isOK () const
 
bool isTraceNr () const
 
- Public Member Functions inherited from Table::AscIO
 AscIO (const FormatDesc &fd)
 
virtual ~AscIO ()
 
const FormatDescdesc () const
 
uiString errMsg () const
 
double getdValue (int idx, double udf=mUdf(double)) const
 
float getfValue (int idx, float udf=mUdf(float)) const
 
const char * text (int ifld) const
 
uiString warnMsg () const
 

Static Public Member Functions

static void createDescBody (Table::FormatDesc *, const BufferStringSet &)
 
static Table::FormatDescgetDesc ()
 
static bool isFormatOK (const Table::FormatDesc &, BufferString &)
 
static void updateDesc (Table::FormatDesc &, const BufferStringSet &)
 

Protected Attributes

bool finishedreadingheader_
 
od_istream strm_
 
float udfval_
 
- Protected Attributes inherited from Table::AscIO
Convertercnvrtr_
 
uiString errmsg_
 
ExportHandlerexphndlr_
 
const FormatDescfd_
 
BufferStringSet fullline_
 
bool hdrread_
 
ImportHandlerimphndlr_
 
bool needfullline_
 
ObjectSet< const UnitOfMeasureunits_
 
BufferStringSet vals_
 
uiString warnmsg_
 

Additional Inherited Members

- Protected Member Functions inherited from Table::AscIO
void addVal (const char *, const UnitOfMeasure *) const
 
int columnOf (bool hdr, int iinf, int ielem) const
 
void emptyVals () const
 
int formOf (bool hdr, int iinf) const
 
BinID getBinID (int xfld, int yfld, double udf=mUdf(double)) const
 
double getDValue (int, double udf=mUdf(double)) const
 
float getFValue (int, float udf=mUdf(float)) const
 
bool getHdrVals (od_istream &) const
 
int getIntValue (int, int udf=mUdf(int)) const
 
int getNextBodyVals (od_istream &) const
 Executor convention. More...
 
Coord getPos (int xfld, int yfld, double udf=mUdf(double)) const
 
Coord3 getPos3D (int xfld, int yfld, int zfld, double udf=mUdf(double)) const
 
BufferString getText (int) const
 
bool putHdrVals (od_ostream &) const
 
bool putNextBodyVals (od_ostream &) const
 

Detailed Description

Ascii I/O for Horizon2D.

<>

Constructor & Destructor Documentation

◆ Horizon2DAscIO()

EM::Horizon2DAscIO::Horizon2DAscIO ( const Table::FormatDesc fd,
const char *  filenm 
)
inline

Member Function Documentation

◆ createDescBody()

static void EM::Horizon2DAscIO::createDescBody ( Table::FormatDesc ,
const BufferStringSet  
)
static

◆ getDesc()

static Table::FormatDesc* EM::Horizon2DAscIO::getDesc ( )
static

◆ getNextLine()

int EM::Horizon2DAscIO::getNextLine ( BufferString lnm,
Coord crd,
int &  trcnr,
TypeSet< float > &  data 
)

◆ getNextLineWithSP()

int EM::Horizon2DAscIO::getNextLineWithSP ( BufferString lnm,
Coord crd,
int &  trcnr,
float &  spnr,
TypeSet< float > &  data 
)

◆ isFormatOK()

static bool EM::Horizon2DAscIO::isFormatOK ( const Table::FormatDesc ,
BufferString  
)
static

◆ isOK()

bool EM::Horizon2DAscIO::isOK ( ) const
inline

◆ isTraceNr()

bool EM::Horizon2DAscIO::isTraceNr ( ) const

◆ updateDesc()

static void EM::Horizon2DAscIO::updateDesc ( Table::FormatDesc ,
const BufferStringSet  
)
static

Member Data Documentation

◆ finishedreadingheader_

bool EM::Horizon2DAscIO::finishedreadingheader_
protected

◆ strm_

od_istream EM::Horizon2DAscIO::strm_
protected

◆ udfval_

float EM::Horizon2DAscIO::udfval_
protected

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