ToolMap
Loading...
Searching...
No Matches
tableexport.h
1/***************************************************************************
2 tableexport.h
3 -------------------
4 copyright : (C) 2012 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef _TABLEEXPORT_H
16#define _TABLEEXPORT_H
17
18// For compilers that support precompilation, includes "wx/wx.h".
19#include <wx/wxprec.h>
20
21// Include wxWidgets' headers
22#ifndef WX_PRECOMP
23#include <wx/wx.h>
24#endif
25
26#include <wx/filename.h>
27
28class DataBase;
29
31 private:
32 DataBase* m_Database;
33 wxString m_Encoding;
34
35 public:
36 TableExport(DataBase* database);
37
38 virtual ~TableExport();
39
40 void SetEncoding(const wxString& encoding) {
41 m_Encoding = encoding;
42 }
43
44 bool ExportCSV(const wxString& tablename, const wxFileName& path, int limit = wxNOT_FOUND,
45 bool addtablename = false);
46};
47
48#endif
Definition database.h:55
Definition tableexport.h:30