<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
PBEngine.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 CDM_BIND_DECL(LogMessagesData)
6 CDM_BIND_DECL(ActionListData)
7 CDM_BIND_DECL(ActionMapData)
8 CDM_BIND_DECL(ConditionListData)
9 CDM_BIND_DECL(DataRequestedListData)
10 CDM_BIND_DECL2(DataRequest)
11 CDM_BIND_DECL2(ValidationTarget)
12 CDM_BIND_DECL2(DataRequested)
13 CDM_BIND_DECL2(DataRequestManager)
14 CDM_BIND_DECL2(DecimalFormat)
15 CDM_BIND_DECL2(DynamicStabilization)
16 CDM_BIND_DECL2(DynamicStabilizationEngineConvergence)
17 CDM_BIND_DECL2(EngineInitialization)
18 CDM_BIND_DECL2(TimedStabilization)
19 CDM_BIND_DECL2(PatientConfiguration)
20 class LogMessages;
21 class SEAction;
22 class SEActionManager;
23 class SEConditionManager;
24 class SESubstanceManager;
28 
29 class CDM_DECL PBEngine
30 {
31 public:
32 
33  static void Load(const CDM_BIND::LogMessagesData& src, LogMessages& dst);
34  static CDM_BIND::LogMessagesData* Unload(const LogMessages& src);
35  static void Serialize(const CDM_BIND::LogMessagesData& src, LogMessages& dst);
36  static void Serialize(const LogMessages& src, CDM_BIND::LogMessagesData& dst);
37  static bool SerializeToString(const LogMessages& src, std::string& output, eSerializationFormat m, Logger* logger);
38  static bool SerializeFromString(const std::string& src, LogMessages& dst, eSerializationFormat m, Logger* logger);
39 
40  static void Load(const CDM_BIND::PatientConfigurationData& src, SEPatientConfiguration& dst, const SESubstanceManager& subMgr);
41  static CDM_BIND::PatientConfigurationData* Unload(const SEPatientConfiguration& src);
42  static void Serialize(const CDM_BIND::PatientConfigurationData& src, SEPatientConfiguration& dst, const SESubstanceManager& subMgr);
43  static void Serialize(const SEPatientConfiguration& src, CDM_BIND::PatientConfigurationData& dst);
44  static bool SerializeToString(const SEPatientConfiguration& src, std::string& output, eSerializationFormat m);
45  static bool SerializeToFile(const SEPatientConfiguration& src, const std::string& filename);
46  static bool SerializeFromString(const std::string& src, SEPatientConfiguration& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
47  static bool SerializeFromFile(const std::string& filename, SEPatientConfiguration& dst, const SESubstanceManager& subMgr);
48 
49  static void Load(const CDM_BIND::ConditionListData& src, SEConditionManager& dst, const SESubstanceManager& subMgr);
50  static CDM_BIND::ConditionListData* Unload(const SEConditionManager& src);
51  static void Serialize(const CDM_BIND::ConditionListData& src, SEConditionManager& dst, const SESubstanceManager& subMgr);
52  static void Serialize(const SEConditionManager& src, CDM_BIND::ConditionListData& dst);
53 
54  static bool SerializeToString(const SEConditionManager& src, std::string& output, eSerializationFormat m);
55  static bool SerializeToFile(const SEConditionManager& src, const std::string& filename);
56  static bool SerializeFromString(const std::string& src, SEConditionManager& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
57  static bool SerializeFromFile(const std::string& filename, SEConditionManager& dst, const SESubstanceManager& subMgr);
58 
59  static void Load(const CDM_BIND::ActionListData& src, SEActionManager& dst);
60  static CDM_BIND::ActionListData* Unload(const SEActionManager& src);
61  static void Serialize(const CDM_BIND::ActionListData& src, SEActionManager& dst);
62  static void Serialize(const SEActionManager& src, CDM_BIND::ActionListData& dst);
63  static void Serialize(const SEEquipmentActionCollection& src, CDM_BIND::ActionListData& dst);
64  static void Serialize(const SEEnvironmentActionCollection& src, CDM_BIND::ActionListData& dst);
65  static void Serialize(const SEPatientActionCollection& src, CDM_BIND::ActionListData& dst);
66 
67  static void Load(const CDM_BIND::ActionListData& src, std::vector<SEAction*>& dst, const SESubstanceManager& subMgr);
68  static void Serialize(const CDM_BIND::ActionListData& src, std::vector<SEAction*>& dst, const SESubstanceManager& subMgr);
69  static bool SerializeFromString(const std::string& src, std::vector<SEAction*>& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
70 
71  static void Load(const CDM_BIND::ActionMapData& src, std::map<int, std::vector<const SEAction*>>& dst, const SESubstanceManager& subMgr);
72  static void Serialize(const CDM_BIND::ActionMapData& src, std::map<int, std::vector<const SEAction*>>& dst, const SESubstanceManager& subMgr);
73  static bool SerializeFromString(const std::string& src, std::map<int,std::vector<const SEAction*>>& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
74 
75  static bool SerializeToString(const SEActionManager& src, std::string& output, eSerializationFormat m);
76  static bool SerializeToFile(const SEActionManager& src, const std::string& filename);
77  static bool SerializeFromString(const std::string& src, SEActionManager& dst, eSerializationFormat m);
78  static bool SerializeFromFile(const std::string& filename, SEActionManager& dst);
79 
80  static void Load(const CDM_BIND::DataRequestData& src, SEDataRequest& dst);
81  static CDM_BIND::DataRequestData* Unload(const SEDataRequest& src);
82  static void Serialize(const CDM_BIND::DataRequestData& src, SEDataRequest& dst);
83  static void Serialize(const SEDataRequest& src, CDM_BIND::DataRequestData& dst);
84  static void Copy(const SEDataRequest& src, SEDataRequest& dst);
85 
86  static void Load(const CDM_BIND::ValidationTargetData& src, SEValidationTarget& dst);
87  static CDM_BIND::ValidationTargetData* Unload(const SEValidationTarget& src);
88  static void Serialize(const CDM_BIND::ValidationTargetData& src, SEValidationTarget& dst);
89  static void Serialize(const SEValidationTarget& src, CDM_BIND::ValidationTargetData& dst);
90  static void Copy(const SEValidationTarget& src, SEValidationTarget& dst);
91 
92  CDM_BIND::DataRequestedData* Unload(const SEDataRequested& src);
93  static void Serialize(const SEDataRequested& src, CDM_BIND::DataRequestedData& dst);
94  static bool SerializeToString(const SEDataRequested& src, std::string& dst, eSerializationFormat m);
95  static void Serialize(const std::vector<SEDataRequested*>& src, CDM_BIND::DataRequestedListData& dst);
96  static bool SerializeToString(const std::vector<SEDataRequested*>& src, std::string& dst, eSerializationFormat m);
97 
98  static void Load(const CDM_BIND::DataRequestManagerData& src, SEDataRequestManager& dst);
99  static CDM_BIND::DataRequestManagerData* Unload(const SEDataRequestManager& src);
100  static void Serialize(const CDM_BIND::DataRequestManagerData& src, SEDataRequestManager& dst);
101  static void Serialize(const SEDataRequestManager& src, CDM_BIND::DataRequestManagerData& dst);
102  static void Copy(const SEDataRequestManager& src, SEDataRequestManager& dst);
103 
104  static bool SerializeToString(const SEDataRequestManager& src, std::string& output, eSerializationFormat m);
105  static bool SerializeToFile(const SEDataRequestManager& src, const std::string& filename);
106  static bool SerializeFromString(const std::string& src, SEDataRequestManager& dst, eSerializationFormat m);
107  static bool SerializeFromFile(const std::string& filename, SEDataRequestManager& dst);
108 
109  static void Load(const CDM_BIND::DecimalFormatData& src, SEDecimalFormat& dst);
110  static CDM_BIND::DecimalFormatData* Unload(const SEDecimalFormat& src);
111  static void Serialize(const CDM_BIND::DecimalFormatData& src, SEDecimalFormat& dst);
112  static void Serialize(const SEDecimalFormat& src, CDM_BIND::DecimalFormatData& dst);
113 
114  static void Load(const CDM_BIND::DynamicStabilizationData& src, SEDynamicStabilization& dst);
115  static CDM_BIND::DynamicStabilizationData* Unload(const SEDynamicStabilization& src);
116  static void Serialize(const CDM_BIND::DynamicStabilizationData& src, SEDynamicStabilization& dst);
117  static void Serialize(const SEDynamicStabilization& src, CDM_BIND::DynamicStabilizationData& dst);
118 
119  static bool SerializeToString(const SEDynamicStabilization& src, std::string& output, eSerializationFormat m);
120  static bool SerializeToFile(const SEDynamicStabilization& src, const std::string& filename);
121  static bool SerializeFromString(const std::string& src, SEDynamicStabilization& dst, eSerializationFormat m);
122  static bool SerializeFromFile(const std::string& filename, SEDynamicStabilization& dst);
123 
124  static void Load(const CDM_BIND::DynamicStabilizationEngineConvergenceData& src, SEDynamicStabilizationEngineConvergence& dst);
125  static CDM_BIND::DynamicStabilizationEngineConvergenceData* Unload(const SEDynamicStabilizationEngineConvergence& src);
126  static void Serialize(const CDM_BIND::DynamicStabilizationEngineConvergenceData& src, SEDynamicStabilizationEngineConvergence& dst);
127  static void Serialize(const SEDynamicStabilizationEngineConvergence& src, CDM_BIND::DynamicStabilizationEngineConvergenceData& dst);
128 
129  static void Load(const CDM_BIND::EngineInitializationData& src, SEEngineInitialization& dst, const SESubstanceManager& subMgr);
130  static CDM_BIND::EngineInitializationData* Unload(const SEEngineInitialization& src);
131  static void Serialize(const CDM_BIND::EngineInitializationData& src, SEEngineInitialization& dst, const SESubstanceManager& subMgr);
132  static void Serialize(const SEEngineInitialization& src, CDM_BIND::EngineInitializationData& dst);
133  static bool SerializeToString(const SEEngineInitialization& src, std::string& output, eSerializationFormat m);
134  static bool SerializeFromString(const std::string& src, SEEngineInitialization& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
135  static bool SerializeFromString(const std::string& src, std::vector<SEEngineInitialization*>& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
136  static void Copy(const SEEngineInitialization& src, SEEngineInitialization& dst, const SESubstanceManager& subMgr);
137 
138  static void Load(const CDM_BIND::TimedStabilizationData& src, SETimedStabilization& dst);
139  static CDM_BIND::TimedStabilizationData* Unload(const SETimedStabilization& src);
140  static void Serialize(const CDM_BIND::TimedStabilizationData& src, SETimedStabilization& dst);
141  static void Serialize(const SETimedStabilization& src, CDM_BIND::TimedStabilizationData& dst);
142 
143  static bool SerializeToString(const SETimedStabilization& src, std::string& output, eSerializationFormat m);
144  static bool SerializeToFile(const SETimedStabilization& src, const std::string& filename);
145  static bool SerializeFromString(const std::string& src, SETimedStabilization& dst, eSerializationFormat m);
146  static bool SerializeFromFile(const std::string& filename, SETimedStabilization& dst);
147 };
Definition: SESubstanceManager.h:8
Definition: SEEnvironmentActionCollection.h:12
Definition: SEValidationTarget.h:12
Definition: Logger.h:132
Definition: Logger.h:66
Definition: SEPatientActionCollection.h:44
Definition: SEAction.h:13
Definition: SEActionManager.h:11
Definition: SEDataRequested.h:9
Definition: SEDynamicStabilization.h:8
Definition: SEConditionManager.h:24
Definition: PBEngine.h:29
Definition: SEPatientConfiguration.h:10
Definition: SEDecimalFormat.h:9
Definition: SEDataRequestManager.h:9
Definition: SEEngineInitialization.h:9
Definition: SETimedStabilization.h:7
Definition: SEDataRequest.h:17
Definition: SEDynamicStabilizationEngineConvergence.h:9
Definition: SEEquipmentActionCollection.h:43

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.