11 #include "../headers/Date.h"
12 #include "../headers/Advanced.h"
47 HK_Batch(
int ID,
string Name,
string Type,
48 string Breed,
string Group,
string Comments,
string Incubator,
49 int Eggs,
int Fertile,
int Chicks,
74 vector<string>
GetSQL(
int ID);
81 void Set(
int ID,
string Name,
string Type,
82 string Breed,
string Group,
string Comments,
string Incubator,
83 int Eggs,
int Fertile,
int Chicks,
A Class For Managing Multiple HK_Egg Instances.
Holds Data For One Batch, Includes Basic Set/Get Methods.
int PercentOfTotal()
Returns The Percentage Of Total Eggs That Hatched.
void SetAdv(int Adv)
Sets Batch Advanced Status.
int PercentFertile()
Returns The Percentage Of Eggs That Were Fertile.
void SetID(int ID)
Sets Batch ID.
void SetAdvanced(HK_Advanced Adv)
Sets Batch Advanced Data.
void SetCandle(HK_Date Candle)
Sets Batch Candle Date.
int GetChicks()
Returns Number Of Hatched Eggs In Batch, If Advanced Is Enabled It Returns HK_Advanced::GetChicks()
HK_Date GetCandle()
Returns Batch Candle Date.
HK_Advanced HK_BatchAdvanced
vector< string > GetSQL()
Returns An SQL String To Set Batch In Database.
string GetName()
Returns Batch Name.
int GetFertile()
Returns Number Of Fertile Eggs In Batch, If Advanced Is Enabled It Returns HK_Advanced::GetFertile()
void Set(int ID, string Name, string Type, string Breed, string Group, string Comments, string Incubator, int Eggs, int Fertile, int Chicks, HK_Date Start, HK_Date Candle, HK_Date Lockdown, HK_Date Hatch, int Remind, int Adv)
Sets All Batch Data In One Function.
void SetFertile(int Fertile)
Sets Batch Fertile Eggs.
HK_Batch()
Default Constructor.
void SetName(string Name)
Sets Batch Name.
HK_Date GetStart()
Returns Batch Start Date.
string GetIncubator()
Returns The Incubator As A String.
vector< string > GetUpdate()
Returns A String That Updates This Batch In Database.
string GetGroup()
Returns Batch Group.
void SetRemind(int Remind)
Sets Batch Remind Status For Notifications.
int OnDay()
Returns The Number Of Days Left In Incubation Period.
int GetEggs()
Returns Number Of Eggs In Batch.
void SetType(string Type)
Sets Batch Type.
void SetIncubator(string Incubator)
Sets Batch Incubator.
HK_Date GetLockdown()
Returns Batch Lockdown Date.
void SetAdvEgg(HK_Egg Egg, int Select)
Sets The Selected Egg For HK_Advanced.
void SetChicks(int Chicks)
Sets Batch Hatched Eggs.
void SetComments(string Comments)
Sets Batch Comments.
string GetComments()
Returns Batch Comments.
int GetRemind()
Returns Batch Remind Status.
void SetBreed(string Breed)
Sets Batch Breed.
int GetDaysLeft()
Returns The Number Of Days Left In Incubation Period.
int FertileUnhatched()
Returns The Number Of Fertile Eggs That Didn't Hatch.
string GetBreed()
Returns Batch Breed.
void SetHatch(HK_Date Hatch)
Sets Batch Hatch Date.
void SetEggs(int Eggs)
Sets Batch Eggs.
int PercentOfTotalUnhatched()
Returns The Percentage Of Total Eggs That Didn't Hatch.
int PercentOfFertile()
Returns The Percentage Of Fertile Eggs That Hatched.
void SetAdvUpdate(bool Status)
Sets The Update Status HK_Advanced.
void SetStart(HK_Date Start)
Sets Batch Start Date.
int GetID()
Returns Batch ID.
HK_Advanced GetAdvanced()
Returns Batch Advanced Egg Data.
int GetAdv()
Returns Batch Advanced Status.
string GetType()
Returns Batch Type.
void SetLockdown(HK_Date Lockdown)
Sets Batch Lockdown Date.
HK_KeyValue Search(string Value, bool SearchBatches, bool SearchAdv)
Searches For Value And Returns HK_KeyValue With Data.
void SetGroup(string Group)
Sets Batch Group.
HK_Date GetHatch()
Returns Batch Hatch Date.
int CalculatePercent(int First, int Second)
Returns The Percentage Of Two Ints.
A Class For Managing Dates.
A Class For Storing And Retieving Data For One Egg.
A Key and Value Type Storage.