X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fkr_87.hxx;h=626b502838405f55fb9b0663258507e82c8c62f5;hb=7c8ad455a327276e09687b380fb4147ae90b6c8c;hp=83b8f6bcfe760818e2259667f48dfe0eb1b34070;hpb=312447c565ec410f52353ba22d305cf470e9ba33;p=flightgear.git diff --git a/src/Instrumentation/kr_87.hxx b/src/Instrumentation/kr_87.hxx index 83b8f6bcf..626b50283 100644 --- a/src/Instrumentation/kr_87.hxx +++ b/src/Instrumentation/kr_87.hxx @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -37,14 +38,15 @@ class SGSampleGroup; class FGKR_87 : public SGSubsystem { +private: SGPropertyNode_ptr bus_power; SGPropertyNode_ptr serviceable; bool need_update; // internal values - string ident; - string trans_ident; + std::string ident; + std::string trans_ident; bool valid; bool inrange; double stn_lon; @@ -100,13 +102,14 @@ class FGKR_87 : public SGSubsystem double _time_before_search_sec; SGSharedPtr _sgr; + simgear::TiedPropertyList _tiedProperties; public: - FGKR_87( SGPropertyNode *node ); ~FGKR_87(); void init (); + void reinit (); void bind (); void unbind (); void update (double dt_sec); @@ -115,7 +118,7 @@ public: void search (); // internal values - inline const string& get_ident() const { return ident; } + inline const std::string& get_ident() const { return ident; } inline bool get_valid() const { return valid; } inline bool get_inrange() const { return inrange; } inline double get_stn_lon() const { return stn_lon; }