#ifndef _XMLAUTO_HXX
#define _XMLAUTO_HXX 1
-#include <string>
-#include <vector>
-
-#include <simgear/props/props.hxx>
-#include <simgear/structure/subsystem_mgr.hxx>
-
/**
* @brief Model an autopilot system by implementing a SGSubsystemGroup
*
class FGXMLAutopilotGroup : public SGSubsystemGroup
{
public:
- FGXMLAutopilotGroup();
- void init();
- void reinit();
- void update( double dt );
-private:
- std::vector<std::string> _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() {}
};