SETourniquet.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 
17 #include <biogears/cdm/patient/actions/SEPatientAction.h>
18 #include <biogears/schema/cdm/PatientActions.hxx>
19 
20 namespace biogears {
21 class SEScalarVolumePerTime;
22 
23 class BIOGEARS_API SETourniquet : public SEPatientAction {
24 public:
25  SETourniquet();
26  virtual ~SETourniquet() override;
27 
28  static constexpr const char* TypeTag() { return "SETourniquet"; };
29  const char* classname() const override { return TypeTag(); }
30 
31  virtual void Clear() override; //clear memory
32 
33  virtual bool IsValid() const override;
34  virtual bool IsActive() const override;
35 
36  virtual bool Load(const CDM::TourniquetData& in);
37  virtual CDM::TourniquetData* Unload() const override;
38 
39 protected:
40  virtual void Unload(CDM::TourniquetData& data) const;
41 
42 public:
43  virtual const char* GetCompartment_cStr() const;
44  virtual std::string GetCompartment() const;
45  virtual bool HasCompartment() const;
46  virtual void SetCompartment(const char* name);
47  virtual void SetCompartment(const std::string& name);
48  virtual void InvalidateCompartment();
49 
50  virtual bool HasTourniquetLevel() const;
51  virtual CDM::enumTourniquetApplicationLevel GetTourniquetLevel();
52  virtual void SetTourniquetLevel(CDM::enumTourniquetApplicationLevel::value level);
53 
54  virtual void ToString(std::ostream& str) const override;
55 
56 protected:
57  std::string m_Compartment;
59 
60 };
61 }
Enumeration class corresponding to the enumTourniquetApplicationLevel schema type.
Definition: PatientActions.hxx:11782
static constexpr const char * TypeTag()
Definition: SETourniquet.h:28
Definition: SEPatientAction.h:18
Definition: SETourniquet.h:23
Class corresponding to the TourniquetData schema type.
Definition: PatientActions.hxx:11937
std::string m_Compartment
Definition: SETourniquet.h:57
CDM::enumTourniquetApplicationLevel::value m_TourniquetLevel
Definition: SETourniquet.h:58
value
Underlying enum type.
Definition: PatientActions.hxx:11789
const char * classname() const override
Definition: SETourniquet.h:29
Definition: SEElectricalCircuit.h:18