Change-Id: Id68c0a4ebc1ed5c44b9cba8953fbd28c6e4b9ef5
class DSPropertyPrivate;
+struct DSPropertyException : public std::exception
+{
+public:
+ DSPropertyException(std::string str)
+ : __msg(str)
+ {}
+
+ virtual const char *what() const noexcept override
+ {
+ return __msg.c_str();
+ }
+
+private:
+ std::string __msg;
+};
+
class DSProperty
{
public:
using DSPropertyVariant = std::variant<int, float, double, std::string, void *>;
-struct DSPropertyException : public std::exception
-{
-public:
- DSPropertyException(std::string str)
- : __msg(str)
- {}
-
- virtual const char *what() const noexcept override
- {
- return __msg.c_str();
- }
-
-private:
- std::string __msg;
-};
-
class DSPropertyPrivate
{
public: