25#include <simgear/structure/subsystem_mgr.hxx>
26#include <simgear/props/propsfwd.hxx>
36 SGSharedPtr<const SGCondition> _condition;
37 SGPropertyNode_ptr _enable_prop;
38 std::string * _enable_value;
42 virtual bool configure( SGPropertyNode& cfg_node,
43 const std::string& cfg_name,
44 SGPropertyNode& prop_root );
54 virtual void update(
bool firstTime,
double dt ) = 0;
87 void update(
double dt)
override;
97 virtual bool configure( SGPropertyNode& prop_root,
98 SGPropertyNode& cfg );
bool _honor_passive
a (historic) flag signalling the derived class that it should compute it's internal state but shall n...
virtual void update(bool firstTime, double dt)=0
pure virtual function to be implemented by the derived classes.
virtual bool configure(SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root)
virtual void disabled(double dt)
overideable method being called from the update() method if this component is disabled.
Component()
A constructor for an empty Component.
bool isPropertyEnabled()
check if this component is enabled as configured in the <enable> section
virtual ~Component()
virtual destructor to clean up resources
bool _debug
debug flag, true if this component should generate some useful output on every iteration