OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
Table::AscIO Class Reference

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

#include <tableascio.h>

Inheritance diagram for Table::AscIO:
[legend]

Public Member Functions

 AscIO (const FormatDesc &)
 
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 UnitOfMeasure *outunit=nullptr) const
 
float getFValue (int, float udf=mUdf(float), const UnitOfMeasure *outunit=nullptr) const
 
bool getHdrVals (od_istream &) const
 
int getIntValue (int, int udf=mUdf(int)) const
 
int getNextBodyVals (od_istream &) const
 Executor convention.
 
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
 
int nrVals () const
 
bool putHdrVals (od_ostream &) const
 
bool putNextBodyVals (od_ostream &) const
 

Protected Attributes

Convertercnvrtr_ = nullptr
 
uiString errmsg_
 
ExportHandlerexphndlr_ = nullptr
 
const FormatDescfd_
 
BufferStringSet fullline_
 
bool hdrread_ = false
 
ImportHandlerimphndlr_ = nullptr
 
bool iscsv_ = false
 
bool needfullline_ = false
 
uiString warnmsg_
 

Private Attributes

ObjectSet< const UnitOfMeasureunits_
 
BufferStringSet vals_
 

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 & )

◆ ~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 UnitOfMeasure * outunit = nullptr ) const
protected

If outunit is null, value is in getTimeUnit, getDepthUnit if applicable.

◆ getfValue()

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

◆ getFValue()

float Table::AscIO::getFValue ( int ,
float udf = mUdf(float),
const UnitOfMeasure * outunit = nullptr ) const
protected

If outunit is null, value is in 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

◆ nrVals()

int Table::AscIO::nrVals ( ) const
protected

◆ 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 Symbol Documentation

◆ AscIOExp_ImportHandler

friend class AscIOExp_ImportHandler
friend

◆ AscIOImp_ExportHandler

friend class AscIOImp_ExportHandler
friend

Member Data Documentation

◆ cnvrtr_

Converter* Table::AscIO::cnvrtr_ = nullptr
protected

◆ errmsg_

uiString Table::AscIO::errmsg_
mutableprotected

◆ exphndlr_

ExportHandler* Table::AscIO::exphndlr_ = nullptr
protected

◆ fd_

const FormatDesc& Table::AscIO::fd_
protected

◆ fullline_

BufferStringSet Table::AscIO::fullline_
protected

◆ hdrread_

bool Table::AscIO::hdrread_ = false
mutableprotected

◆ imphndlr_

ImportHandler* Table::AscIO::imphndlr_ = nullptr
protected

◆ iscsv_

bool Table::AscIO::iscsv_ = false
mutableprotected

◆ needfullline_

bool Table::AscIO::needfullline_ = false
protected

◆ units_

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

◆ vals_

BufferStringSet Table::AscIO::vals_
private

◆ warnmsg_

uiString Table::AscIO::warnmsg_
mutableprotected

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