SEAnesthesiaMachineConfiguration.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 #pragma once
4 #include "system/equipment/anesthesiamachine/actions/SEAnesthesiaMachineAction.h"
7 
9 {
10  friend class PBAnesthesiaMachineAction;//friend the serialization class
11 public:
12 
15 
16  virtual void Clear();
17  virtual void Copy(const SEAnesthesiaMachineConfiguration& src);
18 
19  virtual bool IsValid() const;
20 
21  bool HasConfiguration() const;
22  SEAnesthesiaMachine& GetConfiguration();
23  const SEAnesthesiaMachine* GetConfiguration() const;
24 
25  virtual std::string GetConfigurationFile() const;
26  virtual void SetConfigurationFile(const std::string& fileName);
27  virtual bool HasConfigurationFile() const;
28  virtual void InvalidateConfigurationFile();
29 
30  virtual void ToString(std::ostream &str) const;
31 
32 protected:
34 
35  std::string m_ConfigurationFile;
37 };
Definition: SESubstanceManager.h:8
virtual void ToString(std::ostream &str) const =0
std::string m_ConfigurationFile
Definition: SEAnesthesiaMachineConfiguration.h:35
Definition: SEAnesthesiaMachineConfiguration.h:8
Definition: SEAnesthesiaMachine.h:27
virtual void Clear()
Definition: SEAnesthesiaMachineAction.cpp:17
Definition: SEAnesthesiaMachineAction.h:6
static void Copy(const SEAnesthesiaMachineConfiguration &src, SEAnesthesiaMachineConfiguration &dst)
Definition: PBAnesthesiaMachineActions.cpp:61
virtual bool IsValid() const
Definition: SEAnesthesiaMachineAction.cpp:22
SEAnesthesiaMachine * m_Configuration
Definition: SEAnesthesiaMachineConfiguration.h:36
SESubstanceManager & m_Substances
Definition: SEAnesthesiaMachineConfiguration.h:33
Definition: PBAnesthesiaMachineActions.h:22