13 #include "generalmod.h" 31 , insingqstring_(false)
32 , indoubqstring_(false) {}
35 const char*
getCol()
const {
return col_.buf(); }
36 const char*
errMsg()
const {
return col_.buf(); }
57 const char*
getCol()
const {
return col_.buf(); }
58 const char*
errMsg()
const {
return col_.buf(); }
60 virtual void newRow() { instring_ =
false; }
89 void addVal(
int col,
const char*);
104 void addVal(
int col,
const char*);
133 void addVal(
int col,
const char*);
224 : nrdone_(0), nrremoved_(0) {}
#define mExpClass(module)
Definition: commondefs.h:157
int startindex_
if indexcolnm_ set, startindex
Definition: tableconvimpl.h:125
Removes records with identical keys.
Definition: tableconvimpl.h:220
int nrrows_
Definition: tableconvimpl.h:135
virtual void newRow()
Definition: tableconvimpl.h:38
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
ColWSHandl
Definition: tableconvimpl.h:76
bool any_
If false, all need to match.
Definition: tableconvimpl.h:199
Definition: tableconvimpl.h:94
BufferString indexcolnm_
if not empty, will add column
Definition: tableconvimpl.h:124
BufferStringSet colnms_
names of the columns: optional
Definition: tableconvimpl.h:122
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
CSVImportHandler(od_istream &s)
Definition: tableconvimpl.h:51
WSImportHandler(od_istream &s)
Definition: tableconvimpl.h:29
const char * getCol() const
Definition: tableconvimpl.h:57
BufferStringSet prevkeys_
Definition: tableconvimpl.h:234
ColWSHandl colwshanld_
Definition: tableconvimpl.h:85
BufferString tblname_
name of the table: mandatory
Definition: tableconvimpl.h:121
int nrdone_
Definition: tableconvimpl.h:235
GlobExpr matchexpr_
Definition: tableconvimpl.h:167
bool instring_
Definition: tableconvimpl.h:67
bool indoubqstring_
Definition: tableconvimpl.h:43
Definition: uistring.h:88
CSVExportHandler(od_ostream &s)
Definition: tableconvimpl.h:97
Set of BufferString objects.
Definition: bufstringset.h:25
static const GlobExpr emptyge_
Definition: tableconvimpl.h:207
BufferStringSet extracolvals_
Values for columns not in input.
Definition: tableconvimpl.h:128
bool startdone_
Definition: tableconvimpl.h:179
TypeSet< GlobExpr > colvals_
Definition: tableconvimpl.h:202
int nrextracols_
Definition: tableconvimpl.h:137
FixedString None()
Definition: keystrs.h:90
OD class for stream read.
Definition: od_istream.h:23
Definition: tableconv.h:82
Definition: tableconvimpl.h:76
const char * errMsg() const
Definition: tableconvimpl.h:58
DuplicateKeyRemover()
Definition: tableconvimpl.h:223
Criterion start_
Definition: tableconvimpl.h:172
Criterion stop_
Definition: tableconvimpl.h:173
Definition: geom2dascio.h:18
TypeSet< int > keycols_
column numbers (mand)
Definition: tableconvimpl.h:228
Removes lines at start or stop of input.
Definition: tableconvimpl.h:149
Criterion(Type t=None)
Definition: tableconvimpl.h:160
Definition: tableconvimpl.h:156
int nrRemoved() const
Definition: tableconvimpl.h:230
int nrremoved_
Definition: tableconvimpl.h:236
bool insingqstring_
Definition: tableconvimpl.h:42
Only passes records where col(s) (don't) match expression(s)
Definition: tableconvimpl.h:191
int count_
nr of lines or nr of matches
Definition: tableconvimpl.h:166
Glob-expression matching like UNIX shells.
Definition: globexpr.h:24
Type type_
Definition: tableconvimpl.h:165
WSExportHandler(od_ostream &s, ColWSHandl w=Underscores)
Definition: tableconvimpl.h:78
char nlreplace_
replace newlines with this char (optional)
Definition: tableconvimpl.h:62
SQLInsertExportHandler(od_ostream &s)
Definition: tableconvimpl.h:113
virtual void newRow()
Definition: tableconvimpl.h:60
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
int count_
Definition: tableconvimpl.h:180
const char * errMsg() const
Definition: tableconvimpl.h:36
Definition: tableconvimpl.h:48
int matchcolidx_
specify -1 for any col
Definition: tableconvimpl.h:168
Definition: tableconv.h:53
TypeSet< int > ckcols_
Column numbers (mand)
Definition: tableconvimpl.h:201
BufferStringSet extracolnms_
Column names for extracolvals_.
Definition: tableconvimpl.h:129
Type
Definition: tableconvimpl.h:158
Definition: tableconvimpl.h:72
Definition: tableconv.h:22
bool not_
If true, matches will not pass.
Definition: tableconvimpl.h:200
Definition: tableconvimpl.h:24
Definition: tableconvimpl.h:109
const char * getCol() const
Definition: tableconvimpl.h:35
int stepindex_
if indexcolnm_ set, step index
Definition: tableconvimpl.h:126
StartStopManipulator()
Definition: tableconvimpl.h:152
bool addindex_
Definition: tableconvimpl.h:136
State
Definition: tableconv.h:30
RecordMatcher(bool a=true)
Definition: tableconvimpl.h:194