Ascii I/O using Format Description. More...
Public Member Functions | |
| AscIO (const FormatDesc &fd) | |
| virtual | ~AscIO () |
| const FormatDesc & | desc () 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 FormatDesc & | fd_ |
| BufferString | errmsg_ |
| BufferStringSet | vals_ |
| ObjectSet< const UnitOfMeasure > | units_ |
| ImportHandler * | imphndlr_ |
| ExportHandler * | exphndlr_ |
| Converter * | cnvrtr_ |
| bool | hdrread_ |
| bool | needfullline_ |
| BufferStringSet | fullline_ |
Friends | |
| class | AscIOImp_ExportHandler |
| class | AscIOExp_ImportHandler |
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.
| Table::AscIO::AscIO | ( | const FormatDesc & | fd | ) | [inline] |
| virtual Table::AscIO::~AscIO | ( | ) | [virtual] |
| 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] |
friend class AscIOExp_ImportHandler [friend] |
friend class AscIOImp_ExportHandler [friend] |
Converter* Table::AscIO::cnvrtr_ [protected] |
BufferString Table::AscIO::errmsg_ [mutable, protected] |
ExportHandler* Table::AscIO::exphndlr_ [protected] |
const FormatDesc& Table::AscIO::fd_ [protected] |
BufferStringSet Table::AscIO::fullline_ [protected] |
bool Table::AscIO::hdrread_ [mutable, protected] |
ImportHandler* Table::AscIO::imphndlr_ [protected] |
bool Table::AscIO::needfullline_ [protected] |
ObjectSet<const UnitOfMeasure> Table::AscIO::units_ [protected] |
BufferStringSet Table::AscIO::vals_ [protected] |
1.7.1