]> git.mxchange.org Git - simgear.git/commitdiff
Enhancements to property-object support, add a default ctor and some typedefs.
authorJames Turner <zakalawe@mac.com>
Sun, 30 Oct 2011 07:55:29 +0000 (07:55 +0000)
committerJames Turner <zakalawe@mac.com>
Sun, 30 Oct 2011 07:55:29 +0000 (07:55 +0000)
simgear/props/propertyObject.cxx
simgear/props/propertyObject.hxx

index df3f81f990004088dbb2d88044cf95b7c2846105..ff87898e68c8e3841a612a6cb4519b273de544a6 100644 (file)
@@ -34,6 +34,13 @@ void PropertyObjectBase::setDefaultRoot(SGPropertyNode* aRoot)
 {
   static_defaultRoot = aRoot;
 }
+  
+PropertyObjectBase::PropertyObjectBase() :
+  _path(NULL),
+  _prop(NULL)
+{
+    
+}
 
 PropertyObjectBase::PropertyObjectBase(const PropertyObjectBase& aOther) :
   _path(aOther._path),
index 5cc1588ba0514dd8f264b419ace108b6472e6e2c..a6d357f89d817ea40f07027a23f5d884b5503213 100644 (file)
@@ -28,6 +28,8 @@ class PropertyObjectBase
 public:
   static void setDefaultRoot(SGPropertyNode* aRoot);
   
+  PropertyObjectBase();
+  
   PropertyObjectBase(const PropertyObjectBase& aOther);
     
   PropertyObjectBase(const char* aChild);
@@ -57,6 +59,8 @@ template <typename T>
 class PropertyObject : PropertyObjectBase
 {
 public:
+  PropertyObject();
+  
   /**
    * Create from path relative to the default root, and option default value
    */
@@ -220,11 +224,9 @@ private:
 
 } // 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