HatchKeeper  0.90
The Free Open-Source Egg Incubation Software
Weight.h
Go to the documentation of this file.
1 /*******************************************************************/
9 #ifndef _WEIGHT_H__
10 #define _WEIGHT_H__
11 
12 #include <string>
13 
14 using namespace std;
15 
24 class HK_Weight{
25  private:
26  float HK_WeightFloat = 0.000;
27  int HK_WeightUnit = 0;
28  public:
29  HK_Weight();
30 
31  int DiffPercent(HK_Weight Weight);
32 
33  bool IsZero();
34 
35  float GetFloat();
36  int GetInt();
37  string GetString();
38 
39  string Round(float Number);
40 
41  void Set(float Weight);
42  void Set(double Weight);
43  void Set(int Weight);
44  void Set(string Weight);
45 
46 };
47 
48 #endif
A Class For Managing Data For One Weight.
Definition: Weight.h:24