-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQBXML.h
executable file
·68 lines (63 loc) · 2.2 KB
/
QBXML.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* Copyright Notice : Copyright 2015, Josiah Bruner, All Rights Reserved.
*/
#include "XMLRead.h"
#include <vector>
struct XMLResult {
bool valid;
std::string text;
std::string type;
};
class QBXML
{
public:
QBXML(XMLRead *read);
~QBXML();
void Dealloc();
// API_Authenticate, API_AddRecord, API_AddField, API_EditRecord, API_DoQuery.
XMLResult GetAction();
// API_Authenticate, API_AddRecord, API_AddField, API_EditRecord, API_DoQuery.
XMLResult GetErrCode();
// API_Authenticate, API_AddRecord, API_AddField, API_EditRecord, API_DoQuery.
XMLResult GetErrText();
// API_Authenticate, API_AddRecord, API_AddField, API_EditRecord, API_DoQuery.
XMLResult GetUData();
// API_Authenticate, API_AddField.
XMLResult GetUserID();
// API_Authenticate.
XMLResult GetTicket();
// API_AddRecord, API_EditRecord.
XMLResult GetRID();
// API_AddRecord, API_EditRecord.
XMLResult GetUpdateID();
// API_AddField.
XMLResult GetFID();
// API_AddField.
XMLResult GetLabel();
// API_EditRecord.
XMLResult GetNumFieldsChanged();
// API_CreateTable, API_CloneDatabase.
XMLResult GetNewDBID();
// API_DoQuery.
XMLResult GetRecord();
// API_GetRecordInfo.
XMLResult GetNumFields();
// API_GetRecordInfo.
XMLResult GetValue();
// API_GetAncestorInfo
XMLResult GetAncestorAppId();
// API_GetAncestorInfo
XMLResult GetOldEstancestorAppId();
// API_UserRoles
XMLResult GetUsers();
// API_GetSchema
XMLResult GetID();
XMLResult GetFieldType();
std::vector<std::string> GetChildDBIDs();
std::vector<QBXML> GetFields();
std::vector<QBXML> GetRecords();
private:
XMLRead *_xmlData;
XMLResult _GetResult(std::string);
std::string _RemoveSubstring(std::string mainString, std::string subString);
};