X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_props.hxx;h=023d4dbbff4c1f42db65f3f935b5e01c832c7b0b;hb=3b6c2c426d8fa1b72b7563383cecbba8eb0ff018;hp=8f2e95f0f081def7f4caba1078a69718c8e52270;hpb=77e844a78daafbb793e159fec98f842ff83974ef;p=flightgear.git diff --git a/src/Main/fg_props.hxx b/src/Main/fg_props.hxx index 8f2e95f0f..023d4dbbf 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,9 @@ public: void bind (); void unbind (); void update (double dt); + +private: + simgear::TiedPropertyList _tiedProperties; }; @@ -70,6 +73,8 @@ extern bool fgLoadFlight (std::istream &input); extern bool fgLoadProps (const char * path, SGPropertyNode * props, bool in_fg_root = true, int default_mode = 0); +void setLoggingClasses (const char * c); +void setLoggingPriority (const char * p); //////////////////////////////////////////////////////////////////////// @@ -294,7 +299,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. @@ -310,7 +315,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 ); } @@ -420,7 +425,7 @@ extern const char * fgGetString (const char * name, * @return The property's value as a string, or the default value provided. */ inline const char * fgGetString (const std::string & name, - const std::string & defaultValue = string("")) + const std::string & defaultValue = std::string("")) { return fgGetString( name.c_str(), defaultValue.c_str() ); }