SEConsumeNutrients.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 
6 #include "patient/actions/SEPatientAction.h"
7 #include "patient/SENutrition.h"
8 
9 class CDM_DECL SEConsumeNutrients : public SEPatientAction
10 {
11  friend class PBPatientAction;//friend the serialization class
12 public:
13 
15  virtual ~SEConsumeNutrients();
16 
17  virtual void Clear(); //clear memory
18  virtual void Copy(const SEConsumeNutrients& src);
19 
20  virtual bool IsValid() const;
21  virtual bool IsActive() const;
22 
23  bool HasNutrition() const;
24  SENutrition& GetNutrition();
25  const SENutrition* GetNutrition() const;
26 
27  virtual std::string GetNutritionFile() const;
28  virtual void SetNutritionFile(const std::string& fileName);
29  virtual bool HasNutritionFile() const;
30  virtual void InvalidateNutritionFile();
31 
32  virtual void ToString(std::ostream &str) const;
33 
34 protected:
36  std::string m_NutritionFile;
37 };
Definition: SEPatientAction.h:7
virtual void Clear()
Definition: SEPatientAction.cpp:17
static void Copy(const SEAcuteStress &src, SEAcuteStress &dst)
Definition: PBPatientActions.cpp:76
SENutrition * m_Nutrition
Definition: SEConsumeNutrients.h:35
Definition: SENutrition.h:6
Definition: SEConsumeNutrients.h:9
std::string m_NutritionFile
Definition: SEConsumeNutrients.h:36
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
virtual bool IsActive() const
Definition: SEAction.h:21
Definition: PBPatientActions.h:38
virtual void ToString(std::ostream &str) const =0