26#ifndef TGUI_DESERIALIZER_HPP
27#define TGUI_DESERIALIZER_HPP
30#include <TGUI/ObjectConverter.hpp>
43 using DeserializeFunc = std::function<
ObjectConverter(
const std::string&)>;
45 static ObjectConverter deserialize(ObjectConverter::Type type,
const std::string& serializedString);
47 static void setFunction(ObjectConverter::Type type,
const DeserializeFunc& deserializer);
48 static const DeserializeFunc& getFunction(ObjectConverter::Type type);
51 static std::vector<std::string> split(
const std::string& str,
char delim);
54 static std::map<ObjectConverter::Type, DeserializeFunc> m_deserializers;
Deserializes a settable property.
Definition: Deserializer.hpp:41
Implicit converter for settable properties.
Definition: ObjectConverter.hpp:48
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37