OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | 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
 
uiString warnMsg () const
 
mDeprecated float getfValue (int idx, float udf=mUdf(float)) const
 
mDeprecated double getdValue (int idx, double udf=mUdf(double)) const
 

Protected Member Functions

void emptyVals () const
 
void addVal (const char *, const UnitOfMeasure *) const
 
bool getHdrVals (od_istream &) const
 
int getNextBodyVals (od_istream &) const
 Executor convention. More...
 
bool putHdrVals (od_ostream &) const
 
bool putNextBodyVals (od_ostream &) const
 
const char * text (int) const
 
int getIntValue (int, int udf=mUdf(int)) const
 
float getFValue (int, float udf=mUdf(float)) const
 
double getDValue (int, double udf=mUdf(double)) const
 
Coord getPos (int xfld, int yfld, double udf=mUdf(double)) const
 
Coord3 getPos3D (int xfld, int yfld, int zfld, double udf=mUdf(double)) const
 
BinID getBinID (int xfld, int yfld, double udf=mUdf(double)) const
 
int formOf (bool hdr, int iinf) const
 
int columnOf (bool hdr, int iinf, int ielem) const
 

Protected Attributes

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

Private Member Functions

 mODTextTranslationClass (AscIO)
 

Friends

class AscIOImp_ExportHandler
 
class AscIOExp_ImportHandler
 

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

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

Member Function Documentation

void Table::AscIO::addVal ( const char *  ,
const UnitOfMeasure  
) const
protected
int Table::AscIO::columnOf ( bool  hdr,
int  iinf,
int  ielem 
) const
protected
const FormatDesc& Table::AscIO::desc ( ) const
inline
void Table::AscIO::emptyVals ( ) const
protected
uiString Table::AscIO::errMsg ( ) const
inline
int Table::AscIO::formOf ( bool  hdr,
int  iinf 
) const
protected
BinID Table::AscIO::getBinID ( int  xfld,
int  yfld,
double  udf = mUdf(double) 
) const
protected
double Table::AscIO::getDValue ( int  ,
double  udf = mUdf(double) 
) const
protected
mDeprecated double Table::AscIO::getdValue ( int  idx,
double  udf = mUdf(double) 
) const
inline
float Table::AscIO::getFValue ( int  ,
float  udf = mUdf(float) 
) const
protected
mDeprecated float Table::AscIO::getfValue ( int  idx,
float  udf = mUdf(float) 
) const
inline
bool Table::AscIO::getHdrVals ( od_istream ) const
protected
int Table::AscIO::getIntValue ( int  ,
int  udf = mUdf(int) 
) const
protected
int Table::AscIO::getNextBodyVals ( od_istream ) const
protected

Executor convention.

Coord Table::AscIO::getPos ( int  xfld,
int  yfld,
double  udf = mUdf(double) 
) const
protected
Coord3 Table::AscIO::getPos3D ( int  xfld,
int  yfld,
int  zfld,
double  udf = mUdf(double) 
) const
protected
Table::AscIO::mODTextTranslationClass ( AscIO  )
private
bool Table::AscIO::putHdrVals ( od_ostream ) const
protected
bool Table::AscIO::putNextBodyVals ( od_ostream ) const
protected
const char* Table::AscIO::text ( int  ) const
protected
uiString Table::AscIO::warnMsg ( ) const
inline

Friends And Related Function Documentation

friend class AscIOExp_ImportHandler
friend
friend class AscIOImp_ExportHandler
friend

Member Data Documentation

Converter* Table::AscIO::cnvrtr_
protected
uiString Table::AscIO::errmsg_
mutableprotected
ExportHandler* Table::AscIO::exphndlr_
protected
const FormatDesc& Table::AscIO::fd_
protected
BufferStringSet Table::AscIO::fullline_
protected
bool Table::AscIO::hdrread_
mutableprotected
ImportHandler* Table::AscIO::imphndlr_
protected
bool Table::AscIO::needfullline_
protected
ObjectSet<const UnitOfMeasure> Table::AscIO::units_
protected
BufferStringSet Table::AscIO::vals_
protected
uiString Table::AscIO::warnmsg_
mutableprotected

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