PBState.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "engine/common/controller/Controller.h"
6PULSE_BIND_DECL(State)
7
8namespace pulse
9{
10 class PULSE_DECL PBState
11 {
12 public:
13
14 static void Load(const PULSE_BIND::StateData& src, Controller& dst, const SEEngineConfiguration* config = nullptr);
15 static PULSE_BIND::StateData* Unload(const Controller& src);
16 static bool Serialize(const PULSE_BIND::StateData& src, Controller& dst, const SEEngineConfiguration* config = nullptr);
17 static bool Serialize(const Controller& src, PULSE_BIND::StateData& dst);
18
19 static bool SerializeFromFile(const std::string& filename, Controller& dst, const SEEngineConfiguration* config = nullptr);
20 static bool SerializeToFile(const Controller& src, const std::string& filename);
21
22 static bool SerializeFromString(const std::string& src, Controller& dst, eSerializationFormat m, const SEEngineConfiguration* config = nullptr);
23 static bool SerializeToString(const Controller& src, std::string& output, eSerializationFormat m);
24 };
25}
Definition: SEEngineConfiguration.h:8
Definition: PBState.h:11
Definition: Logger.h:14

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.