14 #include <biogears/cdm/system/SESystem.h>
15 #include <biogears/schema/cdm/PatientActions.hxx>
16 #include <biogears/schema/biogears/BioGearsEquipment.hxx>
21 class SESubstanceManager;
22 class SEInhalerConfiguration;
27 class SEScalarFraction;
36 static constexpr
char const *
const TypeTag() {
return "SEInhaler"; }
37 const char*
classname()
const override {
return TypeTag(); }
38 size_t hash_code()
const override {
return TypeHash(); }
40 void Clear()
override;
50 const SEScalar* GetScalar(
const char* name)
override;
51 const SEScalar* GetScalar(
const std::string& name)
override;
55 Tree<const char*> GetPhysiologyRequestGraph()
const override;
69 bool Load(
const std::string& file);
73 bool HasState()
const;
74 void InvalidateState();
76 bool HasMeteredDose()
const;
78 double GetMeteredDose(
const MassUnit& unit)
const;
80 bool HasNozzleLoss()
const;
82 double GetNozzleLoss()
const;
84 bool HasSpacerVolume()
const;
86 double GetSpacerVolume(
const VolumeUnit& unit)
const;
88 bool HasSubstance()
const;
const SESubstance * m_Substance
Definition: SEInhaler.h:99
const char * classname() const override
Definition: SEInhaler.h:37
Definition: SEScalar.h:33
Definition: SEInhalerConfiguration.h:21
Definition: SESystem.h:27
Definition: SEScalarMass.h:38
CDM::enumOnOff::value m_State
Definition: SEInhaler.h:95
static constexpr char const *const TypeTag()
Definition: SEInhaler.h:36
Definition: SEScalarFraction.h:18
std::stringstream m_ss
Definition: SEInhaler.h:93
SEScalarMass * m_MeteredDose
Definition: SEInhaler.h:96
SESubstanceManager & m_Substances
Definition: SEInhaler.h:101
Definition: SEScalarVolume.h:18
Definition: SEScalarVolume.h:37
Definition: SESubstance.h:49
SEScalarVolume * m_SpacerVolume
Definition: SEInhaler.h:98
static size_t TypeHash()
Definition: SEInhaler.h:35
Class corresponding to the InhalerData schema type.
Definition: Inhaler.hxx:684
Definition: SEInhaler.h:29
value
Underlying enum type.
Definition: Properties.hxx:2070
virtual void StateChange()
Definition: SEInhaler.h:64
Definition: SESubstanceManager.h:23
Definition: SEScalarMass.h:18
Definition: SEElectricalCircuit.h:18
SEScalarFraction * m_NozzleLoss
Definition: SEInhaler.h:97
size_t hash_code() const override
Definition: SEInhaler.h:38