#include <SENutrition.h>

Inherits Loggable.

Inherited by SEMeal.

Public Member Functions

 SENutrition (Logger *logger)
 
virtual ~SENutrition ()
 
virtual void Clear ()
 
virtual void Copy (const SENutrition &src)
 
const SEScalarGetScalar (const std::string &name)
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m)
 
bool SerializeFromFile (const std::string &filename)
 
void Increment (const SENutrition &from)
 
virtual bool HasCarbohydrate () const
 
virtual SEScalarMassGetCarbohydrate ()
 
virtual double GetCarbohydrate (const MassUnit &unit) const
 
virtual bool HasCarbohydrateDigestionRate () const
 
virtual SEScalarMassPerTimeGetCarbohydrateDigestionRate ()
 
virtual double GetCarbohydrateDigestionRate (const MassPerTimeUnit &unit) const
 
virtual bool HasFat () const
 
virtual SEScalarMassGetFat ()
 
virtual double GetFat (const MassUnit &unit) const
 
virtual bool HasFatDigestionRate () const
 
virtual SEScalarMassPerTimeGetFatDigestionRate ()
 
virtual double GetFatDigestionRate (const MassPerTimeUnit &unit) const
 
virtual bool HasProtein () const
 
virtual SEScalarMassGetProtein ()
 
virtual double GetProtein (const MassUnit &unit) const
 
virtual bool HasProteinDigestionRate () const
 
virtual SEScalarMassPerTimeGetProteinDigestionRate ()
 
virtual double GetProteinDigestionRate (const MassPerTimeUnit &unit) const
 
virtual bool HasSodium () const
 
virtual SEScalarMassGetSodium ()
 
virtual double GetSodium (const MassUnit &unit) const
 
virtual bool HasCalcium () const
 
virtual SEScalarMassGetCalcium ()
 
virtual double GetCalcium (const MassUnit &unit) const
 
virtual bool HasWater () const
 
virtual SEScalarVolumeGetWater ()
 
virtual double GetWater (const VolumeUnit &unit) const
 
virtual double GetWeight (const MassUnit &unit) const
 
virtual void ToString (std::ostream &str) const
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

Protected Attributes

SEScalarMassm_Carbohydrate
 
SEScalarMassPerTimem_CarbohydrateDigestionRate
 
SEScalarMassm_Fat
 
SEScalarMassPerTimem_FatDigestionRate
 
SEScalarMassm_Protein
 
SEScalarMassPerTimem_ProteinDigestionRate
 
SEScalarMassm_Calcium
 
SEScalarMassm_Sodium
 
SEScalarVolumem_Water
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBPatientNutrition
 

Constructor & Destructor Documentation

◆ SENutrition()

SENutrition::SENutrition ( Logger logger)

◆ ~SENutrition()

SENutrition::~SENutrition ( )
virtual

Member Function Documentation

◆ Clear()

void SENutrition::Clear ( )
virtual

Reimplemented in SEMeal.

◆ Copy()

void SENutrition::Copy ( const SENutrition src)
virtual

◆ GetCalcium() [1/2]

SEScalarMass & SENutrition::GetCalcium ( )
virtual

◆ GetCalcium() [2/2]

double SENutrition::GetCalcium ( const MassUnit unit) const
virtual

◆ GetCarbohydrate() [1/2]

SEScalarMass & SENutrition::GetCarbohydrate ( )
virtual

◆ GetCarbohydrate() [2/2]

double SENutrition::GetCarbohydrate ( const MassUnit unit) const
virtual

◆ GetCarbohydrateDigestionRate() [1/2]

SEScalarMassPerTime & SENutrition::GetCarbohydrateDigestionRate ( )
virtual

◆ GetCarbohydrateDigestionRate() [2/2]

double SENutrition::GetCarbohydrateDigestionRate ( const MassPerTimeUnit unit) const
virtual

◆ GetFat() [1/2]

SEScalarMass & SENutrition::GetFat ( )
virtual

◆ GetFat() [2/2]

double SENutrition::GetFat ( const MassUnit unit) const
virtual

◆ GetFatDigestionRate() [1/2]

SEScalarMassPerTime & SENutrition::GetFatDigestionRate ( )
virtual

◆ GetFatDigestionRate() [2/2]

double SENutrition::GetFatDigestionRate ( const MassPerTimeUnit unit) const
virtual

◆ GetProtein() [1/2]

SEScalarMass & SENutrition::GetProtein ( )
virtual

◆ GetProtein() [2/2]

double SENutrition::GetProtein ( const MassUnit unit) const
virtual

◆ GetProteinDigestionRate() [1/2]

SEScalarMassPerTime & SENutrition::GetProteinDigestionRate ( )
virtual

◆ GetProteinDigestionRate() [2/2]

double SENutrition::GetProteinDigestionRate ( const MassPerTimeUnit unit) const
virtual

◆ GetScalar()

const SEScalar * SENutrition::GetScalar ( const std::string &  name)

◆ GetSodium() [1/2]

SEScalarMass & SENutrition::GetSodium ( )
virtual

◆ GetSodium() [2/2]

double SENutrition::GetSodium ( const MassUnit unit) const
virtual

◆ GetWater() [1/2]

SEScalarVolume & SENutrition::GetWater ( )
virtual

◆ GetWater() [2/2]

double SENutrition::GetWater ( const VolumeUnit unit) const
virtual

◆ GetWeight()

double SENutrition::GetWeight ( const MassUnit unit) const
virtual

◆ HasCalcium()

bool SENutrition::HasCalcium ( ) const
virtual

◆ HasCarbohydrate()

bool SENutrition::HasCarbohydrate ( ) const
virtual

◆ HasCarbohydrateDigestionRate()

bool SENutrition::HasCarbohydrateDigestionRate ( ) const
virtual

◆ HasFat()

bool SENutrition::HasFat ( ) const
virtual

◆ HasFatDigestionRate()

bool SENutrition::HasFatDigestionRate ( ) const
virtual

◆ HasProtein()

bool SENutrition::HasProtein ( ) const
virtual

◆ HasProteinDigestionRate()

bool SENutrition::HasProteinDigestionRate ( ) const
virtual

◆ HasSodium()

bool SENutrition::HasSodium ( ) const
virtual

◆ HasWater()

bool SENutrition::HasWater ( ) const
virtual

◆ Increment()

void SENutrition::Increment ( const SENutrition from)

◆ SerializeFromFile()

bool SENutrition::SerializeFromFile ( const std::string &  filename)

◆ SerializeFromString()

bool SENutrition::SerializeFromString ( const std::string &  src,
eSerializationFormat  m 
)

◆ SerializeToFile()

bool SENutrition::SerializeToFile ( const std::string &  filename) const

◆ SerializeToString()

bool SENutrition::SerializeToString ( std::string &  output,
eSerializationFormat  m 
) const

◆ ToString()

void SENutrition::ToString ( std::ostream &  str) const
virtual

Friends And Related Function Documentation

◆ PBPatientNutrition

friend class PBPatientNutrition
friend

Member Data Documentation

◆ m_Calcium

SEScalarMass* SENutrition::m_Calcium
protected

◆ m_Carbohydrate

SEScalarMass* SENutrition::m_Carbohydrate
protected

◆ m_CarbohydrateDigestionRate

SEScalarMassPerTime* SENutrition::m_CarbohydrateDigestionRate
protected

◆ m_Fat

SEScalarMass* SENutrition::m_Fat
protected

◆ m_FatDigestionRate

SEScalarMassPerTime* SENutrition::m_FatDigestionRate
protected

◆ m_Protein

SEScalarMass* SENutrition::m_Protein
protected

◆ m_ProteinDigestionRate

SEScalarMassPerTime* SENutrition::m_ProteinDigestionRate
protected

◆ m_Sodium

SEScalarMass* SENutrition::m_Sodium
protected

◆ m_Water

SEScalarVolume* SENutrition::m_Water
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.