SEAnesthesiaMachineOxygenBottle.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 #pragma once
14 #include <biogears/cdm/CommonDataModel.h>
15 #include <biogears/exports.h>
16 #include <biogears/schema/cdm/AnesthesiaActions.hxx>
17 
18 CDM_BIND_DECL(AnesthesiaMachineOxygenBottleData)
19 
20 namespace biogears {
21 class SEAnesthesiaMachine;
22 class SESubstanceManager;
23 class SEScalar;
24 class SEScalarVolume;
25 class VolumeUnit;
26 
28 protected:
30 
31 public:
34 
35  virtual void Clear();
36 
37  virtual bool Load(const CDM::AnesthesiaMachineOxygenBottleData& in);
38  virtual CDM::AnesthesiaMachineOxygenBottleData* Unload() const;
39 
40 protected:
41  virtual void Unload(CDM::AnesthesiaMachineOxygenBottleData& data) const;
42 
43  virtual void Merge(const SEAnesthesiaMachineOxygenBottle& from);
44 
45 public:
46  virtual const SEScalar* GetScalar(const char* name);
47  virtual const SEScalar* GetScalar(const std::string& name);
48 
49  virtual bool HasVolume() const;
50  virtual SEScalarVolume& GetVolume();
51  virtual double GetVolume(const VolumeUnit& unit) const;
52 
53  virtual void ToString(std::ostream& str);
54 
55 protected:
57 };
58 }
Definition: SEAnesthesiaMachineOxygenBottle.h:27
friend SEAnesthesiaMachine
Definition: SEAnesthesiaMachineOxygenBottle.h:29
Class corresponding to the AnesthesiaMachineOxygenBottleData schema type.
Definition: Anesthesia.hxx:3099
Definition: SEScalar.h:33
Definition: Logger.h:27
Definition: Logger.h:75
Definition: SEScalarVolume.h:18
Definition: SEScalarVolume.h:37
SEScalarVolume * m_Volume
Definition: SEAnesthesiaMachineOxygenBottle.h:56
Definition: SEElectricalCircuit.h:18