9 #include "../headers/Notifications.h"
20 for(
int A = 0; A <
GetCount(); A++) {
31 SQL =
"INSERT INTO Notifications VALUES(" + to_string(NotifyID) +
",'";
32 SQL += Name +
"','" + Date.
ToSortable(
"/") +
"','" + Message +
"',0 );";
35 Add(Name, NotifyID, Date, Message,0);
60 SQL.push_back(Statment);
71 SQL.push_back(Statment);
82 SQL.push_back(Statment);
93 SQL.push_back(Statment);
98 for(A = 0; A < Reminders.
GetCount(); A++) {
106 if(!Statment.empty())
107 SQL.push_back(Statment);
A Class For Managing Mulitple HK_Batch Objects.
HK_Date GetHatch(int Select)
Returns Hatch Date For Selected Batch.
HK_Date GetStart(int Select)
Returns Start Date For Selected Batch.
HK_Date GetCandle(int Select)
Returns Candle Date For Selected Batch.
int GetCount()
Returns The Number Of Batches Stored.
HK_Date GetLockdown(int Select)
Returns Lockdown Date For Selected Batch.
string GetName(int Select)
Returns Batch Name For Selected Batch.
A Class For Managing Dates.
std::string ToSortable(std::string Separator)
Generate A Sortable String For Database.
bool IsEqual(HK_Date Date)
Checks To See If The Input Date Is Same As Stored Date.
string AddNotification(string Name, HK_Date Date, string Message)
Returns A SQL Statment For Adding Notification To Database.
vector< string > CheckDates(HK_Batches Batches, HK_Storage Reminders)
Checks The HK_Batches and HK_Storage Objects For New Notifications.
A Class For Storing Values.
HK_Date GetDate(int Select)
Returns The Selected Stored Date.
int GetValidID()
Returns A Valid ID For Adding Entries To The Database.
int GetCount()
Returns The Number Of Elements Stored.
string GetName(int Select)
Returns The Selected Stored Name.
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.