HatchKeeper  0.90
The Free Open-Source Egg Incubation Software
HK_Advanced Class Reference

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_EggGetEggs ()
 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_EggHK_AdvEggs
 
bool HK_AdvUpdate = false
 

Detailed Description

A Class For Managing Multiple HK_Egg Instances.

Since
02/09/2020

Definition at line 20 of file Advanced.h.

Constructor & Destructor Documentation

◆ HK_Advanced()

HK_Advanced::HK_Advanced ( )

Default Constructor.

Definition at line 11 of file HK_Advanced.cpp.

Member Function Documentation

◆ AddEgg()

void HK_Advanced::AddEgg ( HK_Egg  Egg)

Adds An HK_Egg To HK_AdvEggs Vector.

See also
SetEggs()

Definition at line 40 of file HK_Advanced.cpp.

◆ CalcAvgLoss()

int HK_Advanced::CalcAvgLoss ( )

Returns The Average Weight Loss For All Eggs In Batch.

Definition at line 14 of file HK_Advanced.cpp.

◆ Clear()

void HK_Advanced::Clear ( )

Clears All Data From This Object.

Definition at line 28 of file HK_Advanced.cpp.

◆ GetChicks()

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.

◆ GetDays()

int HK_Advanced::GetDays ( )

Returns Incubation Days.

Definition at line 46 of file HK_Advanced.cpp.

◆ GetEgg()

HK_Egg HK_Advanced::GetEgg ( int  Select)

Returns The Selected Egg.

Definition at line 50 of file HK_Advanced.cpp.

◆ GetEggCount()

int HK_Advanced::GetEggCount ( )

Returns The Number Of Eggs.

Definition at line 52 of file HK_Advanced.cpp.

◆ GetEggs()

vector< HK_Egg > HK_Advanced::GetEggs ( )

Returns An Array Of HK_Egg Objects.

Definition at line 48 of file HK_Advanced.cpp.

◆ GetFertile()

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.

◆ GetID()

int HK_Advanced::GetID ( )

Returns ID.

Definition at line 42 of file HK_Advanced.cpp.

◆ GetSQL()

string HK_Advanced::GetSQL ( )

Returns An SQL Statment To Insert Into Database

Definition at line 78 of file HK_Advanced.cpp.

◆ GetUnit()

int HK_Advanced::GetUnit ( )

Returns Weight Unit.

Definition at line 44 of file HK_Advanced.cpp.

◆ GetUpdate()

vector< string > HK_Advanced::GetUpdate ( )

Returns An Array Of SQL Strings To Update Database.

Definition at line 152 of file HK_Advanced.cpp.

◆ GetUpdateStatus()

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.

◆ Search()

HK_KeyValue HK_Advanced::Search ( string  Value,
string  BatchName 
)

Searches Eggs For Matches To Value.

Definition at line 239 of file HK_Advanced.cpp.

◆ Set()

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.

◆ SetDays()

void HK_Advanced::SetDays ( int  Days)

Sets Incubation Days.

Definition at line 263 of file HK_Advanced.cpp.

◆ SetEgg()

void HK_Advanced::SetEgg ( HK_Egg  Egg,
int  Select 
)

Sets Selected Egg.

Definition at line 267 of file HK_Advanced.cpp.

◆ SetEggs()

void HK_Advanced::SetEggs ( vector< HK_Egg Eggs)

Sets All Eggs At Once.

Definition at line 265 of file HK_Advanced.cpp.

◆ SetID()

void HK_Advanced::SetID ( int  ID)

Sets ID.

Definition at line 259 of file HK_Advanced.cpp.

◆ SetUnit()

void HK_Advanced::SetUnit ( int  Unit)

Sets Weight Unit Used.

Definition at line 261 of file HK_Advanced.cpp.

◆ SetUpdate()

void HK_Advanced::SetUpdate ( bool  Status)

Sets Update Status For This HK_Advanced.

Definition at line 269 of file HK_Advanced.cpp.

Member Data Documentation

◆ HK_AdvDays

int HK_Advanced::HK_AdvDays
private

Definition at line 24 of file Advanced.h.

◆ HK_AdvEggs

vector<HK_Egg> HK_Advanced::HK_AdvEggs
private

Definition at line 25 of file Advanced.h.

◆ HK_AdvID

int HK_Advanced::HK_AdvID
private

Definition at line 22 of file Advanced.h.

◆ HK_AdvUnit

int HK_Advanced::HK_AdvUnit
private

Definition at line 23 of file Advanced.h.

◆ HK_AdvUpdate

bool HK_Advanced::HK_AdvUpdate = false
private

Definition at line 27 of file Advanced.h.


The documentation for this class was generated from the following files: