SEChronicAnemia.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 <string>
15 
16 #include <biogears/exports.h>
17 #include <biogears/cdm/patient/conditions/SEPatientCondition.h>
18 #include <biogears/schema/cdm/PatientConditions.hxx>
19 
20 namespace biogears {
21 class SEScalar0To1;
22 
23 class BIOGEARS_API SEChronicAnemia : public SEPatientCondition {
24 public:
26  virtual ~SEChronicAnemia() override;
27 
28  virtual void Clear() override; //clear memory
29 
30  virtual bool IsValid() const override;
31 
32  virtual bool Load(const CDM::ChronicAnemiaData& in);
33  virtual CDM::ChronicAnemiaData* Unload() const override;
34 
35 protected:
36  virtual void Unload(CDM::ChronicAnemiaData& data) const;
37 
38 public:
39  virtual std::string GetName() const override { return "ChronicAnemia"; }
40  virtual const char* GetName_cStr() const override { return "ChronicAnemia"; }
41 
42  virtual bool HasReductionFactor() const;
43  virtual SEScalar0To1& GetReductionFactor();
44 
45  virtual void ToString(std::ostream& str) const override;
46 
47 protected:
49 };
50 }
virtual std::string GetName() const override
Definition: SEChronicAnemia.h:39
Definition: SEChronicAnemia.h:23
Definition: SEPatientCondition.h:18
Definition: SEScalar0To1.h:17
virtual const char * GetName_cStr() const override
Definition: SEChronicAnemia.h:40
SEScalar0To1 * m_ReductionFactor
Definition: SEChronicAnemia.h:48
Class corresponding to the ChronicAnemiaData schema type.
Definition: PatientConditions.hxx:764
Definition: SEElectricalCircuit.h:18