SEForcedInhale.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 SEForcedInhale(Logger* logger);
12public:
13
14 virtual ~SEForcedInhale();
15
16 static constexpr char const* Name = "Forced Inhale";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 void Copy(const SEForcedInhale& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24
25 virtual bool HasInspiratoryCapacityFraction() const;
26 virtual SEScalar0To1& GetInspiratoryCapacityFraction();
27 virtual double GetInspiratoryCapacityFraction() const;
28
29 virtual bool HasInhalePeriod() const;
30 virtual SEScalarTime& GetInhalePeriod();
31 virtual double GetInhalePeriod(const TimeUnit& unit) const;
32
33 virtual bool HasHoldPeriod() const;
34 virtual SEScalarTime& GetHoldPeriod();
35 virtual double GetHoldPeriod(const TimeUnit& unit) const;
36
37 virtual bool HasReleasePeriod() const;
38 virtual SEScalarTime& GetReleasePeriod();
39 virtual double GetReleasePeriod(const TimeUnit& unit) const;
40
41protected:
46};
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: SEForcedInhale.h:8
SEScalarTime * m_InhalePeriod
Definition: SEForcedInhale.h:43
SEScalar0To1 * m_InspiratoryCapacityFraction
Definition: SEForcedInhale.h:42
std::string GetName() const override
Definition: SEForcedInhale.h:17
SEScalarTime * m_ReleasePeriod
Definition: SEForcedInhale.h:45
SEScalarTime * m_HoldPeriod
Definition: SEForcedInhale.h:44
Definition: SEScalar0To1.h:8
Definition: SEScalarTime.h:28
Definition: SEScalarTime.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.