1 #ifndef tableconvimpl_h 2 #define tableconvimpl_h 15 #include "generalmod.h" 33 , insingqstring_(false)
34 , indoubqstring_(false) {}
37 const char*
getCol()
const {
return col_.buf(); }
38 const char*
errMsg()
const {
return col_.buf(); }
59 const char*
getCol()
const {
return col_.buf(); }
60 const char*
errMsg()
const {
return col_.buf(); }
62 virtual void newRow() { instring_ =
false; }
91 void addVal(
int col,
const char*);
100 : ExportHandler(s) {}
106 void addVal(
int col,
const char*);
135 void addVal(
int col,
const char*);
226 : nrdone_(0), nrremoved_(0) {}
#define mExpClass(module)
Definition: commondefs.h:160
int startindex_
if indexcolnm_ set, startindex
Definition: tableconvimpl.h:127
Removes records with identical keys.
Definition: tableconvimpl.h:222
int nrrows_
Definition: tableconvimpl.h:137
virtual void newRow()
Definition: tableconvimpl.h:40
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
ColWSHandl
Definition: tableconvimpl.h:78
bool any_
If false, all need to match.
Definition: tableconvimpl.h:201
Definition: tableconvimpl.h:96
BufferString indexcolnm_
if not empty, will add column
Definition: tableconvimpl.h:126
BufferStringSet colnms_
names of the columns: optional
Definition: tableconvimpl.h:124
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
CSVImportHandler(od_istream &s)
Definition: tableconvimpl.h:53
WSImportHandler(od_istream &s)
Definition: tableconvimpl.h:31
const char * getCol() const
Definition: tableconvimpl.h:59
BufferStringSet prevkeys_
Definition: tableconvimpl.h:236
ColWSHandl colwshanld_
Definition: tableconvimpl.h:87
BufferString tblname_
name of the table: mandatory
Definition: tableconvimpl.h:123
int nrdone_
Definition: tableconvimpl.h:237
GlobExpr matchexpr_
Definition: tableconvimpl.h:169
bool instring_
Definition: tableconvimpl.h:69
bool indoubqstring_
Definition: tableconvimpl.h:45
Definition: uistring.h:89
CSVExportHandler(od_ostream &s)
Definition: tableconvimpl.h:99
Set of BufferString objects.
Definition: bufstringset.h:28
static const GlobExpr emptyge_
Definition: tableconvimpl.h:209
BufferStringSet extracolvals_
Values for columns not in input.
Definition: tableconvimpl.h:130
bool startdone_
Definition: tableconvimpl.h:181
TypeSet< GlobExpr > colvals_
Definition: tableconvimpl.h:204
int nrextracols_
Definition: tableconvimpl.h:139
FixedString None()
Definition: keystrs.h:90
OD class for stream read.
Definition: od_istream.h:24
Definition: tableconv.h:84
Definition: tableconvimpl.h:78
const char * errMsg() const
Definition: tableconvimpl.h:60
DuplicateKeyRemover()
Definition: tableconvimpl.h:225
Criterion start_
Definition: tableconvimpl.h:174
Criterion stop_
Definition: tableconvimpl.h:175
Definition: geom2dascio.h:21
TypeSet< int > keycols_
column numbers (mand)
Definition: tableconvimpl.h:230
Removes lines at start or stop of input.
Definition: tableconvimpl.h:151
Criterion(Type t=None)
Definition: tableconvimpl.h:162
Definition: tableconvimpl.h:158
int nrRemoved() const
Definition: tableconvimpl.h:232
int nrremoved_
Definition: tableconvimpl.h:238
bool insingqstring_
Definition: tableconvimpl.h:44
Only passes records where col(s) (don't) match expression(s)
Definition: tableconvimpl.h:193
int count_
nr of lines or nr of matches
Definition: tableconvimpl.h:168
Glob-expression matching like UNIX shells.
Definition: globexpr.h:26
Type type_
Definition: tableconvimpl.h:167
WSExportHandler(od_ostream &s, ColWSHandl w=Underscores)
Definition: tableconvimpl.h:80
char nlreplace_
replace newlines with this char (optional)
Definition: tableconvimpl.h:64
SQLInsertExportHandler(od_ostream &s)
Definition: tableconvimpl.h:115
virtual void newRow()
Definition: tableconvimpl.h:62
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int count_
Definition: tableconvimpl.h:182
const char * errMsg() const
Definition: tableconvimpl.h:38
Definition: tableconvimpl.h:50
int matchcolidx_
specify -1 for any col
Definition: tableconvimpl.h:170
Definition: tableconv.h:55
TypeSet< int > ckcols_
Column numbers (mand)
Definition: tableconvimpl.h:203
BufferStringSet extracolnms_
Column names for extracolvals_.
Definition: tableconvimpl.h:131
Type
Definition: tableconvimpl.h:160
Definition: tableconvimpl.h:74
Definition: tableconv.h:24
bool not_
If true, matches will not pass.
Definition: tableconvimpl.h:202
Definition: tableconvimpl.h:26
Definition: tableconvimpl.h:111
const char * getCol() const
Definition: tableconvimpl.h:37
int stepindex_
if indexcolnm_ set, step index
Definition: tableconvimpl.h:128
StartStopManipulator()
Definition: tableconvimpl.h:154
bool addindex_
Definition: tableconvimpl.h:138
State
Definition: tableconv.h:32
RecordMatcher(bool a=true)
Definition: tableconvimpl.h:196