]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/autopilotgroup.hxx
Clean-up cmake (linker) dependencies.
[flightgear.git] / src / Autopilot / autopilotgroup.hxx
index e27a6b16db92521a080438d0e92845ff63090ee1..6e6c1f1968f3a713912be0b08dcb5380c84bad37 100644 (file)
 #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();
+    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() {}
 
 };