HatchKeeper  0.90
The Free Open-Source Egg Incubation Software
KeyValue.h
Go to the documentation of this file.
1 /*******************************************************************/
9 #ifndef _KEYVALUE_H__
10 #define _KEYVALUE_H__
11 
12 #include <vector>
13 #include <string>
14 #include <iostream>
15 #include <algorithm>
16 using namespace std;
17 
26  private:
27  vector<string> HK_SettingKey;
28  vector<string> HK_SettingValue;
29  vector<bool> HK_Update;
30  public:
31  HK_KeyValue();
32 
33  void Add(string Key, string Value);
34  void Add(HK_KeyValue KeyValue);
35 
36  int CheckSelection(int Selection);
37  void Clear();
38 
39  int FindSelection(string Key);
40 
41  int GetCount();
42  vector<string> GetArray(int Selection);
43  vector<string> GetArray(string Key);
44 
45  int GetInt(int Selection);
46  int GetInt(string Key);
47  vector<int> GetIntArray(int Selection);
48  vector<int> GetIntArray(string Key);
49  string GetKey(int Selection);
50  vector<string> GetUpdate(string TableName);
51  string GetValue(int Selection);
52  string GetValue(string Key);
53 
54  bool IsDirty(int Selection);
55  bool IsDirty(string Key);
56 
57  HK_KeyValue Search(string Value);
58  void SetClean(int Selection);
59  void SetClean(string Key);
60  void SetError();
61  void SetDirty(int Selection);
62  void SetDirty(string Key);
63  void SetValue(int Selection,string Value);
64  void SetValue(string Key,string Value);
65 
66  vector<string> SplitStrings(string In, string Split);
67 };
68 #endif
A Key and Value Type Storage.
Definition: KeyValue.h:25
vector< bool > HK_Update
Definition: KeyValue.h:29
vector< string > HK_SettingKey
Definition: KeyValue.h:27
vector< string > HK_SettingValue
Definition: KeyValue.h:28