SEAdvanceHandler.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 class PhysiologyEngine;
6 
7 class CDM_DECL SEAdvanceHandler
8 {
9 public:
10  SEAdvanceHandler() { m_OnStabilization = false; }
11  SEAdvanceHandler(bool on_stabilization) { m_OnStabilization = on_stabilization; }
12  virtual ~SEAdvanceHandler(){};
13 
14  bool OnForStabilization() { return m_OnStabilization; }
15  virtual void SetStabilizationCallback(bool b){ m_OnStabilization = b; }
16  virtual void OnAdvance(double time_s, const PhysiologyEngine& engine)=0;
17 
18 protected:
19  bool m_OnStabilization;// Tell the engine to call this handler during stabilization
20 };
bool OnForStabilization()
Definition: SEAdvanceHandler.h:14
SEAdvanceHandler()
Definition: SEAdvanceHandler.h:10
virtual ~SEAdvanceHandler()
Definition: SEAdvanceHandler.h:12
virtual void SetStabilizationCallback(bool b)
Definition: SEAdvanceHandler.h:15
SEAdvanceHandler(bool on_stabilization)
Definition: SEAdvanceHandler.h:11
Definition: PhysiologyEngine.h:52
Definition: SEAdvanceHandler.h:7
bool m_OnStabilization
Definition: SEAdvanceHandler.h:19