SEBagValveMaskInstantaneous.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3#pragma once
4#include "cdm/system/equipment/bag_valve_mask/actions/SEBagValveMaskAction.h"
7
9{
10 friend class PBEquipmentAction;//friend the serialization class
11public:
12
13 SEBagValveMaskInstantaneous(Logger* logger=nullptr);
15
16 static constexpr char const* Name = "Instantaneous";
17 std::string GetName() const override { return Name; }
18
19 void Clear() override;
20 virtual void Copy(const SEBagValveMaskInstantaneous& src);
21
22 bool IsValid() const override;
23 bool IsActive() const override;
24 void Deactivate() override;
25
26 virtual bool HasFlow() const;
27 virtual SEScalarVolumePerTime& GetFlow();
28 virtual double GetFlow(const VolumePerTimeUnit& unit) const;
29
30 virtual bool HasPressure() const;
31 virtual SEScalarPressure& GetPressure();
32 virtual double GetPressure(const PressureUnit& unit) const;
33
34 const SEScalar* GetScalar(const std::string& name) override;
35
36protected:
37
40};
Definition: Logger.h:71
Definition: PBEquipmentActions.h:41
Definition: SEScalarPressure.h:8
virtual const SEScalar * GetScalar(const std::string &name)=0
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:53
Definition: SEBagValveMaskAction.h:7
void Clear() override
Definition: SEBagValveMaskAction.cpp:17
bool IsValid() const override
Definition: SEBagValveMaskAction.cpp:22
Definition: SEBagValveMask.h:14
Definition: SEBagValveMaskInstantaneous.h:9
SEScalarVolumePerTime * m_Flow
Definition: SEBagValveMaskInstantaneous.h:38
std::string GetName() const override
Definition: SEBagValveMaskInstantaneous.h:17
SEScalarPressure * m_Pressure
Definition: SEBagValveMaskInstantaneous.h:39
void Deactivate() override
Definition: SEEquipmentAction.h:19
bool IsActive() const override
Definition: SEEquipmentAction.h:18
Definition: SEScalar.h:19
Definition: SEScalarPressure.h:29
Definition: SEScalarVolumePerTime.h:32
Definition: SESubstanceManager.h:9
Definition: SEScalarVolumePerTime.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.