16 #include "hk_datasource.h"
17 #include "hk_dsvisible.h"
18 #include "hk_column.h"
56 void set_filedefinition(
const hk_string& textdelimiter=
"\"",
const hk_string& betweenfields=
",",
const hk_string& rowdelimiter=
"\n",
const hk_string& datetimeformat=
"",
const hk_string& dateformat=
"",
const hk_string& timeformat=
"",
const hk_string& charset=
"",
const hk_string& locale=
"");
60 void set_filename(
const hk_string& filename);
65 void set_firstrow_contains_fieldnames(
bool f=
true);
71 void set_append_rows(
bool f=
false);
75 void set_create_new_table(
bool n=
true);
80 void add_columnname(
const hk_string& col);
81 void clear_columnlist(
void);
82 void set_detect_autoinc(
bool);
83 bool detect_autoinc(
void)
const;
84 hk_string textdelimiter(
void){
return p_textdelimiter;}
85 hk_string betweenfield(
void) {
return p_betweenfields;}
86 hk_string rowdelimiter(
void) {
return p_rowdelimiter;}
87 hk_string datetimeformat(
void) {
return p_datetimeformat;}
88 hk_string dateformat(
void) {
return p_dateformat;}
89 hk_string timeformat(
void) {
return p_timeformat;}
90 hk_string filelocale(
void) {
return p_locale;}
91 hk_string filecharset(
void){
return p_charset;}
92 void set_overwrite_table(
bool);
93 bool overwrite_table(
void);
94 vector<hk_string>* create_valuelist( hk_string& row);
95 void get_line(ifstream&,hk_string&);
98 void set_progressdialog(progress_dialogtype* progressdialog);
99 progress_dialogtype* progressdialog(
void)
const;
100 void set_columns(
void);
101 void create_automatic_columns(
void);
103 virtual bool before_columns_deleted(
void);
108 virtual bool widget_specific_after_new_row(
void);
112 bool p_create_new_table;
123 ifstream* p_filestream;
124 hk_string p_filename;
125 hk_string p_textdelimiter;
126 hk_string p_rowdelimiter;
127 hk_string p_betweenfields;
130 bool p_firstrow_contains_fieldnames;
131 vector<hk_string> p_valuelist;
132 vector<colstruct> p_columnlist;
136 bool p_detect_autoinc;
138 hk_string p_datetimeformat,p_dateformat,p_timeformat;
139 progress_dialogtype* p_progressdialog;
enum_accessmode
Definition: hk_datasource.h:187
enum_columntype
Definition: hk_column.h:93
base class for visible widgets without column data connection
Definition: hk_dsvisible.h:31
enum_interaction
Definition: hk_class.h:60
Definition: hk_importcsv.h:25
imports comma delimited textfiles
Definition: hk_importcsv.h:41
represents one column of a datasource.
Definition: hk_column.h:34