PulseEngineC.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #include <iostream>
5 #include "PulsePhysiologyEngine.h"
6 #include "controller/Engine.h"
7 #include "scenario/SEScenarioExec.h"
8 #include "engine/SEEventHandler.h"
9 
10 #include <memory>
11 
13 {
14 public:
15  PulseEngineC(const std::string& logFile, const std::string& data_dir);
16  ~PulseEngineC();
17 
18  void ForwardDebug(const std::string& msg, const std::string& origin);
19  void ForwardInfo(const std::string& msg, const std::string& origin);
20  void ForwardWarning(const std::string& msg, const std::string& origin);
21  void ForwardError(const std::string& msg, const std::string& origin);
22  void ForwardFatal(const std::string& msg, const std::string& origin);
23  //void PullData(double time_s);
24 
25  void HandlePatientEvent(ePatient_Event type, bool active, const SEScalarTime* time = nullptr);
26  void HandleAnesthesiaMachineEvent(eAnesthesiaMachine_Event type, bool active, const SEScalarTime* time = nullptr);
27 
29 
30  std::unique_ptr<PulseEngine> eng;
31  double* requestedData = nullptr;
32 };
void ForwardError(const std::string &msg, const std::string &origin)
Definition: PulseEngineC.cpp:270
void ForwardWarning(const std::string &msg, const std::string &origin)
Definition: PulseEngineC.cpp:265
Definition: SEEventHandler.h:8
Definition: PulseEngineC.h:12
~PulseEngineC()
Definition: PulseEngineC.cpp:232
PulseEngineC(const std::string &logFile, const std::string &data_dir)
Definition: PulseEngineC.cpp:225
void ForwardFatal(const std::string &msg, const std::string &origin)
Definition: PulseEngineC.cpp:275
double * requestedData
Definition: PulseEngineC.h:31
void ForwardDebug(const std::string &msg, const std::string &origin)
Definition: PulseEngineC.cpp:255
Definition: Logger.h:49
void HandleAnesthesiaMachineEvent(eAnesthesiaMachine_Event type, bool active, const SEScalarTime *time=nullptr)
Definition: PulseEngineC.cpp:284
Definition: SEScalarTime.h:23
std::unique_ptr< PulseEngine > eng
Definition: PulseEngineC.h:30
void HandlePatientEvent(ePatient_Event type, bool active, const SEScalarTime *time=nullptr)
Definition: PulseEngineC.cpp:280
void SetupDefaultDataRequests()
Definition: PulseEngineC.cpp:237
void ForwardInfo(const std::string &msg, const std::string &origin)
Definition: PulseEngineC.cpp:260