17 const SEScalar* GetScalar(
const std::string& name);
26 virtual bool HasCarbohydrate()
const;
28 virtual double GetCarbohydrate(
const MassUnit& unit)
const;
30 virtual bool HasCarbohydrateDigestionRate()
const;
32 virtual double GetCarbohydrateDigestionRate(
const MassPerTimeUnit& unit)
const;
34 virtual bool HasFat()
const;
36 virtual double GetFat(
const MassUnit& unit)
const;
38 virtual bool HasFatDigestionRate()
const;
42 virtual bool HasProtein()
const;
44 virtual double GetProtein(
const MassUnit& unit)
const;
46 virtual bool HasProteinDigestionRate()
const;
48 virtual double GetProteinDigestionRate(
const MassPerTimeUnit& unit)
const;
50 virtual bool HasSodium()
const;
52 virtual double GetSodium(
const MassUnit& unit)
const;
54 virtual bool HasCalcium()
const;
56 virtual double GetCalcium(
const MassUnit& unit)
const;
58 virtual bool HasWater()
const;
60 virtual double GetWater(
const VolumeUnit& unit)
const;
62 virtual double GetWeight(
const MassUnit& unit)
const;
64 virtual void ToString(std::ostream &str)
const;
79inline std::ostream& operator<< (std::ostream& out,
const SENutrition& n)
Definition: SEScalarMassPerTime.h:8
Definition: SEScalarMass.h:8
Definition: PBPatientNutrition.h:9
static bool SerializeFromString(const std::string &src, SENutrition &dst, eSerializationFormat m)
Definition: PBPatientNutrition.cpp:90
static bool SerializeToFile(const SENutrition &src, const std::string &filename)
Definition: PBPatientNutrition.cpp:83
static bool SerializeToString(const SENutrition &src, std::string &output, eSerializationFormat m)
Definition: PBPatientNutrition.cpp:77
static void Copy(const SENutrition &src, SENutrition &dst)
Definition: PBPatientNutrition.cpp:69
static bool SerializeFromFile(const std::string &filename, SENutrition &dst)
Definition: PBPatientNutrition.cpp:98
Definition: SENutrition.h:7
virtual void ToString(std::ostream &str) const
Definition: SENutrition.cpp:328
SEScalarMass * m_Carbohydrate
Definition: SENutrition.h:68
SEScalarMass * m_Sodium
Definition: SENutrition.h:75
SEScalarMassPerTime * m_CarbohydrateDigestionRate
Definition: SENutrition.h:69
SEScalarMass * m_Protein
Definition: SENutrition.h:72
SEScalarVolume * m_Water
Definition: SENutrition.h:76
SEScalarMass * m_Calcium
Definition: SENutrition.h:74
SEScalarMassPerTime * m_ProteinDigestionRate
Definition: SENutrition.h:73
SEScalarMassPerTime * m_FatDigestionRate
Definition: SENutrition.h:71
SEScalarMass * m_Fat
Definition: SENutrition.h:70
Definition: SEScalar.h:19
Definition: SEScalarMass.h:28
Definition: SEScalarMassPerTime.h:31
Definition: SEScalarVolume.h:28
Definition: SEScalarVolume.h:8