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(ActionListData)
6 CDM_BIND_DECL(ConditionListData)
7 CDM_BIND_DECL2(DataRequest)
8 CDM_BIND_DECL2(DataRequestManager)
9 CDM_BIND_DECL2(DecimalFormat)
10 CDM_BIND_DECL2(AutoSerialization)
11 CDM_BIND_DECL2(DynamicStabilization)
12 CDM_BIND_DECL2(DynamicStabilizationEngineConvergence)
13 CDM_BIND_DECL2(TimedStabilization)
14 CDM_BIND_DECL2(PatientConfiguration)
15 class SEAction;
16 class SEActionManager;
17 class SEConditionManager;
18 class SESubstanceManager;
23 
24 class CDM_DECL PBEngine
25 {
26 public:
27 
28  static void Load(const cdm::PatientConfigurationData& src, SEPatientConfiguration& dst, SESubstanceManager& subMgr);
29  static cdm::PatientConfigurationData* Unload(const SEPatientConfiguration& src);
30  static void Serialize(const cdm::PatientConfigurationData& src, SEPatientConfiguration& dst, SESubstanceManager& subMgr);
31  static void Serialize(const SEPatientConfiguration& src, cdm::PatientConfigurationData& dst);
32 
33  static bool SerializeToString(const SEPatientConfiguration& src, std::string& output, SerializationFormat m);
34  static bool SerializeToFile(const SEPatientConfiguration& src, const std::string& filename, SerializationFormat m);
35  static bool SerializeFromString(const std::string& src, SEPatientConfiguration& dst, SerializationFormat m, SESubstanceManager& subMgr);
36  static bool SerializeFromFile(const std::string& filename, SEPatientConfiguration& dst, SerializationFormat m, SESubstanceManager& subMgr);
37 
38  static void Load(const cdm::ConditionListData& src, SEConditionManager& dst);
39  static cdm::ConditionListData* Unload(const SEConditionManager& src);
40  static void Serialize(const cdm::ConditionListData& src, SEConditionManager& dst);
41  static void Serialize(const SEConditionManager& src, cdm::ConditionListData& dst);
42 
43  static bool SerializeToString(const SEConditionManager& src, std::string& output, SerializationFormat m);
44  static bool SerializeToFile(const SEConditionManager& src, const std::string& filename, SerializationFormat m);
45  static bool SerializeFromString(const std::string& src, SEConditionManager& dst, SerializationFormat m);
46  static bool SerializeFromFile(const std::string& filename, SEConditionManager& dst, SerializationFormat m);
47 
48  static void Load(const cdm::ActionListData& src, SEActionManager& dst);
49  static cdm::ActionListData* Unload(const SEActionManager& src);
50  static void Serialize(const cdm::ActionListData& src, SEActionManager& dst);
51  static void Serialize(const SEActionManager& src, cdm::ActionListData& dst);
52  static void Serialize(const SEAnesthesiaMachineActionCollection& src, cdm::ActionListData& dst);
53  static void Serialize(const SEEnvironmentActionCollection& src, cdm::ActionListData& dst);
54  static void Serialize(const SEInhalerActionCollection& src, cdm::ActionListData& dst);
55  static void Serialize(const SEPatientActionCollection& src, cdm::ActionListData& dst);
56 
57  static bool SerializeToString(const SEActionManager& src, std::string& output, SerializationFormat m);
58  static bool SerializeToFile(const SEActionManager& src, const std::string& filename, SerializationFormat m);
59  static bool SerializeFromString(const std::string& src, SEActionManager& dst, SerializationFormat m);
60  static bool SerializeFromFile(const std::string& filename, SEActionManager& dst, SerializationFormat m);
61 
62  static void Load(const cdm::ActionListData& src, std::vector<SEAction*>& dst, SESubstanceManager& subMgr);
63  static void Serialize(const cdm::ActionListData& src, std::vector<SEAction*>& dst, SESubstanceManager& subMgr);
64  static bool SerializeFromString(const std::string& src, std::vector<SEAction*>& dst, SerializationFormat m, SESubstanceManager& subMgr);
65 
66  static void Load(const cdm::DataRequestData& src, SEDataRequest& dst);
67  static cdm::DataRequestData* Unload(const SEDataRequest& src);
68  static void Serialize(const cdm::DataRequestData& src, SEDataRequest& dst);
69  static void Serialize(const SEDataRequest& src, cdm::DataRequestData& dst);
70  static void Copy(const SEDataRequest& src, SEDataRequest& dst);
71 
72  static void Load(const cdm::DataRequestManagerData& src, SEDataRequestManager& dst, const SESubstanceManager& subMgr);
73  static cdm::DataRequestManagerData* Unload(const SEDataRequestManager& src);
74  static void Serialize(const cdm::DataRequestManagerData& src, SEDataRequestManager& dst, const SESubstanceManager& subMgr);
75  static void Serialize(const SEDataRequestManager& src, cdm::DataRequestManagerData& dst);
76  static void Copy(const SEDataRequestManager& src, SEDataRequestManager& dst, const SESubstanceManager& subMgr);
77 
78  static bool SerializeToString(const SEDataRequestManager& src, std::string& output, SerializationFormat m);
79  static bool SerializeToFile(const SEDataRequestManager& src, const std::string& filename, SerializationFormat m);
80  static bool SerializeFromString(const std::string& src, SEDataRequestManager& dst, SerializationFormat m, const SESubstanceManager& subMgr);
81  static bool SerializeFromFile(const std::string& filename, SEDataRequestManager& dst, SerializationFormat m, const SESubstanceManager& subMgr);
82 
83  static void Load(const cdm::DecimalFormatData& src, SEDecimalFormat& dst);
84  static cdm::DecimalFormatData* Unload(const SEDecimalFormat& src);
85  static void Serialize(const cdm::DecimalFormatData& src, SEDecimalFormat& dst);
86  static void Serialize(const SEDecimalFormat& src, cdm::DecimalFormatData& dst);
87 
88  static void Load(const cdm::AutoSerializationData& src, SEAutoSerialization& dst);
89  static cdm::AutoSerializationData* Unload(const SEAutoSerialization& src);
90  static void Serialize(const cdm::AutoSerializationData& src, SEAutoSerialization& dst);
91  static void Serialize(const SEAutoSerialization& src, cdm::AutoSerializationData& dst);
92 
93  static void Load(const cdm::DynamicStabilizationData& src, SEDynamicStabilization& dst);
94  static cdm::DynamicStabilizationData* Unload(const SEDynamicStabilization& src);
95  static void Serialize(const cdm::DynamicStabilizationData& src, SEDynamicStabilization& dst);
96  static void Serialize(const SEDynamicStabilization& src, cdm::DynamicStabilizationData& dst);
97 
98  static bool SerializeToString(const SEDynamicStabilization& src, std::string& output, SerializationFormat m);
99  static bool SerializeToFile(const SEDynamicStabilization& src, const std::string& filename, SerializationFormat);
100  static bool SerializeFromString(const std::string& src, SEDynamicStabilization& dst, SerializationFormat m);
101  static bool SerializeFromFile(const std::string& filename, SEDynamicStabilization& dst, SerializationFormat m);
102 
103  static void Load(const cdm::DynamicStabilizationEngineConvergenceData& src, SEDynamicStabilizationEngineConvergence& dst);
104  static cdm::DynamicStabilizationEngineConvergenceData* Unload(const SEDynamicStabilizationEngineConvergence& src);
105  static void Serialize(const cdm::DynamicStabilizationEngineConvergenceData& src, SEDynamicStabilizationEngineConvergence& dst);
106  static void Serialize(const SEDynamicStabilizationEngineConvergence& src, cdm::DynamicStabilizationEngineConvergenceData& dst);
107 
108  static void Load(const cdm::TimedStabilizationData& src, SETimedStabilization& dst);
109  static cdm::TimedStabilizationData* Unload(const SETimedStabilization& src);
110  static void Serialize(const cdm::TimedStabilizationData& src, SETimedStabilization& dst);
111  static void Serialize(const SETimedStabilization& src, cdm::TimedStabilizationData& dst);
112 
113  static bool SerializeToString(const SETimedStabilization& src, std::string& output, SerializationFormat m);
114  static bool SerializeToFile(const SETimedStabilization& src, const std::string& filename, SerializationFormat m);
115  static bool SerializeFromString(const std::string& src, SETimedStabilization& dst, SerializationFormat m);
116  static bool SerializeFromFile(const std::string& filename, SETimedStabilization& dst, SerializationFormat m);
117 };
Definition: SESubstanceManager.h:8
Definition: SEEnvironmentActionCollection.h:12
Definition: SEAnesthesiaMachineActionCollection.h:25
Definition: SEPatientActionCollection.h:36
Definition: SEAction.h:7
Definition: SEActionManager.h:12
Definition: SEAutoSerialization.h:6
Definition: SEDynamicStabilization.h:8
Definition: SEConditionManager.h:20
Definition: PBEngine.h:24
Definition: SEPatientConfiguration.h:10
Definition: SEDecimalFormat.h:9
Definition: SEDataRequestManager.h:9
Definition: SEInhalerActionCollection.h:13
Definition: SETimedStabilization.h:7
Definition: SEDataRequest.h:17
Definition: SEDynamicStabilizationEngineConvergence.h:9