What’s New in the Pulse Physiology Engine 4.4.0
×
SEPatientConfiguration.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
6class SEPatient;
9
10class CDM_DECL SEPatientConfiguration : public Loggable
11{
12 friend class PBEngine;//friend the serialization class
13public:
14 explicit SEPatientConfiguration(Logger* logger=nullptr);
16
19
20 virtual void Clear(); //clear memory
21
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);
26
27 virtual bool IsValid()const;
28
29 virtual std::string GetDataRoot() const;
30 virtual void SetDataRoot(const std::string& rootDir);
31
32 virtual std::string GetPatientFile() const;
33 virtual void SetPatientFile(const std::string& patientFile);
34 virtual bool HasPatientFile() const;
35
36 virtual SEPatient& GetPatient();
37 virtual const SEPatient* GetPatient() const;
38 virtual bool HasPatient() const;
39
40 virtual SEConditionManager& GetConditions();
41 virtual const SEConditionManager* GetConditions() const;
42 virtual bool HasConditions() const;
43
44 virtual bool BoundsDisabled() const;
45 virtual void DisableBounds(bool b);
46
47protected:
48 std::string m_DataRoot;
50 std::string m_PatientFile;
53};
Definition: Logger.h:23
Definition: Logger.h:71
Definition: PBEngine.h:31
static bool SerializeFromString(const std::string &src, LogMessages &dst, eSerializationFormat m, Logger *logger)
Definition: PBEngine.cpp:141
static bool SerializeFromFile(const std::string &filename, SEPatientConfiguration &dst, const SESubstanceManager &subMgr)
Definition: PBEngine.cpp:484
static bool SerializeToString(const LogMessages &src, std::string &output, eSerializationFormat m, Logger *logger)
Definition: PBEngine.cpp:169
static bool SerializeToFile(const SEPatientConfiguration &src, const std::string &filename)
Definition: PBEngine.cpp:470
Definition: SEConditionManager.h:26
Definition: SEEngineConfiguration.h:8
Definition: SEPatientConfiguration.h:11
SEPatient * m_Patient
Definition: SEPatientConfiguration.h:49
SEConditionManager * m_Conditions
Definition: SEPatientConfiguration.h:51
SEPatientConfiguration operator=(const SEPatientConfiguration &)=delete
bool m_DisableBounds
Definition: SEPatientConfiguration.h:52
SEPatientConfiguration(const SEPatientConfiguration &)=delete
std::string m_DataRoot
Definition: SEPatientConfiguration.h:48
std::string m_PatientFile
Definition: SEPatientConfiguration.h:50
Definition: SEPatient.h:13
Definition: SESubstanceManager.h:10

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.