<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×
SESerializeState.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "cdm/engine/SEAction.h"
6 
7 // Keep enums in sync with appropriate schema/cdm/ActionEnums.proto file !!
8 enum class eSerialization_Type { Save = 0, Load };
9 extern const std::string& eSerialization_Type_Name(eSerialization_Type m);
10 
11 class CDM_DECL SESerializeState : public SEAction
12 {
13  friend class PBAction;//friend the serialization class
14 public:
15 
16  SESerializeState(Logger* logger=nullptr);
17  virtual ~SESerializeState();
18 
19  virtual void Clear(); //clear memory
20 
21  virtual bool IsValid() const;
22 
23  virtual eSerialization_Type GetType() const;
24  virtual void SetType(eSerialization_Type t);
25 
26  virtual bool HasFilename() const;
27  virtual std::string GetFilename() const;
28  virtual void SetFilename(const std::string& filename);
29  virtual void InvalidateFilename();
30 
31  virtual void ToString(std::ostream &str) const;
32 
33  virtual const SEScalar* GetScalar(const std::string& name);
34 
35 protected:
36 
37  std::string m_Filename;
38  eSerialization_Type m_Type;
39 };
Definition: SEScalar.h:18
Definition: Logger.h:66
Definition: PBActions.h:12
Definition: SEAction.h:13
eSerialization_Type m_Type
Definition: SESerializeState.h:38
std::string m_Filename
Definition: SESerializeState.h:37
Definition: SESerializeState.h:11

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.