diff --git a/src_main/core/pipropertystorage.h b/src_main/core/pipropertystorage.h index 151696ae..48392152 100644 --- a/src_main/core/pipropertystorage.h +++ b/src_main/core/pipropertystorage.h @@ -34,6 +34,11 @@ public: struct Property { Property(const PIString & n = PIString(), const PIString & c = PIString(), const PIVariant & v = PIVariant(), int f = 0): name(n), comment(c), value(v), flags(f) {} + bool toBool() const {return value.toBool();} + int toInt() const {return value.toInt();} + float toFloat() const {return value.toFloat();} + double toDouble() const {return value.toDouble();} + PIString toString() const {return value.toString();} PIString name; PIString comment; PIVariant value;