X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_props.hxx;h=81f4baffb571b2febebff1b0bc32525a9238ba4e;hb=6bf47cd248ed388e6a4dd3ffa2d00977b00b62fb;hp=756ac763b349d48dddd01441f64c5b6137927e1a;hpb=1c5eb0fb3e66c5c3bcc021310c97ea6d208c4b84;p=flightgear.git diff --git a/src/Main/fg_props.hxx b/src/Main/fg_props.hxx index 756ac763b..81f4baffb 100644 --- a/src/Main/fg_props.hxx +++ b/src/Main/fg_props.hxx @@ -9,7 +9,7 @@ #include #include -#include +#include #include
@@ -27,6 +27,18 @@ public: void bind (); void unbind (); void update (double dt); + +private: + simgear::TiedPropertyList _tiedProperties; + + static const char* getLatitudeString (); + static const char* getLongitudeString (); + + static SGConstPropertyNode_ptr _longDeg, _latDeg, _lonLatformat; + + SGPropertyNode_ptr _offset; + SGPropertyNode_ptr _uyear, _umonth, _uday, _uhour, _umin, _usec, _uwday, _udsec; + SGPropertyNode_ptr _ryear, _rmonth, _rday, _rhour, _rmin, _rsec, _rwday, _rdsec; }; @@ -296,7 +308,7 @@ inline int fgGetInt (const std::string & name, int defaultValue = 0) * does not exist. * @return The property's value as a long, or the default value provided. */ -extern int fgGetLong (const char * name, long defaultValue = 0L); +extern long fgGetLong (const char * name, long defaultValue = 0L); /** * Get a long value for a property. @@ -312,7 +324,7 @@ extern int fgGetLong (const char * name, long defaultValue = 0L); * does not exist. * @return The property's value as a long, or the default value provided. */ -inline int fgGetLong (const std::string & name, long defaultValue = 0L) +inline long fgGetLong (const std::string & name, long defaultValue = 0L) { return fgGetLong( name.c_str(), defaultValue ); }