Debian Codegraph @

DatabaseExplorer/dumpclass.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // copyright : (C) 2014 Eran Ifrah
5 // file name : dumpclass.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef DUMPCLASS_H
27 #define DUMPCLASS_H
28
29 #include <wx/wx.h>
30 #include <wx/textfile.h>
31 #include "IDbAdapter.h"
32 #include "table.h"
33 #include <wx/wxxmlserializer/XmlSerializer.h>
34
35
36 /*! \brief DumpClass can save items content (database table data) into sql file. */
37 class DumpClass {
38
39 public:
40 DumpClass(IDbAdapter* pDbAdapter, xsSerializable* pItems, const wxString& fileName);
41 virtual ~DumpClass();
42
43 /*! \brief start dumping data. Return finally status */
44 wxString DumpData();
45
46
47 protected:
48 int DumpTable(wxTextFile* pFile, Table* pTab);
49 wxString m_fileName;
50 xsSerializable* m_pItems;
51 IDbAdapter* m_pDbAdapter;
52
53 };
54
55 #endif // DUMPCLASS_H