<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SESubstanceCompound.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 class SESubstance;
8 
9 class CDM_DECL SESubstanceCompound : public Loggable
10 {
11  friend class PBSubstance;//friend the serialization class
12  friend class SESubstanceManager;
13 protected:
14  SESubstanceCompound(const std::string& name, Logger* logger);
15 public:
16  virtual ~SESubstanceCompound();
17 
18  virtual void Clear();
19 
20  bool SerializeToString(std::string& output, eSerializationFormat m) const;
21  bool SerializeToFile(const std::string& filename) const;
22  bool SerializeFromString(const std::string& src, const SESubstanceManager& subMgr, eSerializationFormat m);
23  bool SerializeFromFile(const std::string& filename, const SESubstanceManager& subMgr);
24 
25  virtual std::string GetName() const;
26 
27  bool HasComponent() const;
28  bool HasComponent(const SESubstance& substance) const;
29  const std::vector<SESubstanceConcentration*>& GetComponents();
30  const std::vector<const SESubstanceConcentration*>& GetComponents() const;
31  SESubstanceConcentration& GetComponent(const SESubstance& substance);
32  const SESubstanceConcentration* GetComponent(const SESubstance& substance) const;
33  void RemoveComponent(const SESubstance& substance);
34 
35 protected:
36 
37  std::string m_Name;
38 
39  std::vector<SESubstanceConcentration*> m_Components;
40  std::vector<const SESubstanceConcentration*> m_cComponents;
41 };
Definition: SESubstanceManager.h:8
Definition: Logger.h:66
Definition: Logger.h:18
virtual void Clear()
Definition: SESubstanceManager.cpp:23
Definition: SESubstanceConcentration.h:10
Definition: SESubstanceCompound.h:9
std::string m_Name
Definition: SESubstanceCompound.h:37
std::vector< SESubstanceConcentration * > m_Components
Definition: SESubstanceCompound.h:39
Definition: PBSubstance.h:18
std::vector< const SESubstanceConcentration * > m_cComponents
Definition: SESubstanceCompound.h:40
Definition: SESubstance.h:14

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.