SEConsumeMeal.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "patient/conditions/SEPatientCondition.h"
6 #include "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();
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  virtual void InvalidateMealFile();
32 
33  virtual void ToString(std::ostream &str) const;
34 
35 protected:
37  std::string m_MealFile;
38 };
virtual void ToString(std::ostream &str) const =0
std::string m_MealFile
Definition: SEConsumeMeal.h:37
Definition: SEConsumeMeal.h:8
Definition: PBPatientConditions.h:18
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
SEMeal * m_Meal
Definition: SEConsumeMeal.h:36
Definition: SEMeal.h:7
static void Copy(const SEChronicAnemia &src, SEChronicAnemia &dst)
Definition: PBPatientConditions.cpp:52