HatchKeeper
0.90
The Free Open-Source Egg Incubation Software
|
A Class For Managing Multiple HK_Egg Instances. More...
#include <Advanced.h>
Public Member Functions | |
HK_Advanced () | |
Default Constructor. More... | |
void | AddEgg (HK_Egg Egg) |
Adds An HK_Egg To HK_AdvEggs Vector. More... | |
int | CalcAvgLoss () |
Returns The Average Weight Loss For All Eggs In Batch. More... | |
void | Clear () |
Clears All Data From This Object. More... | |
int | GetChicks () |
Returns The Number Of Eggs That Hatched Based On HK_Egg Data. More... | |
int | GetDays () |
Returns Incubation Days. More... | |
vector< HK_Egg > | GetEggs () |
Returns An Array Of HK_Egg Objects. More... | |
HK_Egg | GetEgg (int Select) |
Returns The Selected Egg. More... | |
int | GetEggCount () |
Returns The Number Of Eggs. More... | |
int | GetFertile () |
Returns The Number Of Eggs That Are Fertile Based On HK_Egg Data. More... | |
int | GetID () |
Returns ID. More... | |
string | GetSQL () |
vector< string > | GetUpdate () |
Returns An Array Of SQL Strings To Update Database. More... | |
int | GetUnit () |
Returns Weight Unit. More... | |
bool | GetUpdateStatus () |
Returns True If This HK_Advanced Has Data That Needs To Be Updated. More... | |
HK_KeyValue | Search (string Value, string BatchName) |
Searches Eggs For Matches To Value. More... | |
void | Set (int ID, int Unit, int Days, vector< HK_Egg > Eggs) |
Initialize In One Function Call. More... | |
void | SetID (int ID) |
Sets ID. More... | |
void | SetUnit (int Unit) |
Sets Weight Unit Used. More... | |
void | SetDays (int Days) |
Sets Incubation Days. More... | |
void | SetEgg (HK_Egg Egg, int Select) |
Sets Selected Egg. More... | |
void | SetEggs (vector< HK_Egg > Eggs) |
Sets All Eggs At Once. More... | |
void | SetUpdate (bool Status) |
Sets Update Status For This HK_Advanced. More... | |
Private Attributes | |
int | HK_AdvID |
int | HK_AdvUnit |
int | HK_AdvDays |
vector< HK_Egg > | HK_AdvEggs |
bool | HK_AdvUpdate = false |
A Class For Managing Multiple HK_Egg Instances.
Definition at line 20 of file Advanced.h.
HK_Advanced::HK_Advanced | ( | ) |
Default Constructor.
Definition at line 11 of file HK_Advanced.cpp.
void HK_Advanced::AddEgg | ( | HK_Egg | Egg | ) |
Adds An HK_Egg To HK_AdvEggs Vector.
Definition at line 40 of file HK_Advanced.cpp.
int HK_Advanced::CalcAvgLoss | ( | ) |
Returns The Average Weight Loss For All Eggs In Batch.
Definition at line 14 of file HK_Advanced.cpp.
void HK_Advanced::Clear | ( | ) |
Clears All Data From This Object.
Definition at line 28 of file HK_Advanced.cpp.
int HK_Advanced::GetChicks | ( | ) |
Returns The Number Of Eggs That Hatched Based On HK_Egg Data.
Definition at line 65 of file HK_Advanced.cpp.
int HK_Advanced::GetDays | ( | ) |
Returns Incubation Days.
Definition at line 46 of file HK_Advanced.cpp.
HK_Egg HK_Advanced::GetEgg | ( | int | Select | ) |
Returns The Selected Egg.
Definition at line 50 of file HK_Advanced.cpp.
int HK_Advanced::GetEggCount | ( | ) |
Returns The Number Of Eggs.
Definition at line 52 of file HK_Advanced.cpp.
vector< HK_Egg > HK_Advanced::GetEggs | ( | ) |
Returns An Array Of HK_Egg Objects.
Definition at line 48 of file HK_Advanced.cpp.
int HK_Advanced::GetFertile | ( | ) |
Returns The Number Of Eggs That Are Fertile Based On HK_Egg Data.
Definition at line 55 of file HK_Advanced.cpp.
int HK_Advanced::GetID | ( | ) |
Returns ID.
Definition at line 42 of file HK_Advanced.cpp.
string HK_Advanced::GetSQL | ( | ) |
Returns An SQL Statment To Insert Into Database
Definition at line 78 of file HK_Advanced.cpp.
int HK_Advanced::GetUnit | ( | ) |
Returns Weight Unit.
Definition at line 44 of file HK_Advanced.cpp.
vector< string > HK_Advanced::GetUpdate | ( | ) |
Returns An Array Of SQL Strings To Update Database.
Definition at line 152 of file HK_Advanced.cpp.
bool HK_Advanced::GetUpdateStatus | ( | ) |
Returns True If This HK_Advanced Has Data That Needs To Be Updated.
Definition at line 236 of file HK_Advanced.cpp.
HK_KeyValue HK_Advanced::Search | ( | string | Value, |
string | BatchName | ||
) |
Searches Eggs For Matches To Value.
Definition at line 239 of file HK_Advanced.cpp.
void HK_Advanced::Set | ( | int | ID, |
int | Unit, | ||
int | Days, | ||
vector< HK_Egg > | Eggs | ||
) |
Initialize In One Function Call.
Definition at line 250 of file HK_Advanced.cpp.
void HK_Advanced::SetDays | ( | int | Days | ) |
Sets Incubation Days.
Definition at line 263 of file HK_Advanced.cpp.
void HK_Advanced::SetEgg | ( | HK_Egg | Egg, |
int | Select | ||
) |
Sets Selected Egg.
Definition at line 267 of file HK_Advanced.cpp.
void HK_Advanced::SetEggs | ( | vector< HK_Egg > | Eggs | ) |
Sets All Eggs At Once.
Definition at line 265 of file HK_Advanced.cpp.
void HK_Advanced::SetID | ( | int | ID | ) |
Sets ID.
Definition at line 259 of file HK_Advanced.cpp.
void HK_Advanced::SetUnit | ( | int | Unit | ) |
Sets Weight Unit Used.
Definition at line 261 of file HK_Advanced.cpp.
void HK_Advanced::SetUpdate | ( | bool | Status | ) |
Sets Update Status For This HK_Advanced.
Definition at line 269 of file HK_Advanced.cpp.
|
private |
Definition at line 24 of file Advanced.h.
|
private |
Definition at line 25 of file Advanced.h.
|
private |
Definition at line 22 of file Advanced.h.
|
private |
Definition at line 23 of file Advanced.h.
|
private |
Definition at line 27 of file Advanced.h.