public:
static void setDefaultRoot(SGPropertyNode* aRoot);
+ PropertyObjectBase();
+
PropertyObjectBase(const PropertyObjectBase& aOther);
PropertyObjectBase(const char* aChild);
class PropertyObject : PropertyObjectBase
{
public:
+ PropertyObject();
+
/**
* Create from path relative to the default root, and option default value
*/
}
+// copy-constructor
+ PropertyObject(const PropertyObject<std::string>& aOther) :
+ PropertyObjectBase(aOther)
+ {
+ }
+// create form
+ static PropertyObject<std::string> create(const char* aPath, const std::string& aValue)
+ {
+ PropertyObject<std::string> p(aPath);
+ p = aValue;
+ return p;
+ }
+
+ static PropertyObject<std::string> create(SGPropertyNode* aNode, const std::string& aValue)
+ {
+ PropertyObject<std::string> p(aNode);
+ p = aValue;
+ return p;
+ }
+
+ static PropertyObject<std::string> create(SGPropertyNode* aNode, const char* aChild, const std::string& aValue)
+ {
+ PropertyObject<std::string> p(aNode, aChild);
+ p = aValue;
+ return p;
+ }
+
operator std::string () const
{
} // of namespace simgear
-/*
typedef simgear::PropertyObject<double> SGPropObjDouble;
typedef simgear::PropertyObject<bool> SGPropObjBool;
typedef simgear::PropertyObject<std::string> SGPropObjString;
typedef simgear::PropertyObject<long> SGPropObjInt;
-*/
#endif