12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef LS_STD_SERIALIZABLE_XML_STATE_CONNECTION_HPP
- #define LS_STD_SERIALIZABLE_XML_STATE_CONNECTION_HPP
- #include "../../../base/Class.hpp"
- #include "../../ISerializable.hpp"
- #include "../../../logic/StateConnection.hpp"
- #include <memory>
- #include <tinyxml2.h>
- namespace ls_std {
- class SerializableXMLStateConnection : public Class, public ISerializable {
- public:
- explicit SerializableXMLStateConnection(std::shared_ptr<StateConnection> _value);
- ~SerializableXMLStateConnection() = default;
-
- ls_std::byte_field marshal() override;
- void unmarshal(const ls_std::byte_field& _data) override;
-
- std::shared_ptr<StateConnection> getValue();
- void setValue(std::shared_ptr<StateConnection> _value);
- private:
- tinyxml2::XMLDocument document {};
- std::shared_ptr<StateConnection> value {};
- void _clear();
- void _unmarshalCondition();
- void _unmarshalConnectionId();
- void _unmarshalId();
- void _update();
- };
- }
- #endif
|