X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2FpropertyObject.hxx;h=5cc1588ba0514dd8f264b419ace108b6472e6e2c;hb=708ae35068499af33329f9db91f55441f4956acb;hp=33921c7a9b2ebc3461e68d8432c553d563c14ed6;hpb=c3c97f2956d3546d28ad7f036462dd2401a3bab1;p=simgear.git diff --git a/simgear/props/propertyObject.hxx b/simgear/props/propertyObject.hxx index 33921c7a..5cc1588b 100644 --- a/simgear/props/propertyObject.hxx +++ b/simgear/props/propertyObject.hxx @@ -143,7 +143,34 @@ public: } +// copy-constructor + PropertyObject(const PropertyObject& aOther) : + PropertyObjectBase(aOther) + { + } +// create form + static PropertyObject create(const char* aPath, const std::string& aValue) + { + PropertyObject p(aPath); + p = aValue; + return p; + } + + static PropertyObject create(SGPropertyNode* aNode, const std::string& aValue) + { + PropertyObject p(aNode); + p = aValue; + return p; + } + + static PropertyObject create(SGPropertyNode* aNode, const char* aChild, const std::string& aValue) + { + PropertyObject p(aNode, aChild); + p = aValue; + return p; + } + operator std::string () const {