#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, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename, SerializationFormat m) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m)
 
bool SerializeFromFile (const std::string &filename, SerializationFormat m)
 
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 ()
 
 Loggable (Logger *log)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void Debug (std::string const &msg, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) 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
Loggerm_Logger
 

Friends

class PBPatientNutrition
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

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,
SerializationFormat  m 
)

◆ SerializeFromString()

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

◆ SerializeToFile()

bool SENutrition::SerializeToFile ( const std::string &  filename,
SerializationFormat  m 
) const

◆ SerializeToString()

bool SENutrition::SerializeToString ( std::string &  output,
SerializationFormat  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