X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAutopilot%2Fautopilotgroup.hxx;h=6e6c1f1968f3a713912be0b08dcb5380c84bad37;hb=da73dd97d3d0e36b6078728ac39f0b98cae46ff7;hp=e27a6b16db92521a080438d0e92845ff63090ee1;hpb=d558b52cb6df91952963e95e6e6e987133b507bb;p=flightgear.git diff --git a/src/Autopilot/autopilotgroup.hxx b/src/Autopilot/autopilotgroup.hxx index e27a6b16d..6e6c1f196 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,12 @@ class FGXMLAutopilotGroup : public SGSubsystemGroup { public: - FGXMLAutopilotGroup(); - void init(); - void reinit(); - void update( double dt ); -private: - std::vector _autopilotNames; + static FGXMLAutopilotGroup * createInstance(); + 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() {} };