PulseScenario.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "scenario/SEScenario.h"
7 PULSE_BIND_DECL(ScenarioData)
8 
9 
12 class PULSE_DECL PulseScenario : public SEScenario
13 {
14  friend class PBPulse;//friend the serialization class
15 public:
16 
18  virtual ~PulseScenario();
19 
20  virtual void Clear();
21 
22  bool SerializeToString(std::string& output, SerializationFormat m) const;
23  bool SerializeToFile(const std::string& filename, SerializationFormat m) const;
24  bool SerializeFromString(const std::string& src, SerializationFormat m);
25  bool SerializeFromFile(const std::string& filename, SerializationFormat m);
26 
27  virtual PulseConfiguration& GetConfiguration();
28  virtual const PulseConfiguration* GetConfiguration() const;
29  virtual bool HasConfiguration() const;
30  virtual void InvalidateConfiguration();
31 
32 protected:
34 };
Definition: SESubstanceManager.h:8
A Pulse specific scenario (i.e. holds a Pulse configuration object)
Definition: PulseScenario.h:12
PulseConfiguration * m_Configuration
Definition: PulseScenario.h:33
Definition: SEScenario.h:11
Definition: PBPulse.h:9
static bool SerializeFromFile(const std::string &filename, PulseScenario &dst, SerializationFormat m)
Definition: PBPulse.cpp:72
static bool SerializeToFile(const PulseScenario &src, const std::string &filename, SerializationFormat m)
Definition: PBPulse.cpp:44
static bool SerializeToString(const PulseScenario &src, std::string &output, SerializationFormat m)
Definition: PBPulse.cpp:38
static bool SerializeFromString(const std::string &src, PulseScenario &dst, SerializationFormat m)
Definition: PBPulse.cpp:53
Pulse specific configuration parameters for all systems/equipment
Definition: PulseConfiguration.h:17