]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGPropertyManager.h
Updated to match changes in radiostack.[ch]xx
[flightgear.git] / src / FDM / JSBSim / FGPropertyManager.h
index a3051196a2d118a58c7238033c4037f8e9485077..95001a307935a950f3399c28fbdcdaa451025326 100644 (file)
@@ -61,6 +61,8 @@ CLASS DOCUMENTATION
     @author David Megginson, Tony Peden
     @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGPropertyManager.h?rev=HEAD&content-type=text/vnd.viewcvs-markup">
          Header File </a>
+    @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGPropertyManager.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup">
+         Source File </a>
   */
   
 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -113,6 +115,13 @@ class FGPropertyManager:public SGPropertyNode {
       return (GetNode(path, false) != 0);
     }
 
+    /**
+     * Get the name of a node
+     */
+    inline string
+    GetName( void ) {
+      return string( getName() );
+    }  
 
     /**
      * Get a bool value for a property.
@@ -348,7 +357,6 @@ class FGPropertyManager:public SGPropertyNode {
     }
 
 
-    \f
     ////////////////////////////////////////////////////////////////////////
     // Convenience functions for setting property attributes.
     ////////////////////////////////////////////////////////////////////////
@@ -373,7 +381,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (node == 0)
         cout <<
               "Attempt to set archive flag for non-existant property "
-              << name;
+              << name << endl;
       else
         node->setAttribute(SGPropertyNode::ARCHIVE, state);
     }
@@ -398,7 +406,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (node == 0)
         cout <<
               "Attempt to set read flag for non-existant property "
-              << name;
+              << name << endl;
       else
         node->setAttribute(SGPropertyNode::READ, state);
     }
@@ -423,13 +431,12 @@ class FGPropertyManager:public SGPropertyNode {
       if (node == 0)
         cout <<
               "Attempt to set write flag for non-existant property "
-              << name;
+              << name << endl;
       else
         node->setAttribute(SGPropertyNode::WRITE, state);
     }
 
 
-    \f
     ////////////////////////////////////////////////////////////////////////
     // Convenience functions for tying properties, with logging.
     ////////////////////////////////////////////////////////////////////////
@@ -445,7 +452,7 @@ class FGPropertyManager:public SGPropertyNode {
     Untie (const string &name)
     {
       if (!untie(name.c_str()))
-        cout << "Failed to untie property " << name;
+        cout << "Failed to untie property " << name << endl;
     }
 
 
@@ -469,7 +476,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (!tie(name.c_str(), SGRawValuePointer<bool>(pointer),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to a pointer";
+              "Failed to tie property " << name << " to a pointer" << endl;
     }
 
 
@@ -491,7 +498,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (!tie(name.c_str(), SGRawValuePointer<int>(pointer),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to a pointer";
+              "Failed to tie property " << name << " to a pointer" << endl;
     }
 
 
@@ -513,7 +520,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (!tie(name.c_str(), SGRawValuePointer<long>(pointer),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to a pointer";
+              "Failed to tie property " << name << " to a pointer" << endl;
     }
 
 
@@ -535,7 +542,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (!tie(name.c_str(), SGRawValuePointer<float>(pointer),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to a pointer";
+              "Failed to tie property " << name << " to a pointer" << endl;
     }
 
 
@@ -557,7 +564,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (!tie(name.c_str(), SGRawValuePointer<double>(pointer),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to a pointer";
+              "Failed to tie property " << name << " to a pointer" << endl;
     }
 
     /* template <class V> void
@@ -601,7 +608,7 @@ class FGPropertyManager:public SGPropertyNode {
       if (!tie(name.c_str(), SGRawValueFunctions<V>(getter, setter),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to functions";
+              "Failed to tie property " << name << " to functions" << endl;
     }
 
 
@@ -634,7 +641,7 @@ class FGPropertyManager:public SGPropertyNode {
                                                                   setter),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to indexed functions";
+              "Failed to tie property " << name << " to indexed functions" << endl;
     }
 
 
@@ -666,7 +673,7 @@ class FGPropertyManager:public SGPropertyNode {
                                     SGRawValueMethods<T,V>(*obj, getter, setter),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to object methods";
+              "Failed to tie property " << name << " to object methods" << endl;
     }
 
 
@@ -702,11 +709,10 @@ class FGPropertyManager:public SGPropertyNode {
                                                                   setter),
                                     useDefault))
         cout <<
-              "Failed to tie property " << name << " to indexed object methods";
+              "Failed to tie property " << name << " to indexed object methods" << endl;
     }
 
 };        
 
-
 #endif // FGPROPERTYMANAGER_H