| Rev | Line | |
|---|
| 1 | #ifndef _GSEXmlParser_GSEXmlParser_h |
|---|
| 2 | #define _GSEXmlParser_GSEXmlParser_h |
|---|
| 3 | |
|---|
| 4 | #include <Core/Core.h> |
|---|
| 5 | #include <stdio.h> |
|---|
| 6 | #include <MySql/MySql.h> |
|---|
| 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(); |
|---|
| 20 | String ToXML(); |
|---|
| 21 | String ToTSV(); |
|---|
| 22 | }; |
|---|
| 23 | |
|---|
| 24 | struct GSEParser { |
|---|
| 25 | Array<Data> data; |
|---|
| 26 | void Dump(); |
|---|
| 27 | String ToXML(); |
|---|
| 28 | String ToTSV(); |
|---|
| 29 | void LoadXML(String filename); |
|---|
| 30 | void ToMySQL(String username, String password, String db, String db_ip); |
|---|
| 31 | }; |
|---|
| 32 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.