Public Member Functions | Protected Member Functions | Protected Attributes | Friends

Table::AscIO Class Reference

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

Inheritance diagram for Table::AscIO:
Geom2dAscIO PickSetAscIO

List of all members.

Public Member Functions

 AscIO (const FormatDesc &fd)
virtual ~AscIO ()
const FormatDescdesc () const
const char * errMsg () const

Protected Member Functions

void emptyVals () const
void addVal (const char *, const UnitOfMeasure *) const
bool getHdrVals (std::istream &) const
int getNextBodyVals (std::istream &) const
 Executor convention.
bool putHdrVals (std::ostream &) const
bool putNextBodyVals (std::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
int formOf (bool hdr, int iinf) const
int columnOf (bool hdr, int iinf, int ielem) const

Protected Attributes

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

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]
const char* Table::AscIO::errMsg (  )  const [inline]
int Table::AscIO::formOf ( bool  hdr,
int  iinf 
) const [protected]
double Table::AscIO::getdValue ( int  ,
double  udf = mUdf(double) 
) const [protected]
float Table::AscIO::getfValue ( int  ,
float  udf = mUdf(float) 
) const [protected]
bool Table::AscIO::getHdrVals ( std::istream &   )  const [protected]
int Table::AscIO::getIntValue ( int  ,
int  udf = mUdf(int) 
) const [protected]
int Table::AscIO::getNextBodyVals ( std::istream &   )  const [protected]

Executor convention.

bool Table::AscIO::putHdrVals ( std::ostream &   )  const [protected]
bool Table::AscIO::putNextBodyVals ( std::ostream &   )  const [protected]
const char* Table::AscIO::text ( int   )  const [protected]

Friends And Related Function Documentation

friend class AscIOExp_ImportHandler [friend]
friend class AscIOImp_ExportHandler [friend]

Member Data Documentation

BufferString Table::AscIO::errmsg_ [mutable, protected]
const FormatDesc& Table::AscIO::fd_ [protected]
bool Table::AscIO::hdrread_ [mutable, protected]
bool Table::AscIO::needfullline_ [protected]