SESubstanceFraction.h
1/* Distributed under the Apache License, Version 2.0.
2See accompanying NOTICE file for details.*/
3
4#pragma once
5class SESubstance;
7CDM_BIND_DECL(SubstanceData_FractionAmountData)
8
9class CDM_DECL SESubstanceFraction : public Loggable
10{
11 friend class PBSubstance;//friend the serialization class
12 friend class SEEnvironmentalConditions;// So it can add substances to the manager
13 friend class SEMechanicalVentilator;// So it can add substances to the manager
14public:
15
17 virtual ~SESubstanceFraction();
18
19 virtual void Clear();
20
21 virtual bool HasFractionAmount() const;
22 virtual SEScalar0To1& GetFractionAmount();
23 virtual double GetFractionAmount() const;
24
25 virtual const SESubstance& GetSubstance() const;
26
27protected:
28
31};
Definition: Logger.h:23
Definition: PBSubstance.h:19
Definition: SEEnvironmentalConditions.h:16
Definition: SEMechanicalVentilator.h:10
void Clear() override
Definition: SEMechanicalVentilator.cpp:84
Definition: SEScalar0To1.h:8
Definition: SESubstanceFraction.h:10
const SESubstance & m_Substance
Definition: SESubstanceFraction.h:29
SEScalar0To1 * m_FractionAmount
Definition: SESubstanceFraction.h:30
Definition: SESubstance.h:15
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.