X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAutopilot%2Fautopilotgroup.hxx;h=ef97927c1fdfc58dd873626b6f64750a008a2011;hb=ec2baa1a418b2ba4e45f745ee76d88801feb7e72;hp=e27a6b16db92521a080438d0e92845ff63090ee1;hpb=d558b52cb6df91952963e95e6e6e987133b507bb;p=flightgear.git diff --git a/src/Autopilot/autopilotgroup.hxx b/src/Autopilot/autopilotgroup.hxx index e27a6b16d..ef97927c1 100644 --- a/src/Autopilot/autopilotgroup.hxx +++ b/src/Autopilot/autopilotgroup.hxx @@ -24,12 +24,6 @@ #ifndef _XMLAUTO_HXX #define _XMLAUTO_HXX 1 -#include -#include - -#include -#include - /** * @brief Model an autopilot system by implementing a SGSubsystemGroup * @@ -37,12 +31,13 @@ class FGXMLAutopilotGroup : public SGSubsystemGroup { public: - FGXMLAutopilotGroup(); - void init(); - void reinit(); - void update( double dt ); -private: - std::vector _autopilotNames; + static FGXMLAutopilotGroup * createInstance(const std::string& nodeName); + + void addAutopilotFromFile( const std::string & name, SGPropertyNode_ptr apNode, const char * path ); + virtual void addAutopilot( const std::string & name, SGPropertyNode_ptr apNode, SGPropertyNode_ptr config ) = 0; + virtual void removeAutopilot( const std::string & name ) = 0; +protected: + FGXMLAutopilotGroup() : SGSubsystemGroup() {} };