9 #include "../headers/Batches.h"
22 string Breed,
string Group,
string Comments,
string Incubator,
23 int Eggs,
int Fertile,
int Chicks,
31 ID, Name, Type, Breed, Group, Comments, Incubator,Eggs,
32 Fertile, Chicks, Start, Candle, Lockdown, Hatch,
Remind, Adv
196 int A = 0, B, ID = -1;
A Class For Managing Multiple HK_Egg Instances.
Holds Data For One Batch, Includes Basic Set/Get Methods.
HK_Advanced GetAdvanced(int Select)
Returns Advanced Egg Data Selected Batch.
HK_Date GetHatch(int Select)
Returns Hatch Date For Selected Batch.
void Clear()
Clears All Batches.
int GetID(int Select)
Returns Batch ID For Selected Batch.
void SetDirty(int Select)
Sets Dirty Mark For Selected Batch.
int PercentOfTotalUnhatched(int Select)
Returns The Percentage Of Total Eggs That Didn't Hatch For The Selected Batch.
vector< bool > HK_BatchDirty
HK_Date GetStart(int Select)
Returns Start Date For Selected Batch.
void Add(HK_Batch Batch)
Adds Another HK_Batch.
void SetClean(int Select)
Clears Dirty Mark For Selected Batch.
int AvgTotalUnHatch()
Returns Average Percentage Of Total Eggs That Did Not Hatch In This HK_Batches Instance.
int AvgFertileHatch()
Returns Average Percentage Of Fertile Eggs That Hatched In This HK_Batches Instance.
string GetIncubator(int Select)
Returns Batch Incubator For Selected Batch.
void SetAdvUpdate(int Select, bool Status)
Sets The Update Status HK_Advanced.
int GetAdv(int Select)
Returns Advanced Status For Selected Batch.
int GetValidID()
Returns An ID That Isn't Used By Any HK_Batch In This HK_Batches Instance.
int AvgFertile()
Returns Average Percentage Of Eggs Fertile In This HK_Batches Instance.
void SetBatch(int Select, HK_Batch Batch)
Replaces Batch In Selected Position In Array. Use Add() To Add A Batch.
int GetChicks(int Select)
Returns Number Of Hatched Eggs For Selected Batch.
bool IsDirty(int Select)
Returns True If Batch Has Dirty Mark Set.
int GetFertile(int Select)
Returns Number Of Fertile Eggs For Selected Batch.
bool AddAdvanced(HK_Advanced Adv)
Add Advanced Data To The Batch That Has A Matching ID.
int PercentOfTotal(int Select)
Returns The Percentage Of Total Eggs That Hatched For The Selected Batch.
HK_Date GetCandle(int Select)
Returns Candle Date For Selected Batch.
int TotalEggs()
Returns Total Number Of Eggs In This HK_Batches Instance.
string GetType(int Select)
Returns Batch Type For Selected Batch.
vector< string > GetSQL(int Select, int ID)
Returns SQL String(s) To Set Batch In Database For Selected Batch.
HK_KeyValue Search(string Value, bool SearchBatch, bool SearchAdv)
Returned HK_KeyValue's Key Holds Name And Value Holds String Where Match Was Found.
int AvgTotalHatch()
Returns Average Percentage Of Total Eggs That Hatched In This HK_Batches Instance.
HK_Batch GetBatch(int Select)
Returns The Selected Batch.
bool IsValidName(string Name)
Returns True If Name Isn't Already In Use.
string GetGroup(int Select)
Returns Batch Group For Selected Batch.
vector< HK_Batch > HK_BatchInstance
void SetAdvEgg(int Select, HK_Egg Egg, int EggSelect)
Sets The Selected Egg For HK_Advanced.
int GetEggs(int Select)
Returns Number Of Eggs For Selected Batch.
int PercentFertile(int Select)
Returns The Percentage Of Egg That Were Fertile For The Selected Batch.
int GetCount()
Returns The Number Of Batches Stored.
int PercentOfFertile(int Select)
Returns The Percentage Of Fertile Eggs That Hatched For The Selected Batch.
int FertileUnhatched(int Select)
Returns The Number Of Fertile Eggs That Didn't Hatch For The Selected Batch.
HK_Date GetLockdown(int Select)
Returns Lockdown Date For Selected Batch.
int GetRemind(int Select)
Returns Remind Status For Selected Batch.
string GetComments(int Select)
Returns Batch Comments For Selected Batch.
int TotalChicks()
Returns Total Number Of Chicks In This HK_Batches Instance.
string GetName(int Select)
Returns Batch Name For Selected Batch.
string GetBreed(int Select)
Returns Batch Breed For Selected Batch.
HK_Batches()
Default Constructor.
A Class For Managing Dates.
A Class For Storing And Retieving Data For One Egg.
A Key and Value Type Storage.
void Add(string Key, string Value)
Adds A Key And Value;.