OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Table::AscIO Class Reference

Ascii I/O using Format Description. More...

Inheritance diagram for Table::AscIO:
[legend]

Public Member Functions

 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 const UnitOfMeasuregetDepthUnit ()
 
static const UnitOfMeasuregetTimeUnit ()
 
static const ZDomain::InfozDomain (const FormatDesc &, int idx, uiRetVal &)
 

Protected Member Functions

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
 

Protected Attributes

Convertercnvrtr_
 
uiString errmsg_
 
ExportHandlerexphndlr_
 
const FormatDescfd_
 
BufferStringSet fullline_
 
bool hdrread_
 
ImportHandlerimphndlr_
 
bool needfullline_
 
ObjectSet< const UnitOfMeasureunits_
 
BufferStringSet vals_
 
uiString warnmsg_
 

Friends

class AscIOExp_ImportHandler
 
class AscIOImp_ExportHandler
 

Detailed Description

Ascii I/O using Format Description.

The idea is to create a subclass of AscIO which synthesises an object from the Selection of a Table::FormatDesc. Or, in the case of export, outputs the data according to the Selection object.

<>

Constructor & Destructor Documentation

◆ AscIO()

Table::AscIO::AscIO ( const FormatDesc fd)
inline

◆ ~AscIO()

virtual Table::AscIO::~AscIO ( )
virtual

Member Function Documentation

◆ addVal()

void Table::AscIO::addVal ( const char *  ,
const UnitOfMeasure  
) const
protected

◆ columnOf()

int Table::AscIO::columnOf ( bool  hdr,
int  iinf,
int  ielem 
) const
protected

◆ desc()

const FormatDesc& Table::AscIO::desc ( ) const
inline

◆ emptyVals()

void Table::AscIO::emptyVals ( ) const
protected

◆ errMsg()

uiString Table::AscIO::errMsg ( ) const
inline

◆ formOf()

int Table::AscIO::formOf ( bool  hdr,
int  iinf 
) const
protected

◆ getBinID()

BinID Table::AscIO::getBinID ( int  inlfld,
int  crlfld,
double  udf = mUdf(double) 
) const
protected

◆ getDepthUnit()

static const UnitOfMeasure* Table::AscIO::getDepthUnit ( )
static

◆ getdValue()

double Table::AscIO::getdValue ( int  idx,
double  udf = mUdf(double) 
) const
inline

◆ getDValue()

double Table::AscIO::getDValue ( int  ,
double  udf = mUdf(double) 
) const
protected

According to getTimeUnit, getDepthUnit if applicable. For more, use Conv:: stuff

◆ getfValue()

float Table::AscIO::getfValue ( int  idx,
float  udf = mUdf(float) 
) const
inline

◆ getFValue()

float Table::AscIO::getFValue ( int  ,
float  udf = mUdf(float) 
) const
protected

According to getTimeUnit, getDepthUnit if applicable.

◆ getHdrVals()

bool Table::AscIO::getHdrVals ( od_istream ) const
protected

◆ getIntValue()

int Table::AscIO::getIntValue ( int  ,
int  udf = mUdf(int) 
) const
protected

◆ getNextBodyVals()

int Table::AscIO::getNextBodyVals ( od_istream ) const
protected

Executor convention.

◆ getPos()

Coord Table::AscIO::getPos ( int  xfld,
int  yfld,
double  udf = mUdf(double),
bool  isll = false,
ConstRefMan< Coords::CoordSystem crs = SI().getCoordSystem() 
) const
protected

◆ getPos3D()

Coord3 Table::AscIO::getPos3D ( int  xfld,
int  yfld,
int  zfld,
double  udf = mUdf(double),
bool  isll = false,
ConstRefMan< Coords::CoordSystem crs = SI().getCoordSystem() 
) const
protected

◆ getText()

BufferString Table::AscIO::getText ( int  ) const
protected

◆ getTimeUnit()

static const UnitOfMeasure* Table::AscIO::getTimeUnit ( )
static

◆ putHdrVals()

bool Table::AscIO::putHdrVals ( od_ostream ) const
protected

◆ putNextBodyVals()

bool Table::AscIO::putNextBodyVals ( od_ostream ) const
protected

◆ text()

const char* Table::AscIO::text ( int  ifld) const
inline

◆ warnMsg()

uiString Table::AscIO::warnMsg ( ) const
inline

◆ zDomain()

static const ZDomain::Info& Table::AscIO::zDomain ( const FormatDesc ,
int  idx,
uiRetVal  
)
static

Friends And Related Function Documentation

◆ AscIOExp_ImportHandler

friend class AscIOExp_ImportHandler
friend

◆ AscIOImp_ExportHandler

friend class AscIOImp_ExportHandler
friend

Member Data Documentation

◆ cnvrtr_

Converter* Table::AscIO::cnvrtr_
protected

◆ errmsg_

uiString Table::AscIO::errmsg_
mutableprotected

◆ exphndlr_

ExportHandler* Table::AscIO::exphndlr_
protected

◆ fd_

const FormatDesc& Table::AscIO::fd_
protected

◆ fullline_

BufferStringSet Table::AscIO::fullline_
protected

◆ hdrread_

bool Table::AscIO::hdrread_
mutableprotected

◆ imphndlr_

ImportHandler* Table::AscIO::imphndlr_
protected

◆ needfullline_

bool Table::AscIO::needfullline_
protected

◆ units_

ObjectSet<const UnitOfMeasure> Table::AscIO::units_
protected

◆ vals_

BufferStringSet Table::AscIO::vals_
protected

◆ warnmsg_

uiString Table::AscIO::warnmsg_
mutableprotected

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