X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fclock.hxx;h=f4fcba84641a48d1e85fa79fb1ba6ee61ab26888;hb=caf0138ab35b03bbe7bf367ff2222d0a31be3157;hp=25fcd659fc379940f5b3eee152d11876c1c971b6;hpb=541d41af83da1ae51d7cfb51f19f725c7563276c;p=flightgear.git diff --git a/src/Instrumentation/clock.hxx b/src/Instrumentation/clock.hxx index 25fcd659f..f4fcba846 100644 --- a/src/Instrumentation/clock.hxx +++ b/src/Instrumentation/clock.hxx @@ -9,13 +9,8 @@ #ifndef __INSTRUMENTS_CLOCK_HXX #define __INSTRUMENTS_CLOCK_HXX 1 -#ifndef __cplusplus -# error This library requires C++ -#endif - #include - -#include
+#include /** @@ -31,31 +26,39 @@ * /instrumentation/clock/indicated-sec * /instrumentation/clock/indicated-string */ -class Clock : public FGSubsystem -{ - +class Clock : public SGSubsystem { public: + Clock(SGPropertyNode *node); + virtual ~Clock(); - Clock (); - virtual ~Clock (); - - virtual void init (); - virtual void update (double dt); + virtual void init(); + virtual void update(double dt); private: + std::string _name; + unsigned int _num; bool _is_serviceable; long _gmt_time_sec; long _offset_sec; long _indicated_sec; + long _indicated_min; + long _indicated_hour; + long _local_hour; char _indicated_string[16]; + char _indicated_short_string[16]; + char _local_short_string[16]; long _standstill_offset; SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _offset_node; SGPropertyNode_ptr _sec_node; + SGPropertyNode_ptr _hour_node; + SGPropertyNode_ptr _lhour_node; + SGPropertyNode_ptr _min_node; SGPropertyNode_ptr _string_node; - + SGPropertyNode_ptr _string_node1; + SGPropertyNode_ptr _string_node2; }; #endif // __INSTRUMENTS_CLOCK_HXX