<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SEConsumeMeal.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "cdm/patient/conditions/SEPatientCondition.h"
6 #include "cdm/patient/SEMeal.h"
7 
8 class CDM_DECL SEConsumeMeal : public SEPatientCondition
9 {
10  friend class PBPatientCondition;//friend the serialization class
11 public:
12 
13  SEConsumeMeal(Logger* logger=nullptr);
14  virtual ~SEConsumeMeal();
15 
16  virtual void Clear(); //clear memory
17  virtual void Copy(const SEConsumeMeal& src);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21 
22  virtual std::string GetName() const { return "ConsumeMeal"; }
23 
24  bool HasMeal() const;
25  SEMeal& GetMeal();
26  const SEMeal* GetMeal() const;
27 
28  virtual std::string GetMealFile() const;
29  virtual void SetMealFile(const std::string& fileName);
30  virtual bool HasMealFile() const;
31 
32  virtual void ToString(std::ostream &str) const;
33 
34 protected:
36  std::string m_MealFile;
37 };
virtual void ToString(std::ostream &str) const =0
std::string m_MealFile
Definition: SEConsumeMeal.h:36
Definition: SEConsumeMeal.h:8
Definition: Logger.h:66
Definition: PBPatientConditions.h:22
virtual bool IsValid() const =0
Definition: SEPatientCondition.h:7
virtual std::string GetName() const
Definition: SEConsumeMeal.h:22
virtual bool IsActive() const =0
virtual void Clear()
Definition: SEPatientCondition.cpp:17
static void Copy(const SEAcuteRespiratoryDistressSyndrome &src, SEAcuteRespiratoryDistressSyndrome &dst)
Definition: PBPatientConditions.cpp:67
SEMeal * m_Meal
Definition: SEConsumeMeal.h:35
Definition: SEMeal.h:7

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.