The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
4 #pragma once
6 class SEPatient;
10 class CDM_DECL SEPatientConfiguration : public Loggable
11 {
12  friend class PBEngine;//friend the serialization class
13 public:
14  explicit SEPatientConfiguration(Logger* logger=nullptr);
15  virtual ~SEPatientConfiguration();
18  SEPatientConfiguration operator=(const SEPatientConfiguration&) = delete;
20  virtual void Clear(); //clear memory
22  bool SerializeToString(std::string& output, eSerializationFormat m) const;
23  bool SerializeToFile(const std::string& filename) const;
24  bool SerializeFromString(const std::string& src, eSerializationFormat m, const SESubstanceManager& subMgr);
25  bool SerializeFromFile(const std::string& filename, const SESubstanceManager& subMgr);
27  virtual bool IsValid()const;
29  virtual std::string GetDataRoot() const;
30  virtual void SetDataRoot(const std::string& rootDir);
32  virtual std::string GetPatientFile() const;
33  virtual void SetPatientFile(const std::string& patientFile);
34  virtual bool HasPatientFile() const;
36  virtual SEPatient& GetPatient();
37  virtual const SEPatient* GetPatient() const;
38  virtual bool HasPatient() const;
40  virtual SEConditionManager& GetConditions();
41  virtual const SEConditionManager* GetConditions() const;
42  virtual bool HasConditions() const;
44 protected:
45  std::string m_DataRoot;
47  std::string m_PatientFile;
49 };
Definition: SESubstanceManager.h:8
static bool SerializeToFile(const SEPatientConfiguration &src, const std::string &filename)
Definition: PBEngine.cpp:423
static bool SerializeFromFile(const std::string &filename, SEPatientConfiguration &dst, const SESubstanceManager &subMgr)
Definition: PBEngine.cpp:437
Definition: SEPatient.h:12
static bool SerializeToString(const LogMessages &src, std::string &output, eSerializationFormat m, Logger *logger)
Definition: PBEngine.cpp:154
static bool SerializeFromString(const std::string &src, LogMessages &dst, eSerializationFormat m, Logger *logger)
Definition: PBEngine.cpp:126
std::string m_DataRoot
Definition: SEPatientConfiguration.h:45
Definition: Logger.h:66
Definition: SEEngineConfiguration.h:7
std::string m_PatientFile
Definition: SEPatientConfiguration.h:47
Definition: Logger.h:18
Definition: SEConditionManager.h:24
Definition: PBEngine.h:29
Definition: SEPatientConfiguration.h:10
SEConditionManager * m_Conditions
Definition: SEPatientConfiguration.h:48
SEPatient * m_Patient
Definition: SEPatientConfiguration.h:46

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.