SEForcedPause.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/patient/actions/SEConsciousRespirationCommand.h"
6
8{
9 friend class PBPatientAction;//friend the serialization class
11 SEForcedPause(Logger* logger);
12public:
13
14 virtual ~SEForcedPause();
15
16 static constexpr char const* Name = "Forced Pause";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SEForcedPause& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24
25 virtual bool HasPeriod() const;
26 virtual SEScalarTime& GetPeriod();
27 virtual double GetPeriod(const TimeUnit& unit) const;
28
29protected:
31};
Definition: Logger.h:71
Definition: PBPatientActions.h:52
Definition: SEConsciousRespirationCommand.h:8
virtual bool IsActive() const
Definition: SEConsciousRespirationCommand.cpp:27
virtual bool IsValid() const
Definition: SEConsciousRespirationCommand.cpp:22
virtual void Clear()
Definition: SEConsciousRespirationCommand.cpp:17
Definition: SEConsciousRespiration.h:13
static constexpr char const * Name
Definition: SEConsciousRespiration.h:20
void Copy(const SEConsciousRespiration &src, bool=false)
Definition: SEConsciousRespiration.cpp:31
Definition: SEForcedPause.h:8
std::string GetName() const override
Definition: SEForcedPause.h:17
SEScalarTime * m_Period
Definition: SEForcedPause.h:30
Definition: SEScalarTime.h:28
Definition: SEScalarTime.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.