SEAnesthesiaMachineChamber.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5class SESubstance;
8
10{
11 friend class PBAnesthesiaMachine;//friend the serialization class
13public:
14
17
18 virtual void Clear();
19
20 virtual void Merge(const SEAnesthesiaMachineChamber& from, SESubstanceManager& subMgr);
21
22 virtual const SEScalar* GetScalar(const std::string& name);
23
24 virtual eSwitch GetState() const;
25 virtual void SetState(eSwitch s);
26
27 virtual bool HasSubstanceFraction() const;
28 virtual SEScalar0To1& GetSubstanceFraction();
29 virtual double GetSubstanceFraction() const;
30
31 virtual bool HasSubstance() const;
32 virtual SESubstance* GetSubstance() const;
33 virtual void SetSubstance(const SESubstance& substance);
34 virtual void RemoveSubstance();
35
36 virtual void ToString(std::ostream &str) const;
37
38protected:
39
40 eSwitch m_State;
43};
Definition: Logger.h:23
Definition: Logger.h:71
Definition: PBAnesthesiaMachine.h:11
Definition: SEAnesthesiaMachineChamber.h:10
eSwitch m_State
Definition: SEAnesthesiaMachineChamber.h:40
SEScalar0To1 * m_SubstanceFraction
Definition: SEAnesthesiaMachineChamber.h:42
const SESubstance * m_Substance
Definition: SEAnesthesiaMachineChamber.h:41
friend SEAnesthesiaMachine
Definition: SEAnesthesiaMachineChamber.h:12
Definition: SEAnesthesiaMachine.h:24
Definition: SEScalar0To1.h:8
Definition: SEScalar.h:19
Definition: SESubstance.h:15
Definition: SESubstanceManager.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.