 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "generalmod.h"
31 enum State { Error, InCol, EndCol, EndRow };
34 const char*
getCol()
const {
return col_.buf(); }
35 const char*
errMsg()
const {
return col_.buf(); }
38 virtual void newCol() { col_.setEmpty(); colpos_ = 0;}
88 , imphndlr_(i), exphndlr_(o)
89 , rowsdone_(0), selcolnr_(-1), atend_(false)
90 , msg_(tr(
"Importing")) {}
106 { manipulators_.erase(); addManipulator(m); }
108 { manipulators_ += m; }
124 {
return selcols_.isEmpty()
125 || selcols_.isPresent(colnr_); }
virtual bool accept(BufferStringSet &) const =0
if false returned, the row should not be written
Converter(ImportHandler &i, ExportHandler &o)
Definition: tableconv.h:86
Definition: tableconv.h:101
uiString getStrmMsg() const
Set of pointers to objects.
Definition: commontypes.h:31
Set of BufferString objects.
Definition: bufstringset.h:26
BufferStringSet row_
Definition: tableconv.h:114
ExportHandler(od_ostream &strm)
Definition: tableconv.h:57
bool atend_
Definition: tableconv.h:120
bool colSel() const
Definition: tableconv.h:123
#define od_int64
Definition: plftypes.h:35
#define mExpClass(module)
Definition: commondefs.h:177
State
Definition: tableconv.h:31
virtual ~ImportHandler()
Definition: tableconv.h:29
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
bool handleImpState(ImportHandler::State)
od_ostream & strm_
Definition: tableconv.h:75
mODTextTranslationClass(Converter)
ImportHandler & imphndlr_
Definition: tableconv.h:112
Definition: geom2dascio.h:20
ObjectSet< const RowManipulator > manipulators_
Definition: tableconv.h:115
virtual void newRow()
Definition: tableconv.h:37
static bool isNumber(const char *)
BufferString prepend_
Before first record. Add newline if needed.
Definition: tableconv.h:68
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
uiString msg_
Definition: tableconv.h:93
Definition: tableconv.h:55
uiString uiMessage() const
will be message() again in 7.x
Definition: tableconv.h:96
BufferString col_
Definition: tableconv.h:46
int selcolnr_
Definition: tableconv.h:118
virtual State add(char)=0
const char * errMsg() const
Definition: tableconv.h:35
Definition: tableconv.h:24
ImportHandler(od_istream &strm)
Definition: tableconv.h:26
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
ExportHandler & exphndlr_
Definition: tableconv.h:113
Definition: tableconv.h:84
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
virtual ~ExportHandler()
Definition: tableconv.h:59
od_int64 nrDone() const
Definition: tableconv.h:98
virtual void newCol()
Definition: tableconv.h:38
int rowsdone_
Definition: tableconv.h:119
BufferString append_
After last record.
Definition: tableconv.h:70
TypeSet< int > selcols_
Definition: tableconv.h:92
void setManipulator(const RowManipulator *m)
Definition: tableconv.h:105
const char * getCol() const
Definition: tableconv.h:34
void addManipulator(const RowManipulator *m)
Definition: tableconv.h:107
od_istream & strm_
Definition: tableconv.h:45
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
virtual bool putRow(const BufferStringSet &, uiString &)=0
int colpos_
Definition: tableconv.h:47
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: tableconv.h:97
int colnr_
Definition: tableconv.h:117
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021