X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fclock.hxx;h=307fe469e4038b9304d43f109d541b56bc1edd7c;hb=ad13e4f3b42c53410cb695d2dd0083af77addb2e;hp=b9d0a7da29a757e6d642829b6d13c4038ac5c1c9;hpb=ae5cf05827d6122f9cec7bbe279ecf671b5fcf41;p=flightgear.git diff --git a/src/Instrumentation/clock.hxx b/src/Instrumentation/clock.hxx index b9d0a7da2..307fe469e 100644 --- a/src/Instrumentation/clock.hxx +++ b/src/Instrumentation/clock.hxx @@ -9,10 +9,6 @@ #ifndef __INSTRUMENTS_CLOCK_HXX #define __INSTRUMENTS_CLOCK_HXX 1 -#ifndef __cplusplus -# error This library requires C++ -#endif - #include #include @@ -30,19 +26,17 @@ * /instrumentation/clock/indicated-sec * /instrumentation/clock/indicated-string */ -class Clock : public SGSubsystem -{ - +class Clock : public SGSubsystem { public: + Clock(SGPropertyNode *node); + virtual ~Clock(); - Clock ( SGPropertyNode *node ); - Clock (); - virtual ~Clock (); - - virtual void init (); - virtual void update (double dt); + virtual void init(); + virtual void update(double dt); private: + string _name; + unsigned int _num; bool _is_serviceable; long _gmt_time_sec; @@ -56,9 +50,6 @@ private: char _local_short_string[16]; long _standstill_offset; - string name; - int num; - SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _offset_node; SGPropertyNode_ptr _sec_node; @@ -68,7 +59,6 @@ private: SGPropertyNode_ptr _string_node; SGPropertyNode_ptr _string_node1; SGPropertyNode_ptr _string_node2; - }; #endif // __INSTRUMENTS_CLOCK_HXX