9 #include "../headers/Storage.h"
108 int A = 0, B, ID = -1;
130 for(
int A = 0; A <
GetCount(); A++) {
143 transform(Value.begin(),Value.end(),Value.begin(), ::tolower);
145 for(
int A = 0; A <
GetCount(); A++) {
147 transform(Name.begin(),Name.end(),Name.begin(), ::tolower);
149 if(Name.find(Value) != string::npos){
158 transform(Text.begin(),Text.end(),Text.begin(), ::tolower);
159 if(Text.find(Value) != string::npos){
A Class For Managing Dates.
A Key and Value Type Storage.
void Add(string Key, string Value)
Adds A Key And Value;.
bool IsValidName(string Name)
Returns True If Name Isn't Already In Use.
int GetDay(int Select)
Returns The Selected Day From The Stored Date.
vector< int > HK_StoreNumber
int GetMonth(int Select)
Returns The Selected Month From The Stored Date.
HK_Date GetDate(int Select)
Returns The Selected Stored Date.
vector< string > HK_StoreText
int GetValidID()
Returns A Valid ID For Adding Entries To The Database.
int GetCount()
Returns The Number Of Elements Stored.
void SetMonth(int Select, int Month)
Sets The Selected Month From The Stored Date.
int GetNumber(int Select)
Returns The Selected Stored Number.
void SetNumber(int Select, int Number)
Sets The Selected Stored Number.
HK_KeyValue Search(string Prefix, string Value)
Returned HK_KeyValue's Key Holds Name And Value Holds String Where Match Was Found.
void SetName(int Select, string Name)
Sets The Selected Stored Name.
void SetID(int Select, int ID)
Sets The Selected Stored ID.
vector< HK_Date > HK_StoreDate
void SetDay(int Select, int Days)
Sets The Selected Day From The Stored Date.
vector< string > HK_StoreName
void SetDate(int Select, HK_Date Date)
Sets The Selected Stored Date.
string GetName(int Select)
Returns The Selected Stored Name.
int GetYear(int Select)
Returns The Selected Year From The Stored Date.
string GetText(int Select)
Returns The Selected Stored Text.
void Add(string Name, int ID, HK_Date Date, string Text, int Number)
Adds An Item To Storage.
void SetYear(int Select, int Year)
Sets The Selected Year From The Stored Date.
int GetID(int Select)
Returns The Selected Stored ID.
void Clear()
Clears All Data And Shrinks The Arrays.
void SetText(int Select, string Text)
Sets The Selected Stored Text.