<
    Kitware and KbPort announce the launch of SimPulse
×
SESubstanceCompoundInfusion.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "cdm/patient/actions/SESubstanceAdministration.h"
7 
9 {
10  friend class PBPatientAction;//friend the serialization class
11 public:
12 
13  SESubstanceCompoundInfusion(const SESubstanceCompound& compound, Logger* logger=nullptr);
14  virtual ~SESubstanceCompoundInfusion();
15 
16  virtual void Clear(); //clear memory
17  virtual void Copy(const SESubstanceCompoundInfusion& src, bool /*preserveState*/=false);
18 
19  virtual bool IsValid() const;
20  virtual bool IsActive() const;
21  virtual void Deactivate();
22 
23  virtual bool HasBagVolume() const;
24  virtual SEScalarVolume& GetBagVolume();
25  virtual double GetBagVolume(const VolumeUnit& unit) const;
26 
27  virtual bool HasRate() const;
28  virtual SEScalarVolumePerTime& GetRate();
29  virtual double GetRate(const VolumePerTimeUnit& unit) const;
30 
31  virtual SESubstanceCompound& GetSubstanceCompound();
32  virtual const SESubstanceCompound& GetSubstanceCompound() const;
33 
34  virtual void ToString(std::ostream &str) const;
35 
36  virtual const SEScalar* GetScalar(const std::string& name);
37 
38 protected:
42 };
virtual const SEScalar * GetScalar(const std::string &name)=0
Definition: SEPatientAction.h:7
Definition: SEScalar.h:34
Definition: SEScalarVolume.h:7
Definition: SEScalarVolume.h:27
Definition: Logger.h:66
virtual void Clear()
Definition: SEPatientAction.cpp:17
Definition: SESubstanceCompoundInfusion.h:8
Definition: SEScalarVolumePerTime.h:7
virtual void Deactivate()
Definition: SEAction.h:34
SEScalarVolumePerTime * m_Rate
Definition: SESubstanceCompoundInfusion.h:40
virtual bool IsValid() const
Definition: SEPatientAction.cpp:22
static SEAction * Copy(const SEAction &, const SESubstanceManager &)
Definition: SEAction.cpp:45
Definition: SEScalarVolumePerTime.h:30
Definition: SESubstanceCompound.h:9
virtual bool IsActive() const
Definition: SEAction.h:32
const SESubstanceCompound & m_Compound
Definition: SESubstanceCompoundInfusion.h:41
Definition: PBPatientActions.h:46
virtual void ToString(std::ostream &str) const =0
SEScalarVolume * m_BagVolume
Definition: SESubstanceCompoundInfusion.h:39

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.