| Rev | Line | |
|---|
| [26] | 1 | #ifndef _GSEXmlParser_GSEXmlParser_h |
|---|
| 2 | #define _GSEXmlParser_GSEXmlParser_h |
|---|
| 3 | |
|---|
| 4 | #include <Core/Core.h> |
|---|
| 5 | #include <stdio.h> |
|---|
| [37] | 6 | #include <MySql/MySql.h> |
|---|
| [26] | 7 | |
|---|
| 8 | using namespace Upp; |
|---|
| 9 | using namespace std; |
|---|
| 10 | |
|---|
| 11 | String TrimSpace(String str); |
|---|
| 12 | |
|---|
| 13 | struct Data { |
|---|
| 14 | String iid; |
|---|
| 15 | String source; |
|---|
| 16 | VectorMap<String, String> desc; //Description |
|---|
| 17 | String supp_type; //Supplementary-Data Type |
|---|
| 18 | String supp_data; //Supplementary-Data |
|---|
| 19 | void Dump(); |
|---|
| [29] | 20 | String ToXML(); |
|---|
| [37] | 21 | String ToTSV(); |
|---|
| [26] | 22 | }; |
|---|
| 23 | |
|---|
| [37] | 24 | struct GSEParser { |
|---|
| [26] | 25 | Array<Data> data; |
|---|
| 26 | void Dump(); |
|---|
| 27 | String ToXML(); |
|---|
| [29] | 28 | String ToTSV(); |
|---|
| [26] | 29 | void LoadXML(String filename); |
|---|
| [37] | 30 | void ToMySQL(String username, String password, String db, String db_ip); |
|---|
| [26] | 31 | }; |
|---|
| 32 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.