2 // Written by Melchior FRANZ, started 2003.
4 // This file is in the Public Domain and comes with no warranty.
9 #ifndef __INSTRUMENTS_CLOCK_HXX
10 #define __INSTRUMENTS_CLOCK_HXX 1
13 # error This library requires C++
16 #include <simgear/props/props.hxx>
17 #include <simgear/structure/subsystem_mgr.hxx>
25 * /instrumentation/clock/serviceable
26 * /instrumentation/clock/offset-sec
30 * /instrumentation/clock/indicated-sec
31 * /instrumentation/clock/indicated-string
33 class Clock : public SGSubsystem
38 Clock ( SGPropertyNode *node );
43 virtual void update (double dt);
54 char _indicated_string[16];
55 char _indicated_short_string[16];
56 char _local_short_string[16];
57 long _standstill_offset;
62 SGPropertyNode_ptr _serviceable_node;
63 SGPropertyNode_ptr _offset_node;
64 SGPropertyNode_ptr _sec_node;
65 SGPropertyNode_ptr _hour_node;
66 SGPropertyNode_ptr _lhour_node;
67 SGPropertyNode_ptr _min_node;
68 SGPropertyNode_ptr _string_node;
69 SGPropertyNode_ptr _string_node1;
70 SGPropertyNode_ptr _string_node2;
74 #endif // __INSTRUMENTS_CLOCK_HXX