<
    Kitware and KbPort announce the launch of SimPulse
×
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(DataRequested)
12 CDM_BIND_DECL2(DataRequestManager)
13 CDM_BIND_DECL2(DecimalFormat)
14 CDM_BIND_DECL2(DynamicStabilization)
15 CDM_BIND_DECL2(DynamicStabilizationEngineConvergence)
16 CDM_BIND_DECL2(EngineInitialization)
17 CDM_BIND_DECL2(TimedStabilization)
18 CDM_BIND_DECL2(PatientConfiguration)
19 class LogMessages;
20 class SEAction;
21 class SEActionManager;
22 class SEConditionManager;
23 class SESubstanceManager;
27 
28 class CDM_DECL PBEngine
29 {
30 public:
31 
32  static void Load(const CDM_BIND::LogMessagesData& src, LogMessages& dst);
33  static CDM_BIND::LogMessagesData* Unload(const LogMessages& src);
34  static void Serialize(const CDM_BIND::LogMessagesData& src, LogMessages& dst);
35  static void Serialize(const LogMessages& src, CDM_BIND::LogMessagesData& dst);
36  static bool SerializeToString(const LogMessages& src, std::string& output, eSerializationFormat m, Logger* logger);
37  static bool SerializeFromString(const std::string& src, LogMessages& dst, eSerializationFormat m, Logger* logger);
38 
39  static void Load(const CDM_BIND::PatientConfigurationData& src, SEPatientConfiguration& dst, const SESubstanceManager& subMgr);
40  static CDM_BIND::PatientConfigurationData* Unload(const SEPatientConfiguration& src);
41  static void Serialize(const CDM_BIND::PatientConfigurationData& src, SEPatientConfiguration& dst, const SESubstanceManager& subMgr);
42  static void Serialize(const SEPatientConfiguration& src, CDM_BIND::PatientConfigurationData& dst);
43  static bool SerializeToString(const SEPatientConfiguration& src, std::string& output, eSerializationFormat m);
44  static bool SerializeToFile(const SEPatientConfiguration& src, const std::string& filename);
45  static bool SerializeFromString(const std::string& src, SEPatientConfiguration& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
46  static bool SerializeFromFile(const std::string& filename, SEPatientConfiguration& dst, const SESubstanceManager& subMgr);
47 
48  static void Load(const CDM_BIND::ConditionListData& src, SEConditionManager& dst, const SESubstanceManager& subMgr);
49  static CDM_BIND::ConditionListData* Unload(const SEConditionManager& src);
50  static void Serialize(const CDM_BIND::ConditionListData& src, SEConditionManager& dst, const SESubstanceManager& subMgr);
51  static void Serialize(const SEConditionManager& src, CDM_BIND::ConditionListData& dst);
52 
53  static bool SerializeToString(const SEConditionManager& src, std::string& output, eSerializationFormat m);
54  static bool SerializeToFile(const SEConditionManager& src, const std::string& filename);
55  static bool SerializeFromString(const std::string& src, SEConditionManager& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
56  static bool SerializeFromFile(const std::string& filename, SEConditionManager& dst, const SESubstanceManager& subMgr);
57 
58  static void Load(const CDM_BIND::ActionListData& src, SEActionManager& dst);
59  static CDM_BIND::ActionListData* Unload(const SEActionManager& src);
60  static void Serialize(const CDM_BIND::ActionListData& src, SEActionManager& dst);
61  static void Serialize(const SEActionManager& src, CDM_BIND::ActionListData& dst);
62  static void Serialize(const SEEquipmentActionCollection& src, CDM_BIND::ActionListData& dst);
63  static void Serialize(const SEEnvironmentActionCollection& src, CDM_BIND::ActionListData& dst);
64  static void Serialize(const SEPatientActionCollection& src, CDM_BIND::ActionListData& dst);
65 
66  static void Load(const CDM_BIND::ActionListData& src, std::vector<SEAction*>& dst, const SESubstanceManager& subMgr);
67  static void Serialize(const CDM_BIND::ActionListData& src, std::vector<SEAction*>& dst, const SESubstanceManager& subMgr);
68  static bool SerializeFromString(const std::string& src, std::vector<SEAction*>& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
69 
70  static void Load(const CDM_BIND::ActionMapData& src, std::map<int, std::vector<const SEAction*>>& dst, const SESubstanceManager& subMgr);
71  static void Serialize(const CDM_BIND::ActionMapData& src, std::map<int, std::vector<const SEAction*>>& dst, const SESubstanceManager& subMgr);
72  static bool SerializeFromString(const std::string& src, std::map<int,std::vector<const SEAction*>>& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
73 
74  static bool SerializeToString(const SEActionManager& src, std::string& output, eSerializationFormat m);
75  static bool SerializeToFile(const SEActionManager& src, const std::string& filename);
76  static bool SerializeFromString(const std::string& src, SEActionManager& dst, eSerializationFormat m);
77  static bool SerializeFromFile(const std::string& filename, SEActionManager& dst);
78 
79  static void Load(const CDM_BIND::DataRequestData& src, SEDataRequest& dst);
80  static CDM_BIND::DataRequestData* Unload(const SEDataRequest& src);
81  static void Serialize(const CDM_BIND::DataRequestData& src, SEDataRequest& dst);
82  static void Serialize(const SEDataRequest& src, CDM_BIND::DataRequestData& dst);
83  static void Copy(const SEDataRequest& src, SEDataRequest& dst);
84 
85  CDM_BIND::DataRequestedData* Unload(const SEDataRequested& src);
86  static void Serialize(const SEDataRequested& src, CDM_BIND::DataRequestedData& dst);
87  static bool SerializeToString(const SEDataRequested& src, std::string& dst, eSerializationFormat m);
88  static void Serialize(const std::vector<SEDataRequested*>& src, CDM_BIND::DataRequestedListData& dst);
89  static bool SerializeToString(const std::vector<SEDataRequested*>& src, std::string& dst, eSerializationFormat m);
90 
91  static void Load(const CDM_BIND::DataRequestManagerData& src, SEDataRequestManager& dst);
92  static CDM_BIND::DataRequestManagerData* Unload(const SEDataRequestManager& src);
93  static void Serialize(const CDM_BIND::DataRequestManagerData& src, SEDataRequestManager& dst);
94  static void Serialize(const SEDataRequestManager& src, CDM_BIND::DataRequestManagerData& dst);
95  static void Copy(const SEDataRequestManager& src, SEDataRequestManager& dst);
96 
97  static bool SerializeToString(const SEDataRequestManager& src, std::string& output, eSerializationFormat m);
98  static bool SerializeToFile(const SEDataRequestManager& src, const std::string& filename);
99  static bool SerializeFromString(const std::string& src, SEDataRequestManager& dst, eSerializationFormat m);
100  static bool SerializeFromFile(const std::string& filename, SEDataRequestManager& dst);
101 
102  static void Load(const CDM_BIND::DecimalFormatData& src, SEDecimalFormat& dst);
103  static CDM_BIND::DecimalFormatData* Unload(const SEDecimalFormat& src);
104  static void Serialize(const CDM_BIND::DecimalFormatData& src, SEDecimalFormat& dst);
105  static void Serialize(const SEDecimalFormat& src, CDM_BIND::DecimalFormatData& dst);
106 
107  static void Load(const CDM_BIND::DynamicStabilizationData& src, SEDynamicStabilization& dst);
108  static CDM_BIND::DynamicStabilizationData* Unload(const SEDynamicStabilization& src);
109  static void Serialize(const CDM_BIND::DynamicStabilizationData& src, SEDynamicStabilization& dst);
110  static void Serialize(const SEDynamicStabilization& src, CDM_BIND::DynamicStabilizationData& dst);
111 
112  static bool SerializeToString(const SEDynamicStabilization& src, std::string& output, eSerializationFormat m);
113  static bool SerializeToFile(const SEDynamicStabilization& src, const std::string& filename);
114  static bool SerializeFromString(const std::string& src, SEDynamicStabilization& dst, eSerializationFormat m);
115  static bool SerializeFromFile(const std::string& filename, SEDynamicStabilization& dst);
116 
117  static void Load(const CDM_BIND::DynamicStabilizationEngineConvergenceData& src, SEDynamicStabilizationEngineConvergence& dst);
118  static CDM_BIND::DynamicStabilizationEngineConvergenceData* Unload(const SEDynamicStabilizationEngineConvergence& src);
119  static void Serialize(const CDM_BIND::DynamicStabilizationEngineConvergenceData& src, SEDynamicStabilizationEngineConvergence& dst);
120  static void Serialize(const SEDynamicStabilizationEngineConvergence& src, CDM_BIND::DynamicStabilizationEngineConvergenceData& dst);
121 
122  static void Load(const CDM_BIND::EngineInitializationData& src, SEEngineInitialization& dst, const SESubstanceManager& subMgr);
123  static CDM_BIND::EngineInitializationData* Unload(const SEEngineInitialization& src);
124  static void Serialize(const CDM_BIND::EngineInitializationData& src, SEEngineInitialization& dst, const SESubstanceManager& subMgr);
125  static void Serialize(const SEEngineInitialization& src, CDM_BIND::EngineInitializationData& dst);
126  static bool SerializeToString(const SEEngineInitialization& src, std::string& output, eSerializationFormat m);
127  static bool SerializeFromString(const std::string& src, SEEngineInitialization& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
128  static bool SerializeFromString(const std::string& src, std::vector<SEEngineInitialization*>& dst, eSerializationFormat m, const SESubstanceManager& subMgr);
129  static void Copy(const SEEngineInitialization& src, SEEngineInitialization& dst, const SESubstanceManager& subMgr);
130 
131  static void Load(const CDM_BIND::TimedStabilizationData& src, SETimedStabilization& dst);
132  static CDM_BIND::TimedStabilizationData* Unload(const SETimedStabilization& src);
133  static void Serialize(const CDM_BIND::TimedStabilizationData& src, SETimedStabilization& dst);
134  static void Serialize(const SETimedStabilization& src, CDM_BIND::TimedStabilizationData& dst);
135 
136  static bool SerializeToString(const SETimedStabilization& src, std::string& output, eSerializationFormat m);
137  static bool SerializeToFile(const SETimedStabilization& src, const std::string& filename);
138  static bool SerializeFromString(const std::string& src, SETimedStabilization& dst, eSerializationFormat m);
139  static bool SerializeFromFile(const std::string& filename, SETimedStabilization& dst);
140 };
Definition: SESubstanceManager.h:8
Definition: SEEnvironmentActionCollection.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:28
Definition: SEPatientConfiguration.h:11
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.