6#include "cdm/CommonDefs.h"
8#include "cdm/PhysiologyEngine.h"
9#include "cdm/engine/SEEventManager.h"
10#include "cdm/utils/ScopedMutex.h"
26 bool SerializeFromFile(std::string
const& filename, std::string
const& data_requests, eSerializationFormat data_requests_format);
27 bool SerializeToFile(std::string
const& filename);
29 bool SerializeFromString(std::string
const& state, std::string
const& data_requests, eSerializationFormat format);
30 std::string SerializeToString(eSerializationFormat format);
32 bool InitializeEngine(std::string
const& patient_configuration, std::string
const& data_requests, eSerializationFormat format);
34 std::string GetInitialPatient(eSerializationFormat format);
35 std::string GetConditions(eSerializationFormat format);
37 void LogToConsole(
bool b);
38 void KeepLogMessages(
bool keep);
39 void SetLogFilename(std::string
const& logfile);
40 std::string PullLogMessages(eSerializationFormat format);
43 void KeepEventChanges(
bool keep);
44 std::string PullEvents(eSerializationFormat format);
45 std::string PullActiveEvents(eSerializationFormat format);
46 std::string GetPatientAssessment(
int type, eSerializationFormat format);
49 bool ProcessActions(std::string
const& actions, eSerializationFormat format);
50 std::string PullActiveActions(eSerializationFormat format);
52 bool AdvanceTimeStep();
53 double GetTimeStep(std::string
const& unit);
55 size_t DataLength()
const;
56 double* PullDataPtr();
57 void PullData(std::vector<double>& data);
69 virtual void SetupDefaultDataRequests();
70 virtual bool SetupRequests();
75 bool m_keepLogMsgs =
false;
76 bool m_keepEventChanges =
false;
85 double* m_requestedData =
nullptr;
virtual void ForwardFatal(std::string const &)
Definition: Logger.h:67
virtual void ForwardDebug(std::string const &)
Definition: Logger.h:63
virtual void ForwardWarning(std::string const &)
Definition: Logger.h:65
virtual void ForwardError(std::string const &)
Definition: Logger.h:66
virtual void ForwardInfo(std::string const &)
Definition: Logger.h:64
Definition: PhysiologyEngineThunk.h:17
size_t m_length
Definition: PhysiologyEngineThunk.h:84
std::string m_dataDir
Definition: PhysiologyEngineThunk.h:81
void SetEventHandler(SEEventHandler *eh)
Definition: PhysiologyEngineThunk.h:47
std::vector< const SEEventChange * > m_events
Definition: PhysiologyEngineThunk.h:82
LogMessages m_logMsgs
Definition: PhysiologyEngineThunk.h:80
std::vector< const SEActiveEvent * > m_activeEvents
Definition: PhysiologyEngineThunk.h:83
std::unique_ptr< PhysiologyEngine > m_engine
Definition: PhysiologyEngineThunk.h:72
std::vector< double > m_requestedValues
Definition: PhysiologyEngineThunk.h:86
void SetLoggerForward(LoggerForward *lf)
Definition: PhysiologyEngineThunk.h:41
virtual void AllocateEngine()=0
Definition: SEEventManager.h:73
virtual void HandleEvent(eEvent e, bool active, const SEScalarTime *simTime=nullptr)=0
Definition: SEScalarTime.h:28
Definition: SESubstanceManager.h:9