OpendTect  7.0
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 &, const char *filenm)
 
 ~Horizon2DAscIO ()
 
int getNextLine (BufferString &lnm, Coord &crd, int &trcnr, float &spnm, 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 void createDescBody_ (Table::FormatDesc *, const ZDomain::Def &)
 
static Table::FormatDescgetDesc ()
 
static Table::FormatDescgetDesc_ (const ZDomain::Def &)
 
static bool isFormatOK (const Table::FormatDesc &, BufferString &)
 
static void updateDesc (Table::FormatDesc &, const BufferStringSet &)
 
static void updateDesc_ (Table::FormatDesc &, const ZDomain::Def &)
 
- Static Public Member Functions inherited from Table::AscIO
static const UnitOfMeasuregetDepthUnit ()
 
static const UnitOfMeasuregetTimeUnit ()
 
static const ZDomain::InfozDomain (const FormatDesc &, int idx, uiRetVal &)
 

Protected Attributes

bool finishedreadingheader_ = false
 
od_istream strm_
 
float udfval_ = mUdf(float)
 
- 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 inlfld, int crlfld, 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), bool isll=false, ConstRefMan< Coords::CoordSystem > crs=SI().getCoordSystem()) const
 
Coord3 getPos3D (int xfld, int yfld, int zfld, double udf=mUdf(double), bool isll=false, ConstRefMan< Coords::CoordSystem > crs=SI().getCoordSystem()) 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 ,
const char *  filenm 
)

◆ ~Horizon2DAscIO()

EM::Horizon2DAscIO::~Horizon2DAscIO ( )

Member Function Documentation

◆ createDescBody()

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

◆ createDescBody_()

static void EM::Horizon2DAscIO::createDescBody_ ( Table::FormatDesc ,
const ZDomain::Def  
)
static

◆ getDesc()

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

◆ getDesc_()

static Table::FormatDesc* EM::Horizon2DAscIO::getDesc_ ( const ZDomain::Def )
static

◆ getNextLine()

int EM::Horizon2DAscIO::getNextLine ( BufferString lnm,
Coord crd,
int &  trcnr,
float &  spnm,
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

◆ updateDesc_()

static void EM::Horizon2DAscIO::updateDesc_ ( Table::FormatDesc ,
const ZDomain::Def  
)
static

Member Data Documentation

◆ finishedreadingheader_

bool EM::Horizon2DAscIO::finishedreadingheader_ = false
protected

◆ strm_

od_istream EM::Horizon2DAscIO::strm_
protected

◆ udfval_

float EM::Horizon2DAscIO::udfval_ = mUdf(float)
protected

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