User:Bugman/subsystems: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(→‎All subsystems: Sorted output.)
(→‎Tracking down subsystems: Update for the grep output.)
(32 intermediate revisions by the same user not shown)
Line 7: Line 7:
{{collapsible script
{{collapsible script
| type  = Python script
| type  = Python script
| title  = Python script for finding all subsystems within the flightgear and simgear C++ code bases.
| title  = The ''find_subsystems.py'' script for finding all subsystems within the flightgear and simgear C++ code bases.
| intro  = This script requires the ''grep'' Unix command, which can be installed on any OS.  And it must be run with Python3.
| intro  = This script requires the ''grep'' Unix command, which can be installed on any OS.  And it must be run with Python3.
| lang  = python
| lang  = python
Line 36: Line 36:
     """Class for finding all subsystems and subsystem groups."""
     """Class for finding all subsystems and subsystem groups."""


     def __init__(self):
     def __init__(self, output=True):
         """Find all subsystems and subsystem groups."""
         """Find all subsystems and subsystem groups.
 
        @keyword output:    A flag which if False will suppress all output to STDOUT.
        @type output:      bool
        """


         # Command line options.
         # Command line options.
Line 57: Line 61:
         # Add some problematic non-parsable classes.
         # Add some problematic non-parsable classes.
         if self.category_subsystems:
         if self.category_subsystems:
             self.subsystems[1].append(Subsystem("FGAISim", base_class=Subsystem("FGInterface", base_class=Subsystem("SGSubsystem")), declaration_file="src/FDM/SP/AISim.hpp", xml=self.output_xml))
             self.subsystems[1].append(Subsystem("FGAISim", base_class=Subsystem("FGInterface", base_class=Subsystem("SGSubsystem")), static_id="aisim", declaration_file="src/FDM/SP/AISim.hpp", root_path=self.root_path("src/FDM/SP/AISim.hpp"), full_path=self.output_full_path, xml=self.output_xml))


         # Find all SGSubsystem and SGSubsystemGroup derived classes.
         # Find all SGSubsystem and SGSubsystemGroup derived classes.
Line 86: Line 90:
         # Find the subsystem and subsystem group implementation files.
         # Find the subsystem and subsystem group implementation files.
         self.find_implementations()
         self.find_implementations()
        # Text search.
        if self.search_flag:
            self.search()


         # Final summary.
         # Final summary.
         self.summarise()
         if output:
            self.summarise()




Line 119: Line 128:
         for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3] + self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]:
         for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3] + self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]:
             # The repository location.
             # The repository location.
             if subsystem.declaration_file[:7] == "simgear":
             if self.is_simgear(subsystem.declaration_file):
                 path = SIMGEAR_PATH
                 path = SIMGEAR_PATH
             else:
             else:
Line 149: Line 158:
                         lines = pipe.stdout.readlines()
                         lines = pipe.stdout.readlines()
                         if len(lines):
                         if len(lines):
                             subsystem.implementation_file = file_name
                             subsystem.add_implementation_file(file_name)
                             break
                             break


Line 182: Line 191:
                     # Store the implementation file.
                     # Store the implementation file.
                     elif len(files):
                     elif len(files):
                         subsystem.implementation_file = files[0]
                         subsystem.add_implementation_file(files[0])
                         break
                         break


Line 207: Line 216:


         # Find all subsystems or groups.
         # Find all subsystems or groups.
         for file_name, class_name in self.grep(path=path, base_name=base_name):
         for file_name, class_name in self.grep(path=path, base_name=base_name, simgear=True):
             if class_name in skip:
             if class_name in skip:
                 continue
                 continue
             primary.append(Subsystem(class_name, base_class=base, declaration_file=file_name, xml=self.output_xml))
             primary.append(Subsystem(class_name, base_class=base, declaration_file=file_name, root_path=self.root_path(file_name), full_path=self.output_full_path, xml=self.output_xml))


         # Sort the subsystems by name.
         # Sort the subsystems by name.
Line 234: Line 243:
         # Loop over all primary subsystems.
         # Loop over all primary subsystems.
         for subsystem in primary:
         for subsystem in primary:
             for file_name, derived_class in self.grep(path=path, base_name=subsystem.name):
             for file_name, derived_class in self.grep(path=path, base_name=subsystem.name, simgear=self.is_simgear(subsystem.declaration_file)):
                 secondary.append(Subsystem(derived_class, base_class=subsystem, declaration_file=file_name, xml=self.output_xml))
                 secondary.append(Subsystem(derived_class, base_class=subsystem, declaration_file=file_name, root_path=self.root_path(file_name), full_path=self.output_full_path, xml=self.output_xml))


         # Sort the subsystems by name.
         # Sort the subsystems by name.
Line 259: Line 268:
         # Loop over all secondary subsystems.
         # Loop over all secondary subsystems.
         for subsystem in secondary:
         for subsystem in secondary:
             for file_name, derived_class in self.grep(path=path, base_name=subsystem.name):
             for file_name, derived_class in self.grep(path=path, base_name=subsystem.name, simgear=self.is_simgear(subsystem.declaration_file)):
                 tertiary.append(Subsystem(derived_class, base_class=subsystem, declaration_file=file_name, xml=self.output_xml))
                 tertiary.append(Subsystem(derived_class, base_class=subsystem, declaration_file=file_name, root_path=self.root_path(file_name), full_path=self.output_full_path, xml=self.output_xml))


         # Sort all subsystems by name.
         # Sort all subsystems by name.
Line 284: Line 293:
         # Loop over all tertiary subsystems.
         # Loop over all tertiary subsystems.
         for subsystem in tertiary:
         for subsystem in tertiary:
             for file_name, derived_class in self.grep(path=path, base_name=subsystem.name):
             for file_name, derived_class in self.grep(path=path, base_name=subsystem.name, simgear=self.is_simgear(subsystem.declaration_file)):
                 quaternary.append(Subsystem(derived_class, base_class=subsystem, declaration_file=file_name, xml=self.output_xml))
                 quaternary.append(Subsystem(derived_class, base_class=subsystem, declaration_file=file_name, root_path=self.root_path(file_name), full_path=self.output_full_path, xml=self.output_xml))


         # Sort all subsystems by name.
         # Sort all subsystems by name.
Line 291: Line 300:




     def grep(self, path=None, base_name=None):
     def grep(self, path=None, base_name=None, simgear=False):
         """Generator method for finding all classes derived from the given base name and repository.
         """Generator method for finding all classes derived from the given base name and repository.


Line 298: Line 307:
         @keyword base_name: The name of the base class.
         @keyword base_name: The name of the base class.
         @type base_name:    str
         @type base_name:    str
        @keyword simgear:  A flag specifying if the base class belongs to Simgear or not.
        @type simgear:      bool
         @return:            The source file and the name of the derived class.
         @return:            The source file and the name of the derived class.
         @rtype:            str, str
         @rtype:            str, str
Line 303: Line 314:


         # The Unix grep command to run.
         # The Unix grep command to run.
         cmd = 'cd %s; grep -rI %s "public \<%s\>" {{!}} grep -v "%s::"' % (path, self.grep_exclude_dir, base_name, base_name)
         if simgear:
            cmd = 'cd %s; grep -rI %s "public \<%s\>\{{!}}public simgear.*::\<%s\>" {{!}} grep -v "%s::"' % (path, self.grep_exclude_dir, base_name, base_name, base_name)
        else:
            cmd = 'cd %s; grep -rI %s "public \<%s\>" {{!}} grep -v "%s::"' % (path, self.grep_exclude_dir, base_name, base_name)
         pipe = Popen(cmd, shell=True, stdout=PIPE)
         pipe = Popen(cmd, shell=True, stdout=PIPE)


Line 331: Line 345:
             # Generator method.
             # Generator method.
             yield file_name, class_name
             yield file_name, class_name
    def is_simgear(self, file_name):
        """Determine if the file is from simgear.
        @param file_name:  The name of the file.
        @type file_name:    str
        @return:            True if the file is from simgear, False otherwise.
        @rtype:            bool
        """
        # Basic path check.
        if file_name[:7] == "simgear":
            return True
        return False




Line 340: Line 369:


         # The output arguments.
         # The output arguments.
         group = parser.add_mutually_exclusive_group()
         group = parser.add_argument_group("output arguments", "Change the output format.")
         group.add_argument("-t", "--text", default=False, action="store_true", help="Output in plain text format (the default).")
         group.add_argument("-t", "--text", default=False, action="store_true", help="Output in plain text format (the default).")
         group.add_argument("-x", "--xml", default=False, action="store_true", help="Output in XML format.")
         group.add_argument("-x", "--xml", default=False, action="store_true", help="Output in XML format.")
Line 346: Line 375:
         group.add_argument("-d", "--declaration-files", default=False, action="store_true", help="List the files where subsystems and subsystem groups are declared.")
         group.add_argument("-d", "--declaration-files", default=False, action="store_true", help="List the files where subsystems and subsystem groups are declared.")
         group.add_argument("-i", "--implementation-files", default=False, action="store_true", help="List the files where subsystems and subsystem groups are implemented.")
         group.add_argument("-i", "--implementation-files", default=False, action="store_true", help="List the files where subsystems and subsystem groups are implemented.")
        group.add_argument("--classes", default=False, action="store_true", help="List all class names.")
        group.add_argument("-p", "--full-path", default=False, action="store_true", help="For file listings, include the SIMGEAR or FLIGHTGEAR absolute path.")
        # The text search arguments.
        group = parser.add_argument_group("text search arguments", "Search for certain text in the files.")
        group.add_argument("--search", metavar="TEXT", help="Search for the given text in the declaration and implementation files.")
        group.add_argument("--get-subsystem", default=False, action="store_true", help="Search for all get_subsystems() function calls.")
        group.add_argument("-c", "--includes", default=False, action="store_true", help="Extend the search to include included files.")


         # Code base selection.
         # Code base selection.
Line 369: Line 406:
         elif args.files:
         elif args.files:
             self.output_format = "files"
             self.output_format = "files"
        elif args.classes:
            self.output_format = "classes"
         elif args.declaration_files:
         elif args.declaration_files:
             self.output_format = "declaration files"
             self.output_format = "declaration files"
         elif args.implementation_files:
         elif args.implementation_files:
             self.output_format = "implementation files"
             self.output_format = "implementation files"
        self.output_full_path = args.full_path
        # The text search arguments.
        self.search_flag = False
        if args.search or args.get_subsystem:
            self.search_flag = True
        self.search_text = args.search
        self.search_get_subsystem = args.get_subsystem
        self.search_includes = args.includes


         # The code base arguments.
         # The code base arguments.
Line 391: Line 439:




     def summarise(self):
     def root_path(self, file_name):
         """Print out a summary of all found subsystems and subsystem groups."""
         """Determine the root for the given file.


         # Basic file listings.
         @param file_name:  The name of the file.
         if self.output_format in ["files", "declaration files", "implementation files"]:
         @type file_name:   str
            # Concatenate the lists.
        @return:            The root path.
            subsystem_list = []
        @rtype:            str
            if self.category_subsystems:
        """
                subsystem_list += self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3]
             if self.category_groups:
                subsystem_list += self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]


            # Loop over each subsystem, printing out the source files.
        # The relative or absolute path.
            for subsystem in subsystem_list:
        if self.is_simgear(file_name):
                # Code base selections.
            return SIMGEAR_PATH
                if subsystem.declaration_file[:7] == "simgear" and not self.output_simgear:
        else:
                    continue
            return FLIGHTGEAR_PATH
                if subsystem.declaration_file[:7] != "simgear" and not self.output_flightgear:
                    continue


                # Output the source files.
                if self.output_format in ["files", "declaration files"]:
                    print(subsystem.declaration_file)
                if self.output_format in ["files", "implementation files"]:
                    if subsystem.implementation_file:
                        print(subsystem.implementation_file)


            # Skip the rest of the function.
    def search(self):
            return
        """Search for certain text in the declaration and implementation files (and includes)."""


         # XML start.
         # The search text.
         if self.output_xml:
        search_text = self.search_text
             print("<?xml version=\"1.0\"?>")
         if self.search_get_subsystem:
            print("<subsystems>")
             search_text = "get_subsystem"


         # Subsystem and group printouts.
         # Loop over all subsystems and groups.
         labels = ["primary", "secondary", "tertiary", "quaternary"]
         for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3] + self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]:
        labels2 = ["Primary", "Secondary", "Tertiary", "Quaternary"]
             # The repository location.
        classes = ["subsystems", "groups"]
            if self.is_simgear(subsystem.declaration_file):
        for i in range(len(self.subsystems)):
                 path = SIMGEAR_PATH
             for j in range(len(classes)):
            else:
                 if classes[j] == "subsystems":
                path = FLIGHTGEAR_PATH
                    subsystem_list = self.subsystems[i]
                else:
                    subsystem_list = self.groups[i]


                # Nothing in the list.
            # The files to search through.
                 if not len(subsystem_list):
            root = ""
                    continue
            if not subsystem.root_path:
                 root = path + sep
            files = [root+subsystem.declaration_file]
            if subsystem.implementation_file:
                files.append(root+subsystem.implementation_file)


                 # Count all.
            # Loop over each file.
                 counts = self.count(subsystem_list)
            for file_name in files:
                 # Extract the contents.
                 file = open(file_name)
                lines = file.readlines()
                file.close()


                 # Start.
                 # Search.
                 if self.output_xml:
                 for line in lines:
                     print("  <%s_%s count=\"%i\">" % (labels[i], classes[j], counts[j]))
                     if search(search_text, line):
                else:
                        print("%s: %s" % (file_name, line))
                    print("\n%s %s (%i):" % (labels2[i], classes[j], counts[j]))


                # Subsystems.
                for subsystem in subsystem_list:
                    for line in repr(subsystem).split("\n"):
                        print("    %s" % (line))


                # End.
    def summarise(self):
                if self.output_xml:
        """Print out a summary of all found subsystems and subsystem groups."""
                    print(" </%s_%s>" % (labels[i], classes[j]))


         # Counts.
         # Basic file or class listings.
         subsystem_classes = len(self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3])
         if self.output_format in ["files", "declaration files", "implementation files", "classes"]:
        subsystem_groups = len(self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3])
            # Concatenate the lists.
        subsystem_total = subsystem_classes + subsystem_groups
            subsystem_list = []
            if self.category_subsystems:
                subsystem_list += self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3]
            if self.category_groups:
                subsystem_list += self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]


        # Separate simgear and flightgear subsystems.
            # Loop over each subsystem, printing out the source files.
        subsystem_classes_simgear = 0
            for subsystem in subsystem_list:
        subsystem_classes_flightgear = 0
                # Code base selections.
        subsystem_groups_simgear = 0
                if self.is_simgear(subsystem.declaration_file) and not self.output_simgear:
        subsystem_groups_flightgear = 0
                    continue
        for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3]:
                if not self.is_simgear(subsystem.declaration_file) and not self.output_flightgear:
            if subsystem.declaration_file[:7] == "simgear":
                    continue
                subsystem_classes_simgear += 1
 
            else:
                # Output the source files.
                 subsystem_classes_flightgear += 1
                if self.output_format in ["files", "declaration files"]:
        for group in self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]:
                    if subsystem.full_path:
            if group.declaration_file[:7] == "simgear":
                        print("%s%s%s" % (subsystem.root_path, sep, subsystem.declaration_file))
                subsystem_groups_simgear += 1
                    else:
             else:
                        print("%s" % subsystem.declaration_file)
                subsystem_groups_flightgear += 1
                 if self.output_format in ["files", "implementation files"]:
                    if subsystem.implementation_file:
                        if subsystem.full_path:
                            print("%s%s%s" % (subsystem.root_path, sep, subsystem.implementation_file))
                        else:
                            print("%s" % subsystem.implementation_file)
 
                # Output the class name.
                if self.output_format == "classes":
                    print("%s" % subsystem.name)
 
             # Skip the rest of the function.
            return


         # Sums.
         # XML start.
        simgear_total = subsystem_classes_simgear + subsystem_groups_simgear
        flightgear_total = subsystem_classes_flightgear + subsystem_groups_flightgear
         if self.output_xml:
         if self.output_xml:
             print(" <counts>")
             print("<?xml version=\"1.0\"?>")
             print("   <simgear>")
             print("<subsystems>")
            if self.category_subsystems:
 
                print("     <subsystem_classes>%i</subsystem_classes>" % subsystem_classes_simgear)
        # Subsystem and group printouts.
            if self.category_groups:
        labels = ["primary", "secondary", "tertiary", "quaternary"]
                print("     <subsystem_groups>%i</subsystem_groups>" % subsystem_groups_simgear)
        labels2 = ["Primary", "Secondary", "Tertiary", "Quaternary"]
            if self.category_subsystems and self.category_groups:
        classes = ["subsystems", "groups"]
                print("     <total>%i</total>" % simgear_total)
        for i in range(len(self.subsystems)):
            print("   </simgear>")
            for j in range(len(classes)):
            print("   <flightgear>")
                 if classes[j] == "subsystems":
            if self.category_subsystems:
                    subsystem_list = self.subsystems[i]
                print("     <subsystem_classes>%i</subsystem_classes>" % subsystem_classes_flightgear)
                 else:
            if self.category_groups:
                    subsystem_list = self.groups[i]
                print("     <subsystem_groups>%i</subsystem_groups>" % subsystem_groups_flightgear)
 
            if self.category_subsystems and self.category_groups:
                # Nothing in the list.
                print("     <total>%i</total>" % flightgear_total)
                if not len(subsystem_list):
            print("   </flightgear>")
                    continue
            print("   <combined>")
            if self.category_subsystems:
                print("      <subsystem_classes>%i</subsystem_classes>" % subsystem_classes)
            if self.category_groups:
                 print("     <subsystem_groups>%i</subsystem_groups>" % subsystem_groups)
            if self.category_subsystems and self.category_groups:
                 print("      <total>%i</total>" % subsystem_total)
            print("    </combined>")
            print("  </counts>")
        else:
            print("\nCounts: %i subsystem classes (%i flightgear, %i simgear)." % (subsystem_classes, subsystem_classes_flightgear, subsystem_classes_simgear))
            print("Counts: %i subsystem groups (%i flightgear, %i simgear)." % (subsystem_groups, subsystem_groups_flightgear, subsystem_groups_simgear))
            print("Counts: %i subsystem classes and groups (%i flightgear, %i simgear)." % (subsystem_total, flightgear_total, simgear_total))


        # XML end.
                # Count all.
        if self.output_xml:
                counts = self.count(subsystem_list)
            print("</subsystems>")


                # Start.
                if self.output_xml:
                    print("  <%s_%s count=\"%i\">" % (labels[i], classes[j], counts[j]))
                else:
                    print("\n%s %s (%i):" % (labels2[i], classes[j], counts[j]))


                # Subsystems.
                for subsystem in subsystem_list:
                    for line in repr(subsystem).split("\n"):
                        print("    %s" % (line))


class Subsystem:
                # End.
    """Object for storing the information for a specific subsystem."""
                if self.output_xml:
                    print(" </%s_%s>" % (labels[i], classes[j]))


    def __init__(self, name, base_class=None, declaration_file=None, implementation_file=None, xml=False):
        # Counts.
         """Set up the object.
        subsystem_classes = len(self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3])
        subsystem_groups = len(self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3])
         subsystem_total = subsystem_classes + subsystem_groups


         @param name:                The name of the subsystem.
         # Separate simgear and flightgear subsystems.
         @type name:                str
         subsystem_classes_simgear = 0
         @keyword base_class:        The name of the base class.
        subsystem_classes_flightgear = 0
         @type base_class:          str
         subsystem_groups_simgear = 0
         @keyword declaration_file: The name of the file containing the subsystem declaration.
         subsystem_groups_flightgear = 0
        @type declaration_file:     str
         for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3]:
        @keyword implementation_file: The name of the file containing the subsystem declaration.
            if self.is_simgear(subsystem.declaration_file):
         @type implementation_file:     str
                subsystem_classes_simgear += 1
        @keyword xml:               Produce a valid XML representation of the object.
            else:
        @type xml:                 bool
                subsystem_classes_flightgear += 1
        """
         for group in self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]:
            if self.is_simgear(group.declaration_file):
                subsystem_groups_simgear += 1
            else:
                subsystem_groups_flightgear += 1


         # Store the data.
         # Sums.
         self.name = name
         simgear_total = subsystem_classes_simgear + subsystem_groups_simgear
         self.base_class = base_class
         flightgear_total = subsystem_classes_flightgear + subsystem_groups_flightgear
         self.declaration_file = declaration_file
         if self.output_xml:
        self.implementation_file = implementation_file
            print("  <counts>")
        self.xml = xml
            print("    <simgear>")
 
            if self.category_subsystems:
 
                print("      <subsystem_classes>%i</subsystem_classes>" % subsystem_classes_simgear)
    def __repr__(self):
            if self.category_groups:
        """Overwrite the string representation of the object.
                print("     <subsystem_groups>%i</subsystem_groups>" % subsystem_groups_simgear)
 
            if self.category_subsystems and self.category_groups:
        @return:    The string representation.
                print("     <total>%i</total>" % simgear_total)
        @rtype:     str
            print("   </simgear>")
        """
            print("    <flightgear>")
 
            if self.category_subsystems:
        # The inheritance chain.
                print("     <subsystem_classes>%i</subsystem_classes>" % subsystem_classes_flightgear)
        inheritance = ""
            if self.category_groups:
        if self.base_class:
                print("     <subsystem_groups>%i</subsystem_groups>" % subsystem_groups_flightgear)
            inheritance += "%s" % self.base_class.name
             if self.category_subsystems and self.category_groups:
             if self.base_class.base_class:
                 print("     <total>%i</total>" % flightgear_total)
                 inheritance += " : %s" % self.base_class.base_class.name
            print("    </flightgear>")
                if self.base_class.base_class.base_class:
            print("    <combined>")
                    inheritance += " : %s" % self.base_class.base_class.base_class.name
            if self.category_subsystems:
                    if self.base_class.base_class.base_class.base_class:
                print("     <subsystem_classes>%i</subsystem_classes>" % subsystem_classes)
                        inheritance += " : %s" % self.base_class.base_class.base_class.base_class.name
            if self.category_groups:
                        if self.base_class.base_class.base_class.base_class.base_class:
                print("     <subsystem_groups>%i</subsystem_groups>" % subsystem_groups)
                            inheritance += " : %s" % self.base_class.base_class.base_class.base_class.base_class.name
            if self.category_subsystems and self.category_groups:
 
                print("     <total>%i</total>" % subsystem_total)
         # XML representation.
            print("    </combined>")
        if self.xml:
            print("  </counts>")
             return self.__repr_xml__(inheritance)
         else:
            print("\nCounts: %i subsystem classes (%i flightgear, %i simgear)." % (subsystem_classes, subsystem_classes_flightgear, subsystem_classes_simgear))
            print("Counts: %i subsystem groups (%i flightgear, %i simgear)." % (subsystem_groups, subsystem_groups_flightgear, subsystem_groups_simgear))
             print("Counts: %i subsystem classes and groups (%i flightgear, %i simgear)." % (subsystem_total, flightgear_total, simgear_total))


         # The subsystem name and inheritance chain.
         # XML end.
         string = "<%s : %s" % (self.name, inheritance)
         if self.output_xml:
            print("</subsystems>")


        # Add the declaration file name.
        string += " declared in \"%s\"" % self.declaration_file


        # Add the implementation file name.
        if self.implementation_file:
            string += ", implemented in \"%s\"" % self.implementation_file


        # Closure.
class Subsystem:
        string += ">"
    """Object for storing the information for a specific subsystem."""


        # Return the representation.
     def __init__(self, name, base_class=None, static_id=None, declaration_file=None, implementation_file=None, root_path=None, full_path=False, xml=False):
        return string
         """Set up the object.
 
 
     def __repr_xml__(self, inheritance=""):
         """Create a XML representation of the object.


         @keyword inheritance:  The string representation of the inheritance chain.
        @param name:                    The name of the subsystem.
         @type inheritance:      str
        @type name:                    str
         @return:                The XML representation.
        @keyword base_class:            The name of the base class.
         @rtype:                 str
        @type base_class:              str
        @keyword static_id:            The value returned by staticSubsystemClassId().
        @type static_id:                str
        @keyword declaration_file:      The name of the file containing the subsystem declaration.
        @type declaration_file:        str
         @keyword implementation_file:  The name of the file containing the subsystem implementation.
         @type implementation_file:      str or None
        @keyword root_path:            The root path to the files.
        @type root_path:                str
        @keyword full_path:            A flag which if True will cause the full paths to be shown.
         @type full_path:                bool
        @keyword xml:                  Produce a valid XML representation of the object.
         @type xml:                     bool
         """
         """


         # Start.
         # Store the data.
         string = "<%s>\n" % self.name
         self.name = name
        self.base_class = base_class
        self.staticSubsystemClassId = static_id
        self.implementation_file = implementation_file
        self.declaration_file = declaration_file
        self.root_path = root_path
        self.full_path = full_path
        self.xml = xml


         # The inheritance chain.
         # Data extraction.
         string += "  <inheritance>%s</inheritance>\n" % inheritance
         self.info_extraction()


        # Add the declaration file name.
        string += "  <declaration>%s</declaration>\n" % self.declaration_file


        # Add the implementation file name.
    def __repr__(self):
        if self.implementation_file:
        """Overwrite the string representation of the object.
            string += " <implementation>%s</implementation>\n" % self.implementation_file


        # End.
         @return:    The string representation.
        string += "</%s>" % self.name
         @rtype:    str
 
        # Return the string.
        return string
 
 
    def is_group(self):
        """Determine this is a subsystem or subsystem group.
 
         @return:    True if this is a subsystem group.
         @rtype:    bool
         """
         """


         # Chase the base name as far as possible.
         # The inheritance chain.
         if self.name == "SGSubsystemGroup":
         inheritance = ""
            return True
         if self.base_class:
         if self.base_class.name == "SGSubsystemGroup":
            inheritance += "%s" % self.base_class.name
             return True
             if self.base_class.base_class:
        if self.base_class.base_class:
                inheritance += " : %s" % self.base_class.base_class.name
            if self.base_class.base_class.name == "SGSubsystemGroup":
                 if self.base_class.base_class.base_class:
                 return True
                    inheritance += " : %s" % self.base_class.base_class.base_class.name
            if self.base_class.base_class.base_class:
                     if self.base_class.base_class.base_class.base_class:
                if self.base_class.base_class.base_class.name == "SGSubsystemGroup":
                        inheritance += " : %s" % self.base_class.base_class.base_class.base_class.name
                     return True
                         if self.base_class.base_class.base_class.base_class.base_class:
                if self.base_class.base_class.base_class.base_class:
                            inheritance += " : %s" % self.base_class.base_class.base_class.base_class.base_class.name
                    if self.base_class.base_class.base_class.base_class.name == "SGSubsystemGroup":
                         return True
                    if self.base_class.base_class.base_class.base_class.base_class:
                        if self.base_class.base_class.base_class.base_class.name.base_class.name == "SGSubsystemGroup":
                            return True


         # A normal subsystem.
         # XML representation.
         return False
        if self.xml:
            return self.__repr_xml__(inheritance)
 
        # The subsystem name and inheritance chain.
         string = "<%s : %s" % (self.name, inheritance)


        # Add the static class ID.
        if self.staticSubsystemClassId:
            string += " staticSubsystemClassId is \"%s\"" % self.staticSubsystemClassId


        # Add the declaration file name.
        file = self.declaration_file
        if self.full_path:
            file = self.root_path + sep + self.declaration_file
        string += " declared in \"%s\"" % file


# Instantiate the class if run as a script.
        # Add the implementation file name.
if __name__ == "__main__":
        if self.implementation_file:
    FindSubsystems()
            file = self.implementation_file
}}
            if self.full_path:
                file = self.root_path + sep + self.implementation_file
            string += ", implemented in \"%s\"" % file
 
        # Closure.
        string += ">"


=== All subsystems ===
        # Return the representation.
        return string


The result is:


{{collapsible script
    def __repr_xml__(self, inheritance=""):
| type  = Text output
        """Create a XML representation of the object.
| title  = A listing of all flightgear and simgear subsystems and subsystem groups.
| intro  = Output from the Python script for finding all subsystems within the flightgear and simgear C++ code bases.  The error output from the script was redirected and hence not shown below.
| lang  = c
| script =
Primary subsystems (91):
    <ADF : SGSubsystem declared in "src/Instrumentation/adf.hxx", implemented in "src/Instrumentation/adf.cxx">
    <AirportDynamicsManager : SGSubsystem declared in "src/Airports/airportdynamicsmanager.hxx", implemented in "src/Airports/airportdynamicsmanager.cxx">
    <AirspeedIndicator : SGSubsystem declared in "src/Instrumentation/airspeed_indicator.hxx", implemented in "src/Instrumentation/airspeed_indicator.cxx">
    <Altimeter : SGSubsystem declared in "src/Instrumentation/altimeter.hxx", implemented in "src/Instrumentation/altimeter.cxx">
    <AreaSampler : SGSubsystem declared in "src/Environment/terrainsampler.cxx", implemented in "src/Environment/terrainsampler.cxx">
    <AttitudeIndicator : SGSubsystem declared in "src/Instrumentation/attitude_indicator.hxx", implemented in "src/Instrumentation/attitude_indicator.cxx">
    <Clock : SGSubsystem declared in "src/Instrumentation/clock.hxx", implemented in "src/Instrumentation/clock.cxx">
    <CommRadio : SGSubsystem declared in "src/Instrumentation/commradio.hxx">
    <Component : SGSubsystem declared in "src/Autopilot/component.hxx", implemented in "src/Autopilot/component.cxx">
    <DCLGPS : SGSubsystem declared in "src/Instrumentation/dclgps.hxx", implemented in "src/Instrumentation/dclgps.cxx">
    <DME : SGSubsystem declared in "src/Instrumentation/dme.hxx", implemented in "src/Instrumentation/dme.cxx">
    <Ephemeris : SGSubsystem declared in "src/Environment/ephemeris.hxx", implemented in "src/Environment/ephemeris.cxx">
    <FDMShell : SGSubsystem declared in "src/FDM/fdm_shell.hxx", implemented in "src/FDM/fdm_shell.cxx">
    <FGAIManager : SGSubsystem declared in "src/AIModel/AIManager.hxx", implemented in "src/AIModel/AIManager.cxx">
    <FGATCManager : SGSubsystem declared in "src/ATC/atc_mgr.hxx", implemented in "src/ATC/atc_mgr.cxx">
    <FGAircraftModel : SGSubsystem declared in "src/Model/acmodel.hxx", implemented in "src/Model/acmodel.cxx">
    <FGCom : SGSubsystem declared in "src/Network/fgcom.hxx", implemented in "src/Network/fgcom.cxx">
    <FGControls : SGSubsystem declared in "src/Aircraft/controls.hxx", implemented in "src/Aircraft/controls.cxx">
    <FGDNSClient : SGSubsystem declared in "src/Network/DNSClient.hxx", implemented in "src/Network/DNSClient.cxx">
    <FGElectricalSystem : SGSubsystem declared in "src/Systems/electrical.hxx", implemented in "src/Systems/electrical.cxx">
    <FGEventInput : SGSubsystem declared in "src/Input/FGEventInput.hxx", implemented in "src/Input/FGEventInput.cxx">
    <FGFlightHistory : SGSubsystem declared in "src/Aircraft/FlightHistory.hxx", implemented in "src/Aircraft/FlightHistory.cxx">
    <FGHTTPClient : SGSubsystem declared in "src/Network/HTTPClient.hxx", implemented in "src/Network/HTTPClient.cxx">
    <FGHttpd : SGSubsystem declared in "src/Network/http/httpd.hxx">
    <FGIO : SGSubsystem declared in "src/Main/fg_io.hxx", implemented in "src/Main/fg_io.cxx">
    <FGInterface : SGSubsystem declared in "src/FDM/flight.hxx", implemented in "src/FDM/flight.cxx">
    <FGJoystickInput : SGSubsystem declared in "src/Input/FGJoystickInput.hxx", implemented in "src/Input/FGJoystickInput.cxx">
    <FGKR_87 : SGSubsystem declared in "src/Instrumentation/kr_87.hxx", implemented in "src/Instrumentation/kr_87.cxx">
    <FGKeyboardInput : SGSubsystem declared in "src/Input/FGKeyboardInput.hxx", implemented in "src/Input/FGKeyboardInput.cxx">
    <FGLight : SGSubsystem declared in "src/Time/light.hxx", implemented in "src/Time/light.cxx">
    <FGLogger : SGSubsystem declared in "src/Main/logger.hxx", implemented in "src/Main/logger.cxx">
    <FGMagVarManager : SGSubsystem declared in "src/Environment/magvarmanager.hxx", implemented in "src/Environment/magvarmanager.cxx">
    <FGMarkerBeacon : SGSubsystem declared in "src/Instrumentation/marker_beacon.hxx", implemented in "src/Instrumentation/marker_beacon.cxx">
    <FGModelMgr : SGSubsystem declared in "src/Model/modelmgr.hxx", implemented in "src/Model/modelmgr.cxx">
    <FGMouseInput : SGSubsystem declared in "src/Input/FGMouseInput.hxx", implemented in "src/Input/FGMouseInput.cxx">
    <FGMultiplayMgr : SGSubsystem declared in "src/MultiPlayer/multiplaymgr.hxx", implemented in "src/MultiPlayer/multiplaymgr.cxx">
    <FGNasalSys : SGSubsystem declared in "src/Scripting/NasalSys.hxx", implemented in "src/Scripting/NasalSys.cxx">
    <FGNavRadio : SGSubsystem declared in "src/Instrumentation/navradio.hxx", implemented in "src/Instrumentation/navradio.cxx">
    <FGPanel : SGSubsystem declared in "utils/fgpanel/FGPanel.hxx", implemented in "utils/fgpanel/FGPanel.cxx">
    <FGPanelProtocol : SGSubsystem declared in "utils/fgpanel/FGPanelProtocol.hxx", implemented in "utils/fgpanel/FGPanelProtocol.cxx">
    <FGPrecipitationMgr : SGSubsystem declared in "src/Environment/precipitation_mgr.hxx", implemented in "src/Environment/precipitation_mgr.cxx">
    <FGProperties : SGSubsystem declared in "src/Main/fg_props.hxx", implemented in "src/Main/fg_props.cxx">
    <FGReplay : SGSubsystem declared in "src/Aircraft/replay.hxx", implemented in "src/Aircraft/replay.cxx">
    <FGRidgeLift : SGSubsystem declared in "src/Environment/ridge_lift.hxx", implemented in "src/Environment/ridge_lift.cxx">
    <FGRouteMgr : SGSubsystem declared in "src/Autopilot/route_mgr.hxx", implemented in "src/Autopilot/route_mgr.cxx">
    <FGScenery : SGSubsystem declared in "src/Scenery/scenery.hxx", implemented in "src/Scenery/scenery.cxx">
    <FGSoundManager : SGSubsystem declared in "src/Sound/soundmanager.hxx", implemented in "src/Sound/soundmanager.cxx">
    <FGSubmodelMgr : SGSubsystem declared in "src/AIModel/submodel.hxx", implemented in "src/AIModel/submodel.cxx">
    <FGSubsystemExample : SGSubsystem declared in "docs-mini/README.introduction", implemented in "docs-mini/README.introduction">
    <FGTrafficManager : SGSubsystem declared in "src/Traffic/TrafficMgr.hxx", implemented in "src/Traffic/TrafficMgr.cxx">
    <FGViewMgr : SGSubsystem declared in "src/Viewer/viewmgr.hxx", implemented in "src/Viewer/viewmgr.cxx">
    <FGVoiceMgr : SGSubsystem declared in "src/Sound/voice.hxx", implemented in "src/Sound/voice.cxx">
    <GPS : SGSubsystem declared in "src/Instrumentation/gps.hxx", implemented in "src/Instrumentation/gps.cxx">
    <GSDI : SGSubsystem declared in "src/Instrumentation/gsdi.hxx", implemented in "src/Instrumentation/gsdi.cxx">
    <GUIMgr : SGSubsystem declared in "src/Canvas/gui_mgr.hxx", implemented in "src/Canvas/gui_mgr.cxx">
    <GroundRadar : SGSubsystem declared in "src/Cockpit/groundradar.hxx", implemented in "src/Cockpit/groundradar.cxx">
    <HUD : SGSubsystem declared in "src/Instrumentation/HUD/HUD.hxx", implemented in "src/Instrumentation/HUD/HUD.cxx">
    <HeadingIndicator : SGSubsystem declared in "src/Instrumentation/heading_indicator.hxx", implemented in "src/Instrumentation/heading_indicator.cxx">
    <HeadingIndicatorDG : SGSubsystem declared in "src/Instrumentation/heading_indicator_dg.hxx", implemented in "src/Instrumentation/heading_indicator_dg.cxx">
    <HeadingIndicatorFG : SGSubsystem declared in "src/Instrumentation/heading_indicator_fg.hxx", implemented in "src/Instrumentation/heading_indicator_fg.cxx">
    <InstVerticalSpeedIndicator : SGSubsystem declared in "src/Instrumentation/inst_vertical_speed_indicator.hxx", implemented in "src/Instrumentation/inst_vertical_speed_indicator.cxx">
    <LayerInterpolateController : SGSubsystem declared in "src/Environment/environment_ctrl.hxx">
    <MK_VIII : SGSubsystem declared in "src/Instrumentation/mk_viii.hxx", implemented in "src/Instrumentation/mk_viii.cxx">
    <MagCompass : SGSubsystem declared in "src/Instrumentation/mag_compass.hxx", implemented in "src/Instrumentation/mag_compass.cxx">
    <MasterReferenceGyro : SGSubsystem declared in "src/Instrumentation/mrg.hxx", implemented in "src/Instrumentation/mrg.cxx">
    <NavDisplay : SGSubsystem declared in "src/Cockpit/NavDisplay.hxx", implemented in "src/Cockpit/NavDisplay.cxx">
    <NavRadio : SGSubsystem declared in "src/Instrumentation/newnavradio.hxx">
    <NewGUI : SGSubsystem declared in "src/GUI/new_gui.hxx", implemented in "src/GUI/new_gui.cxx">
    <PerformanceDB : SGSubsystem declared in "src/AIModel/performancedb.hxx", implemented in "src/AIModel/performancedb.cxx">
    <PitotSystem : SGSubsystem declared in "src/Systems/pitot.hxx", implemented in "src/Systems/pitot.cxx">
    <PropertyBasedMgr : SGSubsystem declared in "simgear/props/PropertyBasedMgr.hxx", implemented in "simgear/props/PropertyBasedMgr.cxx">
    <PropertyInterpolationMgr : SGSubsystem declared in "simgear/props/PropertyInterpolationMgr.hxx", implemented in "simgear/props/PropertyInterpolationMgr.cxx">
    <RadarAltimeter : SGSubsystem declared in "src/Instrumentation/rad_alt.hxx", implemented in "src/Instrumentation/rad_alt.cxx">
    <RealWxController : SGSubsystem declared in "src/Environment/realwx_ctrl.hxx", implemented in "src/Environment/realwx_ctrl.cxx">
    <SGEventMgr : SGSubsystem declared in "simgear/structure/event_mgr.hxx", implemented in "simgear/structure/event_mgr.cxx">
    <SGInterpolator : SGSubsystem declared in "simgear/misc/interpolator.hxx", implemented in "simgear/misc/interpolator.cxx">
    <SGPerformanceMonitor : SGSubsystem declared in "simgear/structure/SGPerfMon.hxx", implemented in "simgear/structure/SGPerfMon.cxx">
    <SGSoundMgr : SGSubsystem declared in "simgear/sound/soundmgr.hxx">
    <SGSubsystemMgr : SGSubsystem declared in "simgear/structure/subsystem_mgr.hxx", implemented in "simgear/structure/subsystem_mgr.cxx">
    <SGTerraSync : SGSubsystem declared in "simgear/scene/tsync/terrasync.hxx", implemented in "simgear/scene/tsync/terrasync.cxx">
    <SlipSkidBall : SGSubsystem declared in "src/Instrumentation/slip_skid_ball.hxx", implemented in "src/Instrumentation/slip_skid_ball.cxx">
    <StaticSystem : SGSubsystem declared in "src/Systems/static.hxx", implemented in "src/Systems/static.cxx">
    <TACAN : SGSubsystem declared in "src/Instrumentation/tacan.hxx", implemented in "src/Instrumentation/tacan.cxx">
    <TCAS : SGSubsystem declared in "src/Instrumentation/tcas.hxx", implemented in "src/Instrumentation/tcas.cxx">
    <TimeManager : SGSubsystem declared in "src/Time/TimeManager.hxx", implemented in "src/Time/TimeManager.cxx">
    <Transponder : SGSubsystem declared in "src/Instrumentation/transponder.hxx", implemented in "src/Instrumentation/transponder.cxx">
    <TurnIndicator : SGSubsystem declared in "src/Instrumentation/turn_indicator.hxx", implemented in "src/Instrumentation/turn_indicator.cxx">
    <VacuumSystem : SGSubsystem declared in "src/Systems/vacuum.hxx", implemented in "src/Systems/vacuum.cxx">
    <VerticalSpeedIndicator : SGSubsystem declared in "src/Instrumentation/vertical_speed_indicator.hxx", implemented in "src/Instrumentation/vertical_speed_indicator.cxx">
    <View : SGSubsystem declared in "src/Viewer/view.hxx", implemented in "src/Viewer/view.cxx">
    <wxRadarBg : SGSubsystem declared in "src/Cockpit/wxradar.hxx", implemented in "src/Cockpit/wxradar.cxx">


Primary groups (8):
        @keyword inheritance:   The string representation of the inheritance chain.
    <Autopilot : SGSubsystemGroup : SGSubsystem declared in "src/Autopilot/autopilot.hxx", implemented in "src/Autopilot/autopilot.cxx">
        @type inheritance:     str
    <CockpitDisplayManager : SGSubsystemGroup : SGSubsystem declared in "src/Cockpit/cockpitDisplayManager.hxx", implemented in "src/Cockpit/cockpitDisplayManager.cxx">
        @return:               The XML representation.
    <FGEnvironmentMgr : SGSubsystemGroup : SGSubsystem declared in "src/Environment/environment_mgr.hxx", implemented in "src/Environment/environment_mgr.cxx">
        @rtype:                 str
    <FGInput : SGSubsystemGroup : SGSubsystem declared in "src/Input/input.hxx", implemented in "src/Input/input.cxx">
        """
    <FGInstrumentMgr : SGSubsystemGroup : SGSubsystem declared in "src/Instrumentation/instrument_mgr.hxx", implemented in "src/Instrumentation/instrument_mgr.cxx">
    <FGSystemMgr : SGSubsystemGroup : SGSubsystem declared in "src/Systems/system_mgr.hxx", implemented in "src/Systems/system_mgr.cxx">
    <FGXMLAutopilotGroup : SGSubsystemGroup : SGSubsystem declared in "src/Autopilot/autopilotgroup.hxx", implemented in "src/Autopilot/autopilotgroup.cxx">
    <TerrainSampler : SGSubsystemGroup : SGSubsystem declared in "src/Environment/terrainsampler.hxx">


Secondary subsystems (28):
        # Start.
    <AnalogComponent : Component : SGSubsystem declared in "src/Autopilot/analogcomponent.hxx", implemented in "src/Autopilot/analogcomponent.cxx">
        string = "<%s>\n" % self.name
    <BasicRealWxController : RealWxController : SGSubsystem declared in "src/Environment/realwx_ctrl.cxx", implemented in "src/Environment/realwx_ctrl.cxx">
    <CanvasMgr : PropertyBasedMgr : SGSubsystem declared in "simgear/canvas/CanvasMgr.hxx", implemented in "simgear/canvas/CanvasMgr.cxx">
    <CommRadioImpl : CommRadio : SGSubsystem declared in "src/Instrumentation/commradio.cxx", implemented in "src/Instrumentation/commradio.cxx">
    <DigitalComponent : Component : SGSubsystem declared in "src/Autopilot/digitalcomponent.hxx", implemented in "src/Autopilot/digitalcomponent.cxx">
    <FGACMS : FGInterface : SGSubsystem declared in "src/FDM/SP/ACMS.hxx", implemented in "src/FDM/SP/ACMS.cxx">
    <FGADA : FGInterface : SGSubsystem declared in "src/FDM/SP/ADA.hxx", implemented in "src/FDM/SP/ADA.cxx">
    <FGAISim : FGInterface : SGSubsystem declared in "src/FDM/SP/AISim.hpp", implemented in "src/FDM/SP/AISim.cpp">
    <FGBalloonSim : FGInterface : SGSubsystem declared in "src/FDM/SP/Balloon.h", implemented in "src/FDM/SP/Balloon.cxx">
    <FGExternalNet : FGInterface : SGSubsystem declared in "src/FDM/ExternalNet/ExternalNet.hxx", implemented in "src/FDM/ExternalNet/ExternalNet.cxx">
    <FGExternalPipe : FGInterface : SGSubsystem declared in "src/FDM/ExternalPipe/ExternalPipe.hxx", implemented in "src/FDM/ExternalPipe/ExternalPipe.cxx">
    <FGHIDEventInput : FGEventInput : SGSubsystem declared in "src/Input/FGHIDEventInput.hxx", implemented in "src/Input/FGHIDEventInput.cxx">
    <FGJSBsim : FGInterface : SGSubsystem declared in "src/FDM/JSBSim/JSBSim.hxx", implemented in "src/FDM/JSBSim/JSBSim.cxx">
    <FGLaRCsim : FGInterface : SGSubsystem declared in "src/FDM/LaRCsim/LaRCsim.hxx", implemented in "src/FDM/LaRCsim/LaRCsim.cxx">
    <FGLinuxEventInput : FGEventInput : SGSubsystem declared in "src/Input/FGLinuxEventInput.hxx", implemented in "src/Input/FGLinuxEventInput.cxx">
    <FGMacOSXEventInput : FGEventInput : SGSubsystem declared in "src/Input/FGMacOSXEventInput.hxx", implemented in "src/Input/FGMacOSXEventInput.cxx">
    <FGMagicCarpet : FGInterface : SGSubsystem declared in "src/FDM/SP/MagicCarpet.hxx", implemented in "src/FDM/SP/MagicCarpet.cxx">
    <FGNullFDM : FGInterface : SGSubsystem declared in "src/FDM/NullFDM.hxx", implemented in "src/FDM/NullFDM.cxx">
    <FGReadablePanel : FGPanel : SGSubsystem declared in "utils/fgpanel/panel_io.hxx", implemented in "utils/fgpanel/panel_io.cxx">
    <FGSoundManager : SGSoundMgr : SGSubsystem declared in "src/Sound/soundmanager.hxx", implemented in "src/Sound/soundmanager.cxx">
    <FGUFO : FGInterface : SGSubsystem declared in "src/FDM/UFO.hxx", implemented in "src/FDM/UFO.cxx">
    <KLN89 : DCLGPS : SGSubsystem declared in "src/Instrumentation/KLN89/kln89.hxx", implemented in "src/Instrumentation/KLN89/kln89.cxx">
    <LayerInterpolateControllerImplementation : LayerInterpolateController : SGSubsystem declared in "src/Environment/environment_ctrl.cxx", implemented in "src/Environment/environment_ctrl.cxx">
    <MongooseHttpd : FGHttpd : SGSubsystem declared in "src/Network/http/httpd.cxx", implemented in "src/Network/http/httpd.cxx">
    <NavRadioImpl : NavRadio : SGSubsystem declared in "src/Instrumentation/newnavradio.cxx", implemented in "src/Instrumentation/newnavradio.cxx">
    <StateMachineComponent : Component : SGSubsystem declared in "src/Autopilot/autopilot.cxx", implemented in "src/Autopilot/autopilot.cxx">
    <YASim : FGInterface : SGSubsystem declared in "src/FDM/YASim/YASim.hxx", implemented in "src/FDM/YASim/YASim.cxx">
    <agRadar : wxRadarBg : SGSubsystem declared in "src/Cockpit/agradar.hxx", implemented in "src/Cockpit/agradar.cxx">


Secondary groups (2):
        # The inheritance chain.
    <FGXMLAutopilotGroupImplementation : FGXMLAutopilotGroup : SGSubsystemGroup : SGSubsystem declared in "src/Autopilot/autopilotgroup.cxx", implemented in "src/Autopilot/autopilotgroup.cxx">
        string += "  <inheritance>%s</inheritance>\n" % inheritance
    <TerrainSamplerImplementation : TerrainSampler : SGSubsystemGroup : SGSubsystem declared in "src/Environment/terrainsampler.cxx", implemented in "src/Environment/terrainsampler.cxx">


Tertiary subsystems (6):
        # Add the static class ID.
    <DigitalFilter : AnalogComponent : Component : SGSubsystem declared in "src/Autopilot/digitalfilter.hxx", implemented in "src/Autopilot/digitalfilter.cxx">
        if self.staticSubsystemClassId:
    <Logic : DigitalComponent : Component : SGSubsystem declared in "src/Autopilot/logic.hxx", implemented in "src/Autopilot/logic.cxx">
            string += " <staticSubsystemClassId>%s</staticSubsystemClassId>\n" % self.staticSubsystemClassId
    <NoaaMetarRealWxController : BasicRealWxController : RealWxController : SGSubsystem declared in "src/Environment/realwx_ctrl.cxx", implemented in "src/Environment/realwx_ctrl.cxx">
    <PIDController : AnalogComponent : Component : SGSubsystem declared in "src/Autopilot/pidcontroller.hxx", implemented in "src/Autopilot/pidcontroller.cxx">
    <PISimpleController : AnalogComponent : Component : SGSubsystem declared in "src/Autopilot/pisimplecontroller.hxx", implemented in "src/Autopilot/pisimplecontroller.cxx">
    <Predictor : AnalogComponent : Component : SGSubsystem declared in "src/Autopilot/predictor.hxx", implemented in "src/Autopilot/predictor.cxx">


Quaternary subsystems (1):
        # Add the declaration file name.
    <FlipFlop : Logic : DigitalComponent : Component : SGSubsystem declared in "src/Autopilot/flipflop.hxx", implemented in "src/Autopilot/flipflop.cxx">
        file = self.declaration_file
        if self.full_path:
            file = self.root_path + sep + self.declaration_file
        string += " <declaration>%s</declaration>\n" % file


Counts: 126 subsystem classes (117 flightgear, 9 simgear).
        # Add the implementation file name.
Counts: 10 subsystem groups (10 flightgear, 0 simgear).
        if self.implementation_file:
Counts: 136 subsystem classes and groups (127 flightgear, 9 simgear).
            file = self.implementation_file
}}
            if self.full_path:
                file = self.root_path + sep + self.implementation_file
            string += "  <implementation>%s</implementation>\n" % file


{{collapsible script
        # End.
| type  = XML output
        string += "</%s>" % self.name
| title  = A listing of all flightgear and simgear subsystems and subsystem groups.
 
| intro  = XML output from the Python script for finding all subsystems within the flightgear and simgear C++ code bases. The error output from the script was redirected and hence not shown below.
        # Return the string.
| lang  = xml
        return string
| script =  
 
<?xml version="1.0"?>
 
<subsystems>
    def add_implementation_file(self, implementation_file=None):
  <primary_subsystems count="91">
        """Set up the object.
    <ADF>
 
      <inheritance>SGSubsystem</inheritance>
        @keyword implementation_file:  The path of the file containing the subsystem implementation.
      <declaration>src/Instrumentation/adf.hxx</declaration>
        @type implementation_file:      str or None
      <implementation>src/Instrumentation/adf.cxx</implementation>
        """
    </ADF>
 
    <AirportDynamicsManager>
        # Store the file.
      <inheritance>SGSubsystem</inheritance>
        self.implementation_file = implementation_file
      <declaration>src/Airports/airportdynamicsmanager.hxx</declaration>
 
      <implementation>src/Airports/airportdynamicsmanager.cxx</implementation>
 
    </AirportDynamicsManager>
    def info_extraction(self):
     <AirspeedIndicator>
        """Extract subsystem information from the source files."""
      <inheritance>SGSubsystem</inheritance>
 
      <declaration>src/Instrumentation/airspeed_indicator.hxx</declaration>
        # No declaration.
      <implementation>src/Instrumentation/airspeed_indicator.cxx</implementation>
        if not self.declaration_file:
    </AirspeedIndicator>
            return
    <Altimeter>
 
      <inheritance>SGSubsystem</inheritance>
        # Open the declaration file.
      <declaration>src/Instrumentation/altimeter.hxx</declaration>
        file = open(self.root_path + sep + self.declaration_file)
      <implementation>src/Instrumentation/altimeter.cxx</implementation>
        lines = file.readlines()
    </Altimeter>
        file.close()
    <AreaSampler>
 
      <inheritance>SGSubsystem</inheritance>
        # Loop over the file contents.
      <declaration>src/Environment/terrainsampler.cxx</declaration>
        in_decl = False
      <implementation>src/Environment/terrainsampler.cxx</implementation>
        for i in range(len(lines)):
    </AreaSampler>
            # The start of the declaration.
    <AttitudeIndicator>
            if search("^class %s : " % self.name, lines[i]):
      <inheritance>SGSubsystem</inheritance>
                in_decl = True
      <declaration>src/Instrumentation/attitude_indicator.hxx</declaration>
                continue
      <implementation>src/Instrumentation/attitude_indicator.cxx</implementation>
 
     </AttitudeIndicator>
            # Skip the line.
    <Clock>
            if not in_decl:
      <inheritance>SGSubsystem</inheritance>
                continue
      <declaration>src/Instrumentation/clock.hxx</declaration>
 
      <implementation>src/Instrumentation/clock.cxx</implementation>
            # Out of the declaration.
    </Clock>
            if search("^};", lines[i]):
    <CommRadio>
                in_decl = False
      <inheritance>SGSubsystem</inheritance>
                continue
      <declaration>src/Instrumentation/commradio.hxx</declaration>
 
    </CommRadio>
            # The static subsystem class ID.
    <Component>
            if search("static const char\* staticSubsystemClassId()", lines[i]):
      <inheritance>SGSubsystem</inheritance>
                id = lines[i].split("return \"")[1]
      <declaration>src/Autopilot/component.hxx</declaration>
                id = id.split("\"")[0]
      <implementation>src/Autopilot/component.cxx</implementation>
                self.staticSubsystemClassId = id
     </Component>
 
    <DCLGPS>
 
      <inheritance>SGSubsystem</inheritance>
     def is_group(self):
      <declaration>src/Instrumentation/dclgps.hxx</declaration>
        """Determine this is a subsystem or subsystem group.
      <implementation>src/Instrumentation/dclgps.cxx</implementation>
 
    </DCLGPS>
        @return:    True if this is a subsystem group.
     <DME>
        @rtype:    bool
      <inheritance>SGSubsystem</inheritance>
        """
      <declaration>src/Instrumentation/dme.hxx</declaration>
 
      <implementation>src/Instrumentation/dme.cxx</implementation>
        # Chase the base name as far as possible.
     </DME>
        if self.name == "SGSubsystemGroup":
     <Ephemeris>
            return True
      <inheritance>SGSubsystem</inheritance>
        if self.base_class.name == "SGSubsystemGroup":
      <declaration>src/Environment/ephemeris.hxx</declaration>
            return True
      <implementation>src/Environment/ephemeris.cxx</implementation>
        if self.base_class.base_class:
     </Ephemeris>
            if self.base_class.base_class.name == "SGSubsystemGroup":
    <FDMShell>
                return True
      <inheritance>SGSubsystem</inheritance>
            if self.base_class.base_class.base_class:
      <declaration>src/FDM/fdm_shell.hxx</declaration>
                if self.base_class.base_class.base_class.name == "SGSubsystemGroup":
      <implementation>src/FDM/fdm_shell.cxx</implementation>
                    return True
     </FDMShell>
                if self.base_class.base_class.base_class.base_class:
    <FGAIManager>
                    if self.base_class.base_class.base_class.base_class.name == "SGSubsystemGroup":
      <inheritance>SGSubsystem</inheritance>
                        return True
      <declaration>src/AIModel/AIManager.hxx</declaration>
                    if self.base_class.base_class.base_class.base_class.base_class:
      <implementation>src/AIModel/AIManager.cxx</implementation>
                        if self.base_class.base_class.base_class.base_class.name.base_class.name == "SGSubsystemGroup":
    </FGAIManager>
                            return True
     <FGATCManager>
 
      <inheritance>SGSubsystem</inheritance>
        # A normal subsystem.
      <declaration>src/ATC/atc_mgr.hxx</declaration>
        return False
      <implementation>src/ATC/atc_mgr.cxx</implementation>
 
    </FGATCManager>
 
     <FGAircraftModel>
 
      <inheritance>SGSubsystem</inheritance>
# Instantiate the class if run as a script.
      <declaration>src/Model/acmodel.hxx</declaration>
if __name__ == "__main__":
      <implementation>src/Model/acmodel.cxx</implementation>
     FindSubsystems()
    </FGAircraftModel>
}}
     <FGCom>
 
=== All subsystems ===
 
The result is:
 
{{collapsible script
| type  = Text output
| title  = A listing of all flightgear and simgear subsystems and subsystem groups.
| intro  = Output from the Python script for finding all subsystems within the flightgear and simgear C++ code bases.  The error output from the script was redirected and hence not shown below.
| lang  = c
| script =
Primary subsystems (90):
    <AbstractInstrument : SGSubsystem declared in "src/Instrumentation/AbstractInstrument.hxx", implemented in "src/Instrumentation/AbstractInstrument.cxx">
     <AirportDynamicsManager : SGSubsystem staticSubsystemClassId is "airport-dynamics" declared in "src/Airports/airportdynamicsmanager.hxx", implemented in "src/Airports/airportdynamicsmanager.cxx">
    <AirspeedIndicator : SGSubsystem staticSubsystemClassId is "airspeed-indicator" declared in "src/Instrumentation/airspeed_indicator.hxx", implemented in "src/Instrumentation/airspeed_indicator.cxx">
     <Altimeter : SGSubsystem staticSubsystemClassId is "altimeter" declared in "src/Instrumentation/altimeter.hxx", implemented in "src/Instrumentation/altimeter.cxx">
     <AnotherSub : SGSubsystem staticSubsystemClassId is "anothersub" declared in "simgear/structure/subsystem_test.cxx">
     <AreaSampler : SGSubsystem staticSubsystemClassId is "area" declared in "src/Environment/terrainsampler.cxx", implemented in "src/Environment/terrainsampler.cxx">
     <AttitudeIndicator : SGSubsystem staticSubsystemClassId is "attitude-indicator" declared in "src/Instrumentation/attitude_indicator.hxx", implemented in "src/Instrumentation/attitude_indicator.cxx">
     <Clock : SGSubsystem staticSubsystemClassId is "clock" declared in "src/Instrumentation/clock.hxx", implemented in "src/Instrumentation/clock.cxx">
    <Component : SGSubsystem declared in "src/Autopilot/component.hxx", implemented in "src/Autopilot/component.cxx">
     <Ephemeris : SGSubsystem staticSubsystemClassId is "ephemeris" declared in "src/Environment/ephemeris.hxx", implemented in "src/Environment/ephemeris.cxx">
    <FDMShell : SGSubsystem staticSubsystemClassId is "flight" declared in "src/FDM/fdm_shell.hxx", implemented in "src/FDM/fdm_shell.cxx">
     <FGAIManager : SGSubsystem staticSubsystemClassId is "ai-model" declared in "src/AIModel/AIManager.hxx", implemented in "src/AIModel/AIManager.cxx">
    <FGATCManager : SGSubsystem staticSubsystemClassId is "ATC" declared in "src/ATC/atc_mgr.hxx", implemented in "src/ATC/atc_mgr.cxx">
    <FGAircraftModel : SGSubsystem staticSubsystemClassId is "aircraft-model" declared in "src/Model/acmodel.hxx", implemented in "src/Model/acmodel.cxx">
    <FGCom : SGSubsystem staticSubsystemClassId is "fgcom" declared in "src/Network/fgcom.hxx", implemented in "src/Network/fgcom.cxx">
    <FGControls : SGSubsystem staticSubsystemClassId is "controls" declared in "src/Aircraft/controls.hxx", implemented in "src/Aircraft/controls.cxx">
    <FGDNSClient : SGSubsystem staticSubsystemClassId is "dns" declared in "src/Network/DNSClient.hxx", implemented in "src/Network/DNSClient.cxx">
    <FGElectricalSystem : SGSubsystem staticSubsystemClassId is "electrical" declared in "src/Systems/electrical.hxx", implemented in "src/Systems/electrical.cxx">
    <FGEventInput : SGSubsystem declared in "src/Input/FGEventInput.hxx", implemented in "src/Input/FGEventInput.cxx">
    <FGFlightHistory : SGSubsystem staticSubsystemClassId is "history" declared in "src/Aircraft/FlightHistory.hxx", implemented in "src/Aircraft/FlightHistory.cxx">
    <FGHTTPClient : SGSubsystem staticSubsystemClassId is "http" declared in "src/Network/HTTPClient.hxx", implemented in "src/Network/HTTPClient.cxx">
    <FGHttpd : SGSubsystem staticSubsystemClassId is "httpd" declared in "src/Network/http/httpd.hxx">
    <FGIO : SGSubsystem staticSubsystemClassId is "io" declared in "src/Main/fg_io.hxx", implemented in "src/Main/fg_io.cxx">
    <FGInstrumentMgr : SGSubsystem staticSubsystemClassId is "instrumentation" declared in "src/Instrumentation/instrument_mgr.hxx", implemented in "src/Instrumentation/instrument_mgr.cxx">
    <FGInterface : SGSubsystem declared in "src/FDM/flight.hxx", implemented in "src/FDM/flight.cxx">
    <FGJoystickInput : SGSubsystem staticSubsystemClassId is "input-joystick" declared in "src/Input/FGJoystickInput.hxx", implemented in "src/Input/FGJoystickInput.cxx">
    <FGKR_87 : SGSubsystem staticSubsystemClassId is "KR-87" declared in "src/Instrumentation/kr_87.hxx", implemented in "src/Instrumentation/kr_87.cxx">
    <FGKeyboardInput : SGSubsystem staticSubsystemClassId is "input-keyboard" declared in "src/Input/FGKeyboardInput.hxx", implemented in "src/Input/FGKeyboardInput.cxx">
    <FGLight : SGSubsystem staticSubsystemClassId is "lighting" declared in "src/Time/light.hxx", implemented in "src/Time/light.cxx">
    <FGLogger : SGSubsystem staticSubsystemClassId is "logger" declared in "src/Main/logger.hxx", implemented in "src/Main/logger.cxx">
    <FGMagVarManager : SGSubsystem staticSubsystemClassId is "magvar" declared in "src/Environment/magvarmanager.hxx", implemented in "src/Environment/magvarmanager.cxx">
    <FGModelMgr : SGSubsystem staticSubsystemClassId is "model-manager" declared in "src/Model/modelmgr.hxx", implemented in "src/Model/modelmgr.cxx">
    <FGMouseInput : SGSubsystem staticSubsystemClassId is "input-mouse" declared in "src/Input/FGMouseInput.hxx", implemented in "src/Input/FGMouseInput.cxx">
    <FGMultiplayMgr : SGSubsystem staticSubsystemClassId is "mp" declared in "src/MultiPlayer/multiplaymgr.hxx", implemented in "src/MultiPlayer/multiplaymgr.cxx">
    <FGNasalSys : SGSubsystem staticSubsystemClassId is "nasal" declared in "src/Scripting/NasalSys.hxx", implemented in "src/Scripting/NasalSys.cxx">
    <FGPanel : SGSubsystem staticSubsystemClassId is "panel" declared in "utils/fgpanel/FGPanel.hxx", implemented in "utils/fgpanel/FGPanel.cxx">
    <FGPanelProtocol : SGSubsystem staticSubsystemClassId is "panel-protocol" declared in "utils/fgpanel/FGPanelProtocol.hxx", implemented in "utils/fgpanel/FGPanelProtocol.cxx">
    <FGPrecipitationMgr : SGSubsystem staticSubsystemClassId is "precipitation" declared in "src/Environment/precipitation_mgr.hxx", implemented in "src/Environment/precipitation_mgr.cxx">
    <FGProperties : SGSubsystem staticSubsystemClassId is "properties" declared in "src/Main/fg_props.hxx", implemented in "src/Main/fg_props.cxx">
    <FGReplay : SGSubsystem staticSubsystemClassId is "replay" declared in "src/Aircraft/replay.hxx", implemented in "src/Aircraft/replay.cxx">
    <FGRidgeLift : SGSubsystem staticSubsystemClassId is "ridgelift" declared in "src/Environment/ridge_lift.hxx", implemented in "src/Environment/ridge_lift.cxx">
    <FGRouteMgr : SGSubsystem staticSubsystemClassId is "route-manager" declared in "src/Autopilot/route_mgr.hxx", implemented in "src/Autopilot/route_mgr.cxx">
    <FGScenery : SGSubsystem staticSubsystemClassId is "scenery" declared in "src/Scenery/scenery.hxx", implemented in "src/Scenery/scenery.cxx">
    <FGSoundManager : SGSubsystem staticSubsystemClassId is "sound" declared in "src/Sound/soundmanager.hxx", implemented in "src/Sound/soundmanager.cxx">
    <FGSubmodelMgr : SGSubsystem staticSubsystemClassId is "submodel-mgr" declared in "src/AIModel/submodel.hxx", implemented in "src/AIModel/submodel.cxx">
    <FGSubsystemExample : SGSubsystem declared in "docs-mini/README.introduction">
    <FGTrafficManager : SGSubsystem staticSubsystemClassId is "traffic-manager" declared in "src/Traffic/TrafficMgr.hxx", implemented in "src/Traffic/TrafficMgr.cxx">
    <FGViewMgr : SGSubsystem staticSubsystemClassId is "view-manager" declared in "src/Viewer/viewmgr.hxx", implemented in "src/Viewer/viewmgr.cxx">
    <FGVoiceMgr : SGSubsystem staticSubsystemClassId is "voice" declared in "src/Sound/voice.hxx", implemented in "src/Sound/voice.cxx">
    <FakeRadioSub : SGSubsystem staticSubsystemClassId is "fake-radio" declared in "simgear/structure/subsystem_test.cxx">
    <GPS : SGSubsystem staticSubsystemClassId is "gps" declared in "src/Instrumentation/gps.hxx", implemented in "src/Instrumentation/gps.cxx">
    <GSDI : SGSubsystem staticSubsystemClassId is "gsdi" declared in "src/Instrumentation/gsdi.hxx", implemented in "src/Instrumentation/gsdi.cxx">
    <GUIMgr : SGSubsystem staticSubsystemClassId is "CanvasGUI" declared in "src/Canvas/gui_mgr.hxx", implemented in "src/Canvas/gui_mgr.cxx">
    <GroundRadar : SGSubsystem staticSubsystemClassId is "groundradar" declared in "src/Cockpit/groundradar.hxx", implemented in "src/Cockpit/groundradar.cxx">
    <HUD : SGSubsystem staticSubsystemClassId is "hud" declared in "src/Instrumentation/HUD/HUD.hxx", implemented in "src/Instrumentation/HUD/HUD.cxx">
    <HeadingIndicator : SGSubsystem staticSubsystemClassId is "heading-indicator" declared in "src/Instrumentation/heading_indicator.hxx", implemented in "src/Instrumentation/heading_indicator.cxx">
    <HeadingIndicatorDG : SGSubsystem staticSubsystemClassId is "heading-indicator-dg" declared in "src/Instrumentation/heading_indicator_dg.hxx", implemented in "src/Instrumentation/heading_indicator_dg.cxx">
    <HeadingIndicatorFG : SGSubsystem staticSubsystemClassId is "heading-indicator-fg" declared in "src/Instrumentation/heading_indicator_fg.hxx", implemented in "src/Instrumentation/heading_indicator_fg.cxx">
    <InstVerticalSpeedIndicator : SGSubsystem staticSubsystemClassId is "inst-vertical-speed-indicator" declared in "src/Instrumentation/inst_vertical_speed_indicator.hxx", implemented in "src/Instrumentation/inst_vertical_speed_indicator.cxx">
    <LayerInterpolateController : SGSubsystem declared in "src/Environment/environment_ctrl.hxx">
    <MK_VIII : SGSubsystem staticSubsystemClassId is "mk-viii" declared in "src/Instrumentation/mk_viii.hxx", implemented in "src/Instrumentation/mk_viii.cxx">
    <MagCompass : SGSubsystem staticSubsystemClassId is "magnetic-compass" declared in "src/Instrumentation/mag_compass.hxx", implemented in "src/Instrumentation/mag_compass.cxx">
    <MasterReferenceGyro : SGSubsystem staticSubsystemClassId is "master-reference-gyro" declared in "src/Instrumentation/mrg.hxx", implemented in "src/Instrumentation/mrg.cxx">
    <MySub1 : SGSubsystem staticSubsystemClassId is "mysub" declared in "simgear/structure/subsystem_test.cxx">
    <NavDisplay : SGSubsystem staticSubsystemClassId is "navigation-display" declared in "src/Cockpit/NavDisplay.hxx", implemented in "src/Cockpit/NavDisplay.cxx">
    <NavRadio : SGSubsystem staticSubsystemClassId is "nav-radio" declared in "src/Instrumentation/newnavradio.hxx", implemented in "src/Instrumentation/newnavradio.cxx">
    <NewGUI : SGSubsystem staticSubsystemClassId is "gui" declared in "src/GUI/new_gui.hxx", implemented in "src/GUI/new_gui.cxx">
    <PerformanceDB : SGSubsystem staticSubsystemClassId is "aircraft-performance-db" declared in "src/AIModel/performancedb.hxx", implemented in "src/AIModel/performancedb.cxx">
    <PitotSystem : SGSubsystem staticSubsystemClassId is "pitot" declared in "src/Systems/pitot.hxx", implemented in "src/Systems/pitot.cxx">
    <PropertyBasedMgr : SGSubsystem declared in "simgear/props/PropertyBasedMgr.hxx", implemented in "simgear/props/PropertyBasedMgr.cxx">
    <PropertyInterpolationMgr : SGSubsystem declared in "simgear/props/PropertyInterpolationMgr.hxx", implemented in "simgear/props/PropertyInterpolationMgr.cxx">
    <RadarAltimeter : SGSubsystem staticSubsystemClassId is "radar-altimeter" declared in "src/Instrumentation/rad_alt.hxx", implemented in "src/Instrumentation/rad_alt.cxx">
    <RealWxController : SGSubsystem declared in "src/Environment/realwx_ctrl.hxx", implemented in "src/Environment/realwx_ctrl.cxx">
    <SGEventMgr : SGSubsystem staticSubsystemClassId is "events" declared in "simgear/structure/event_mgr.hxx", implemented in "simgear/structure/event_mgr.cxx">
    <SGInterpolator : SGSubsystem staticSubsystemClassId is "interpolator" declared in "simgear/misc/interpolator.hxx", implemented in "simgear/misc/interpolator.cxx">
    <SGPerformanceMonitor : SGSubsystem staticSubsystemClassId is "performance-mon" declared in "simgear/structure/SGPerfMon.hxx", implemented in "simgear/structure/SGPerfMon.cxx">
    <SGSoundMgr : SGSubsystem staticSubsystemClassId is "sound" declared in "simgear/sound/soundmgr.hxx">
    <SGSubsystemMgr : SGSubsystem staticSubsystemClassId is "subsystem-mgr" declared in "simgear/structure/subsystem_mgr.hxx", implemented in "simgear/structure/subsystem_mgr.cxx">
    <SGTerraSync : SGSubsystem staticSubsystemClassId is "terrasync" declared in "simgear/scene/tsync/terrasync.hxx", implemented in "simgear/scene/tsync/terrasync.cxx">
    <SlipSkidBall : SGSubsystem staticSubsystemClassId is "slip-skid-ball" declared in "src/Instrumentation/slip_skid_ball.hxx", implemented in "src/Instrumentation/slip_skid_ball.cxx">
    <StaticSystem : SGSubsystem staticSubsystemClassId is "static" declared in "src/Systems/static.hxx", implemented in "src/Systems/static.cxx">
    <SwiftConnection : SGSubsystem staticSubsystemClassId is "swift" declared in "src/Network/Swift/swift_connection.hxx", implemented in "src/Network/Swift/swift_connection.cxx">
    <TACAN : SGSubsystem staticSubsystemClassId is "tacan" declared in "src/Instrumentation/tacan.hxx", implemented in "src/Instrumentation/tacan.cxx">
    <TCAS : SGSubsystem staticSubsystemClassId is "tcas" declared in "src/Instrumentation/tcas.hxx", implemented in "src/Instrumentation/tcas.cxx">
    <TimeManager : SGSubsystem staticSubsystemClassId is "time" declared in "src/Time/TimeManager.hxx", implemented in "src/Time/TimeManager.cxx">
    <TurnIndicator : SGSubsystem staticSubsystemClassId is "turn-indicator" declared in "src/Instrumentation/turn_indicator.hxx", implemented in "src/Instrumentation/turn_indicator.cxx">
    <VacuumSystem : SGSubsystem staticSubsystemClassId is "vacuum" declared in "src/Systems/vacuum.hxx", implemented in "src/Systems/vacuum.cxx">
    <VerticalSpeedIndicator : SGSubsystem staticSubsystemClassId is "vertical-speed-indicator" declared in "src/Instrumentation/vertical_speed_indicator.hxx", implemented in "src/Instrumentation/vertical_speed_indicator.cxx">
    <View : SGSubsystem staticSubsystemClassId is "view" declared in "src/Viewer/view.hxx", implemented in "src/Viewer/view.cxx">
    <wxRadarBg : SGSubsystem staticSubsystemClassId is "radar" declared in "src/Cockpit/wxradar.hxx", implemented in "src/Cockpit/wxradar.cxx">
 
Primary groups (8):
    <Autopilot : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "autopilot" declared in "src/Autopilot/autopilot.hxx", implemented in "src/Autopilot/autopilot.cxx">
    <CockpitDisplayManager : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "cockpit-displays" declared in "src/Cockpit/cockpitDisplayManager.hxx", implemented in "src/Cockpit/cockpitDisplayManager.cxx">
    <FGEnvironmentMgr : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "environment" declared in "src/Environment/environment_mgr.hxx", implemented in "src/Environment/environment_mgr.cxx">
    <FGInput : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "input" declared in "src/Input/input.hxx", implemented in "src/Input/input.cxx">
    <FGSystemMgr : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "systems" declared in "src/Systems/system_mgr.hxx", implemented in "src/Systems/system_mgr.cxx">
    <FGXMLAutopilotGroup : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "xml-rules" declared in "src/Autopilot/autopilotgroup.hxx", implemented in "src/Autopilot/autopilotgroup.cxx">
    <InstrumentGroup : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "instruments" declared in "simgear/structure/subsystem_test.cxx">
    <TerrainSampler : SGSubsystemGroup : SGSubsystem declared in "src/Environment/terrainsampler.hxx">
 
Secondary subsystems (32):
    <ADF : AbstractInstrument : SGSubsystem staticSubsystemClassId is "adf" declared in "src/Instrumentation/adf.hxx", implemented in "src/Instrumentation/adf.cxx">
    <AnalogComponent : Component : SGSubsystem declared in "src/Autopilot/analogcomponent.hxx", implemented in "src/Autopilot/analogcomponent.cxx">
    <BasicRealWxController : RealWxController : SGSubsystem declared in "src/Environment/realwx_ctrl.cxx", implemented in "src/Environment/realwx_ctrl.cxx">
    <CanvasMgr : PropertyBasedMgr : SGSubsystem declared in "simgear/canvas/CanvasMgr.hxx", implemented in "simgear/canvas/CanvasMgr.cxx">
    <CommRadio : AbstractInstrument : SGSubsystem staticSubsystemClassId is "comm-radio" declared in "src/Instrumentation/commradio.hxx", implemented in "src/Instrumentation/commradio.cxx">
    <DME : AbstractInstrument : SGSubsystem staticSubsystemClassId is "dme" declared in "src/Instrumentation/dme.hxx", implemented in "src/Instrumentation/dme.cxx">
    <DigitalComponent : Component : SGSubsystem declared in "src/Autopilot/digitalcomponent.hxx", implemented in "src/Autopilot/digitalcomponent.cxx">
    <FGACMS : FGInterface : SGSubsystem staticSubsystemClassId is "acms" declared in "src/FDM/SP/ACMS.hxx", implemented in "src/FDM/SP/ACMS.cxx">
    <FGADA : FGInterface : SGSubsystem staticSubsystemClassId is "ada" declared in "src/FDM/SP/ADA.hxx", implemented in "src/FDM/SP/ADA.cxx">
    <FGAISim : FGInterface : SGSubsystem staticSubsystemClassId is "aisim" declared in "src/FDM/SP/AISim.hpp", implemented in "src/FDM/SP/AISim.cpp">
    <FGBalloonSim : FGInterface : SGSubsystem staticSubsystemClassId is "balloon" declared in "src/FDM/SP/Balloon.h", implemented in "src/FDM/SP/Balloon.cxx">
    <FGExternalNet : FGInterface : SGSubsystem staticSubsystemClassId is "network" declared in "src/FDM/ExternalNet/ExternalNet.hxx", implemented in "src/FDM/ExternalNet/ExternalNet.cxx">
    <FGExternalPipe : FGInterface : SGSubsystem staticSubsystemClassId is "pipe" declared in "src/FDM/ExternalPipe/ExternalPipe.hxx", implemented in "src/FDM/ExternalPipe/ExternalPipe.cxx">
    <FGHIDEventInput : FGEventInput : SGSubsystem staticSubsystemClassId is "input-event-hid" declared in "src/Input/FGHIDEventInput.hxx", implemented in "src/Input/FGHIDEventInput.cxx">
    <FGInterpolator : PropertyInterpolationMgr : SGSubsystem staticSubsystemClassId is "prop-interpolator" declared in "src/Main/FGInterpolator.hxx", implemented in "src/Main/FGInterpolator.cxx">
    <FGJSBsim : FGInterface : SGSubsystem staticSubsystemClassId is "jsb" declared in "src/FDM/JSBSim/JSBSim.hxx", implemented in "src/FDM/JSBSim/JSBSim.cxx">
    <FGLaRCsim : FGInterface : SGSubsystem staticSubsystemClassId is "larcsim" declared in "src/FDM/LaRCsim/LaRCsim.hxx", implemented in "src/FDM/LaRCsim/LaRCsim.cxx">
    <FGLinuxEventInput : FGEventInput : SGSubsystem staticSubsystemClassId is "input-event" declared in "src/Input/FGLinuxEventInput.hxx", implemented in "src/Input/FGLinuxEventInput.cxx">
    <FGMacOSXEventInput : FGEventInput : SGSubsystem staticSubsystemClassId is "input-event" declared in "src/Input/FGMacOSXEventInput.hxx", implemented in "src/Input/FGMacOSXEventInput.cxx">
    <FGMagicCarpet : FGInterface : SGSubsystem staticSubsystemClassId is "magic" declared in "src/FDM/SP/MagicCarpet.hxx", implemented in "src/FDM/SP/MagicCarpet.cxx">
    <FGMarkerBeacon : AbstractInstrument : SGSubsystem staticSubsystemClassId is "marker-beacon" declared in "src/Instrumentation/marker_beacon.hxx", implemented in "src/Instrumentation/marker_beacon.cxx">
    <FGNavRadio : AbstractInstrument : SGSubsystem staticSubsystemClassId is "old-navradio" declared in "src/Instrumentation/navradio.hxx", implemented in "src/Instrumentation/navradio.cxx">
    <FGNullFDM : FGInterface : SGSubsystem staticSubsystemClassId is "null" declared in "src/FDM/NullFDM.hxx", implemented in "src/FDM/NullFDM.cxx">
    <FGReadablePanel : FGPanel : SGSubsystem staticSubsystemClassId is "readable-panel" declared in "utils/fgpanel/panel_io.hxx", implemented in "utils/fgpanel/panel_io.cxx">
    <FGSoundManager : SGSoundMgr : SGSubsystem staticSubsystemClassId is "sound" declared in "src/Sound/soundmanager.hxx", implemented in "src/Sound/soundmanager.cxx">
    <FGUFO : FGInterface : SGSubsystem staticSubsystemClassId is "ufo" declared in "src/FDM/UFO.hxx", implemented in "src/FDM/UFO.cxx">
    <LayerInterpolateControllerImplementation : LayerInterpolateController : SGSubsystem staticSubsystemClassId is "layer-interpolate-controller" declared in "src/Environment/environment_ctrl.cxx", implemented in "src/Environment/environment_ctrl.cxx">
    <MongooseHttpd : FGHttpd : SGSubsystem staticSubsystemClassId is "mongoose-httpd" declared in "src/Network/http/httpd.cxx", implemented in "src/Network/http/httpd.cxx">
    <StateMachineComponent : Component : SGSubsystem staticSubsystemClassId is "state-machine" declared in "src/Autopilot/autopilot.cxx">
    <Transponder : AbstractInstrument : SGSubsystem staticSubsystemClassId is "transponder" declared in "src/Instrumentation/transponder.hxx", implemented in "src/Instrumentation/transponder.cxx">
    <YASim : FGInterface : SGSubsystem staticSubsystemClassId is "yasim" declared in "src/FDM/YASim/YASim.hxx", implemented in "src/FDM/YASim/YASim.cxx">
    <agRadar : wxRadarBg : SGSubsystem staticSubsystemClassId is "air-ground-radar" declared in "src/Cockpit/agradar.hxx", implemented in "src/Cockpit/agradar.cxx">
 
Secondary groups (2):
    <FGXMLAutopilotGroupImplementation : FGXMLAutopilotGroup : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "xml-autopilot-group" declared in "src/Autopilot/autopilotgroup.cxx", implemented in "src/Autopilot/autopilotgroup.cxx">
    <TerrainSamplerImplementation : TerrainSampler : SGSubsystemGroup : SGSubsystem staticSubsystemClassId is "terrain-sampler" declared in "src/Environment/terrainsampler.cxx", implemented in "src/Environment/terrainsampler.cxx">
 
Tertiary subsystems (7):
    <CanvasMgr : CanvasMgr : PropertyBasedMgr : SGSubsystem staticSubsystemClassId is "Canvas" declared in "src/Canvas/canvas_mgr.hxx", implemented in "src/Canvas/canvas_mgr.cxx">
    <DigitalFilter : AnalogComponent : Component : SGSubsystem staticSubsystemClassId is "filter" declared in "src/Autopilot/digitalfilter.hxx", implemented in "src/Autopilot/digitalfilter.cxx">
    <Logic : DigitalComponent : Component : SGSubsystem staticSubsystemClassId is "logic" declared in "src/Autopilot/logic.hxx", implemented in "src/Autopilot/logic.cxx">
    <NoaaMetarRealWxController : BasicRealWxController : RealWxController : SGSubsystem staticSubsystemClassId is "noaa-metar-real-wx-controller" declared in "src/Environment/realwx_ctrl.cxx", implemented in "src/Environment/realwx_ctrl.cxx">
    <PIDController : AnalogComponent : Component : SGSubsystem staticSubsystemClassId is "pid-controller" declared in "src/Autopilot/pidcontroller.hxx", implemented in "src/Autopilot/pidcontroller.cxx">
    <PISimpleController : AnalogComponent : Component : SGSubsystem staticSubsystemClassId is "pi-simple-controller" declared in "src/Autopilot/pisimplecontroller.hxx", implemented in "src/Autopilot/pisimplecontroller.cxx">
    <Predictor : AnalogComponent : Component : SGSubsystem staticSubsystemClassId is "predict-simple" declared in "src/Autopilot/predictor.hxx", implemented in "src/Autopilot/predictor.cxx">
 
Quaternary subsystems (1):
    <FlipFlop : Logic : DigitalComponent : Component : SGSubsystem staticSubsystemClassId is "flipflop" declared in "src/Autopilot/flipflop.hxx", implemented in "src/Autopilot/flipflop.cxx">
 
Counts: 130 subsystem classes (118 flightgear, 12 simgear).
Counts: 10 subsystem groups (9 flightgear, 1 simgear).
Counts: 140 subsystem classes and groups (127 flightgear, 13 simgear).
}}
 
{{collapsible script
| type  = XML output
| title  = A listing of all flightgear and simgear subsystems and subsystem groups.
| intro  = XML output from the Python script for finding all subsystems within the flightgear and simgear C++ code bases.  The error output from the script was redirected and hence not shown below.
| lang  = xml
| script =
<?xml version="1.0"?>
<subsystems>
  <primary_subsystems count="90">
     <AbstractInstrument>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Network/fgcom.hxx</declaration>
       <declaration>src/Instrumentation/AbstractInstrument.hxx</declaration>
       <implementation>src/Network/fgcom.cxx</implementation>
       <implementation>src/Instrumentation/AbstractInstrument.cxx</implementation>
     </FGCom>
     </AbstractInstrument>
     <FGControls>
     <AirportDynamicsManager>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Aircraft/controls.hxx</declaration>
      <staticSubsystemClassId>airport-dynamics</staticSubsystemClassId>
       <implementation>src/Aircraft/controls.cxx</implementation>
       <declaration>src/Airports/airportdynamicsmanager.hxx</declaration>
     </FGControls>
       <implementation>src/Airports/airportdynamicsmanager.cxx</implementation>
     <FGDNSClient>
     </AirportDynamicsManager>
     <AirspeedIndicator>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Network/DNSClient.hxx</declaration>
      <staticSubsystemClassId>airspeed-indicator</staticSubsystemClassId>
       <implementation>src/Network/DNSClient.cxx</implementation>
       <declaration>src/Instrumentation/airspeed_indicator.hxx</declaration>
     </FGDNSClient>
       <implementation>src/Instrumentation/airspeed_indicator.cxx</implementation>
     <FGElectricalSystem>
     </AirspeedIndicator>
     <Altimeter>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Systems/electrical.hxx</declaration>
      <staticSubsystemClassId>altimeter</staticSubsystemClassId>
       <implementation>src/Systems/electrical.cxx</implementation>
       <declaration>src/Instrumentation/altimeter.hxx</declaration>
     </FGElectricalSystem>
       <implementation>src/Instrumentation/altimeter.cxx</implementation>
     <FGEventInput>
     </Altimeter>
     <AnotherSub>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Input/FGEventInput.hxx</declaration>
       <staticSubsystemClassId>anothersub</staticSubsystemClassId>
       <implementation>src/Input/FGEventInput.cxx</implementation>
       <declaration>simgear/structure/subsystem_test.cxx</declaration>
     </FGEventInput>
     </AnotherSub>
     <FGFlightHistory>
     <AreaSampler>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Aircraft/FlightHistory.hxx</declaration>
      <staticSubsystemClassId>area</staticSubsystemClassId>
       <implementation>src/Aircraft/FlightHistory.cxx</implementation>
       <declaration>src/Environment/terrainsampler.cxx</declaration>
     </FGFlightHistory>
       <implementation>src/Environment/terrainsampler.cxx</implementation>
     <FGHTTPClient>
     </AreaSampler>
     <AttitudeIndicator>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Network/HTTPClient.hxx</declaration>
      <staticSubsystemClassId>attitude-indicator</staticSubsystemClassId>
       <implementation>src/Network/HTTPClient.cxx</implementation>
       <declaration>src/Instrumentation/attitude_indicator.hxx</declaration>
     </FGHTTPClient>
       <implementation>src/Instrumentation/attitude_indicator.cxx</implementation>
     <FGHttpd>
     </AttitudeIndicator>
     <Clock>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Network/http/httpd.hxx</declaration>
      <staticSubsystemClassId>clock</staticSubsystemClassId>
     </FGHttpd>
       <declaration>src/Instrumentation/clock.hxx</declaration>
     <FGIO>
      <implementation>src/Instrumentation/clock.cxx</implementation>
     </Clock>
     <Component>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Main/fg_io.hxx</declaration>
       <declaration>src/Autopilot/component.hxx</declaration>
       <implementation>src/Main/fg_io.cxx</implementation>
       <implementation>src/Autopilot/component.cxx</implementation>
     </FGIO>
     </Component>
     <FGInterface>
     <Ephemeris>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/FDM/flight.hxx</declaration>
      <staticSubsystemClassId>ephemeris</staticSubsystemClassId>
       <implementation>src/FDM/flight.cxx</implementation>
       <declaration>src/Environment/ephemeris.hxx</declaration>
     </FGInterface>
       <implementation>src/Environment/ephemeris.cxx</implementation>
     <FGJoystickInput>
     </Ephemeris>
     <FDMShell>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Input/FGJoystickInput.hxx</declaration>
      <staticSubsystemClassId>flight</staticSubsystemClassId>
       <implementation>src/Input/FGJoystickInput.cxx</implementation>
       <declaration>src/FDM/fdm_shell.hxx</declaration>
     </FGJoystickInput>
       <implementation>src/FDM/fdm_shell.cxx</implementation>
     <FGKR_87>
     </FDMShell>
     <FGAIManager>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/kr_87.hxx</declaration>
      <staticSubsystemClassId>ai-model</staticSubsystemClassId>
       <implementation>src/Instrumentation/kr_87.cxx</implementation>
       <declaration>src/AIModel/AIManager.hxx</declaration>
     </FGKR_87>
       <implementation>src/AIModel/AIManager.cxx</implementation>
     <FGKeyboardInput>
     </FGAIManager>
     <FGATCManager>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Input/FGKeyboardInput.hxx</declaration>
      <staticSubsystemClassId>ATC</staticSubsystemClassId>
       <implementation>src/Input/FGKeyboardInput.cxx</implementation>
       <declaration>src/ATC/atc_mgr.hxx</declaration>
     </FGKeyboardInput>
       <implementation>src/ATC/atc_mgr.cxx</implementation>
     <FGLight>
     </FGATCManager>
     <FGAircraftModel>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Time/light.hxx</declaration>
      <staticSubsystemClassId>aircraft-model</staticSubsystemClassId>
       <implementation>src/Time/light.cxx</implementation>
       <declaration>src/Model/acmodel.hxx</declaration>
     </FGLight>
       <implementation>src/Model/acmodel.cxx</implementation>
     <FGLogger>
     </FGAircraftModel>
     <FGCom>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Main/logger.hxx</declaration>
      <staticSubsystemClassId>fgcom</staticSubsystemClassId>
       <implementation>src/Main/logger.cxx</implementation>
       <declaration>src/Network/fgcom.hxx</declaration>
     </FGLogger>
       <implementation>src/Network/fgcom.cxx</implementation>
     <FGMagVarManager>
     </FGCom>
     <FGControls>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/magvarmanager.hxx</declaration>
      <staticSubsystemClassId>controls</staticSubsystemClassId>
       <implementation>src/Environment/magvarmanager.cxx</implementation>
       <declaration>src/Aircraft/controls.hxx</declaration>
     </FGMagVarManager>
       <implementation>src/Aircraft/controls.cxx</implementation>
     <FGMarkerBeacon>
     </FGControls>
     <FGDNSClient>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/marker_beacon.hxx</declaration>
      <staticSubsystemClassId>dns</staticSubsystemClassId>
       <implementation>src/Instrumentation/marker_beacon.cxx</implementation>
       <declaration>src/Network/DNSClient.hxx</declaration>
     </FGMarkerBeacon>
       <implementation>src/Network/DNSClient.cxx</implementation>
     <FGModelMgr>
     </FGDNSClient>
     <FGElectricalSystem>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Model/modelmgr.hxx</declaration>
      <staticSubsystemClassId>electrical</staticSubsystemClassId>
       <implementation>src/Model/modelmgr.cxx</implementation>
       <declaration>src/Systems/electrical.hxx</declaration>
     </FGModelMgr>
       <implementation>src/Systems/electrical.cxx</implementation>
     <FGMouseInput>
     </FGElectricalSystem>
     <FGEventInput>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Input/FGMouseInput.hxx</declaration>
       <declaration>src/Input/FGEventInput.hxx</declaration>
       <implementation>src/Input/FGMouseInput.cxx</implementation>
       <implementation>src/Input/FGEventInput.cxx</implementation>
     </FGMouseInput>
     </FGEventInput>
     <FGMultiplayMgr>
     <FGFlightHistory>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/MultiPlayer/multiplaymgr.hxx</declaration>
      <staticSubsystemClassId>history</staticSubsystemClassId>
       <implementation>src/MultiPlayer/multiplaymgr.cxx</implementation>
       <declaration>src/Aircraft/FlightHistory.hxx</declaration>
     </FGMultiplayMgr>
       <implementation>src/Aircraft/FlightHistory.cxx</implementation>
     <FGNasalSys>
     </FGFlightHistory>
     <FGHTTPClient>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Scripting/NasalSys.hxx</declaration>
      <staticSubsystemClassId>http</staticSubsystemClassId>
       <implementation>src/Scripting/NasalSys.cxx</implementation>
       <declaration>src/Network/HTTPClient.hxx</declaration>
     </FGNasalSys>
       <implementation>src/Network/HTTPClient.cxx</implementation>
     <FGNavRadio>
     </FGHTTPClient>
     <FGHttpd>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/navradio.hxx</declaration>
       <staticSubsystemClassId>httpd</staticSubsystemClassId>
       <implementation>src/Instrumentation/navradio.cxx</implementation>
       <declaration>src/Network/http/httpd.hxx</declaration>
     </FGNavRadio>
     </FGHttpd>
     <FGPanel>
     <FGIO>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>utils/fgpanel/FGPanel.hxx</declaration>
      <staticSubsystemClassId>io</staticSubsystemClassId>
       <implementation>utils/fgpanel/FGPanel.cxx</implementation>
       <declaration>src/Main/fg_io.hxx</declaration>
     </FGPanel>
       <implementation>src/Main/fg_io.cxx</implementation>
     <FGPanelProtocol>
     </FGIO>
     <FGInstrumentMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>utils/fgpanel/FGPanelProtocol.hxx</declaration>
      <staticSubsystemClassId>instrumentation</staticSubsystemClassId>
       <implementation>utils/fgpanel/FGPanelProtocol.cxx</implementation>
       <declaration>src/Instrumentation/instrument_mgr.hxx</declaration>
     </FGPanelProtocol>
       <implementation>src/Instrumentation/instrument_mgr.cxx</implementation>
     <FGPrecipitationMgr>
     </FGInstrumentMgr>
     <FGInterface>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/precipitation_mgr.hxx</declaration>
       <declaration>src/FDM/flight.hxx</declaration>
       <implementation>src/Environment/precipitation_mgr.cxx</implementation>
       <implementation>src/FDM/flight.cxx</implementation>
     </FGPrecipitationMgr>
     </FGInterface>
     <FGProperties>
     <FGJoystickInput>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Main/fg_props.hxx</declaration>
      <staticSubsystemClassId>input-joystick</staticSubsystemClassId>
       <implementation>src/Main/fg_props.cxx</implementation>
       <declaration>src/Input/FGJoystickInput.hxx</declaration>
     </FGProperties>
       <implementation>src/Input/FGJoystickInput.cxx</implementation>
     <FGReplay>
     </FGJoystickInput>
     <FGKR_87>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Aircraft/replay.hxx</declaration>
      <staticSubsystemClassId>KR-87</staticSubsystemClassId>
       <implementation>src/Aircraft/replay.cxx</implementation>
       <declaration>src/Instrumentation/kr_87.hxx</declaration>
     </FGReplay>
       <implementation>src/Instrumentation/kr_87.cxx</implementation>
     <FGRidgeLift>
     </FGKR_87>
     <FGKeyboardInput>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/ridge_lift.hxx</declaration>
      <staticSubsystemClassId>input-keyboard</staticSubsystemClassId>
       <implementation>src/Environment/ridge_lift.cxx</implementation>
       <declaration>src/Input/FGKeyboardInput.hxx</declaration>
     </FGRidgeLift>
       <implementation>src/Input/FGKeyboardInput.cxx</implementation>
     <FGRouteMgr>
     </FGKeyboardInput>
     <FGLight>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Autopilot/route_mgr.hxx</declaration>
      <staticSubsystemClassId>lighting</staticSubsystemClassId>
       <implementation>src/Autopilot/route_mgr.cxx</implementation>
       <declaration>src/Time/light.hxx</declaration>
     </FGRouteMgr>
       <implementation>src/Time/light.cxx</implementation>
     <FGScenery>
     </FGLight>
     <FGLogger>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Scenery/scenery.hxx</declaration>
      <staticSubsystemClassId>logger</staticSubsystemClassId>
       <implementation>src/Scenery/scenery.cxx</implementation>
       <declaration>src/Main/logger.hxx</declaration>
     </FGScenery>
       <implementation>src/Main/logger.cxx</implementation>
     <FGSoundManager>
     </FGLogger>
     <FGMagVarManager>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Sound/soundmanager.hxx</declaration>
      <staticSubsystemClassId>magvar</staticSubsystemClassId>
       <implementation>src/Sound/soundmanager.cxx</implementation>
       <declaration>src/Environment/magvarmanager.hxx</declaration>
     </FGSoundManager>
       <implementation>src/Environment/magvarmanager.cxx</implementation>
     <FGSubmodelMgr>
     </FGMagVarManager>
     <FGModelMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/AIModel/submodel.hxx</declaration>
      <staticSubsystemClassId>model-manager</staticSubsystemClassId>
       <implementation>src/AIModel/submodel.cxx</implementation>
       <declaration>src/Model/modelmgr.hxx</declaration>
     </FGSubmodelMgr>
       <implementation>src/Model/modelmgr.cxx</implementation>
     <FGSubsystemExample>
     </FGModelMgr>
     <FGMouseInput>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>docs-mini/README.introduction</declaration>
      <staticSubsystemClassId>input-mouse</staticSubsystemClassId>
       <implementation>docs-mini/README.introduction</implementation>
       <declaration>src/Input/FGMouseInput.hxx</declaration>
     </FGSubsystemExample>
       <implementation>src/Input/FGMouseInput.cxx</implementation>
     <FGTrafficManager>
     </FGMouseInput>
     <FGMultiplayMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Traffic/TrafficMgr.hxx</declaration>
      <staticSubsystemClassId>mp</staticSubsystemClassId>
       <implementation>src/Traffic/TrafficMgr.cxx</implementation>
       <declaration>src/MultiPlayer/multiplaymgr.hxx</declaration>
     </FGTrafficManager>
       <implementation>src/MultiPlayer/multiplaymgr.cxx</implementation>
     <FGViewMgr>
     </FGMultiplayMgr>
     <FGNasalSys>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Viewer/viewmgr.hxx</declaration>
      <staticSubsystemClassId>nasal</staticSubsystemClassId>
       <implementation>src/Viewer/viewmgr.cxx</implementation>
       <declaration>src/Scripting/NasalSys.hxx</declaration>
     </FGViewMgr>
       <implementation>src/Scripting/NasalSys.cxx</implementation>
     <FGVoiceMgr>
     </FGNasalSys>
     <FGPanel>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Sound/voice.hxx</declaration>
      <staticSubsystemClassId>panel</staticSubsystemClassId>
       <implementation>src/Sound/voice.cxx</implementation>
       <declaration>utils/fgpanel/FGPanel.hxx</declaration>
     </FGVoiceMgr>
       <implementation>utils/fgpanel/FGPanel.cxx</implementation>
     <GPS>
     </FGPanel>
     <FGPanelProtocol>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/gps.hxx</declaration>
      <staticSubsystemClassId>panel-protocol</staticSubsystemClassId>
       <implementation>src/Instrumentation/gps.cxx</implementation>
       <declaration>utils/fgpanel/FGPanelProtocol.hxx</declaration>
     </GPS>
       <implementation>utils/fgpanel/FGPanelProtocol.cxx</implementation>
     <GSDI>
     </FGPanelProtocol>
     <FGPrecipitationMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/gsdi.hxx</declaration>
      <staticSubsystemClassId>precipitation</staticSubsystemClassId>
       <implementation>src/Instrumentation/gsdi.cxx</implementation>
       <declaration>src/Environment/precipitation_mgr.hxx</declaration>
     </GSDI>
       <implementation>src/Environment/precipitation_mgr.cxx</implementation>
     <GUIMgr>
     </FGPrecipitationMgr>
     <FGProperties>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Canvas/gui_mgr.hxx</declaration>
      <staticSubsystemClassId>properties</staticSubsystemClassId>
       <implementation>src/Canvas/gui_mgr.cxx</implementation>
       <declaration>src/Main/fg_props.hxx</declaration>
     </GUIMgr>
       <implementation>src/Main/fg_props.cxx</implementation>
     <GroundRadar>
     </FGProperties>
     <FGReplay>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Cockpit/groundradar.hxx</declaration>
      <staticSubsystemClassId>replay</staticSubsystemClassId>
       <implementation>src/Cockpit/groundradar.cxx</implementation>
       <declaration>src/Aircraft/replay.hxx</declaration>
     </GroundRadar>
       <implementation>src/Aircraft/replay.cxx</implementation>
     <HUD>
     </FGReplay>
     <FGRidgeLift>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/HUD/HUD.hxx</declaration>
      <staticSubsystemClassId>ridgelift</staticSubsystemClassId>
       <implementation>src/Instrumentation/HUD/HUD.cxx</implementation>
       <declaration>src/Environment/ridge_lift.hxx</declaration>
     </HUD>
       <implementation>src/Environment/ridge_lift.cxx</implementation>
     <HeadingIndicator>
     </FGRidgeLift>
     <FGRouteMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/heading_indicator.hxx</declaration>
      <staticSubsystemClassId>route-manager</staticSubsystemClassId>
       <implementation>src/Instrumentation/heading_indicator.cxx</implementation>
       <declaration>src/Autopilot/route_mgr.hxx</declaration>
     </HeadingIndicator>
       <implementation>src/Autopilot/route_mgr.cxx</implementation>
     <HeadingIndicatorDG>
     </FGRouteMgr>
     <FGScenery>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/heading_indicator_dg.hxx</declaration>
      <staticSubsystemClassId>scenery</staticSubsystemClassId>
       <implementation>src/Instrumentation/heading_indicator_dg.cxx</implementation>
       <declaration>src/Scenery/scenery.hxx</declaration>
     </HeadingIndicatorDG>
       <implementation>src/Scenery/scenery.cxx</implementation>
     <HeadingIndicatorFG>
     </FGScenery>
     <FGSoundManager>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/heading_indicator_fg.hxx</declaration>
      <staticSubsystemClassId>sound</staticSubsystemClassId>
       <implementation>src/Instrumentation/heading_indicator_fg.cxx</implementation>
       <declaration>src/Sound/soundmanager.hxx</declaration>
     </HeadingIndicatorFG>
       <implementation>src/Sound/soundmanager.cxx</implementation>
     <InstVerticalSpeedIndicator>
     </FGSoundManager>
     <FGSubmodelMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/inst_vertical_speed_indicator.hxx</declaration>
      <staticSubsystemClassId>submodel-mgr</staticSubsystemClassId>
       <implementation>src/Instrumentation/inst_vertical_speed_indicator.cxx</implementation>
       <declaration>src/AIModel/submodel.hxx</declaration>
     </InstVerticalSpeedIndicator>
       <implementation>src/AIModel/submodel.cxx</implementation>
     <LayerInterpolateController>
     </FGSubmodelMgr>
     <FGSubsystemExample>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/environment_ctrl.hxx</declaration>
       <declaration>docs-mini/README.introduction</declaration>
     </LayerInterpolateController>
     </FGSubsystemExample>
     <MK_VIII>
     <FGTrafficManager>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/mk_viii.hxx</declaration>
      <staticSubsystemClassId>traffic-manager</staticSubsystemClassId>
       <implementation>src/Instrumentation/mk_viii.cxx</implementation>
       <declaration>src/Traffic/TrafficMgr.hxx</declaration>
     </MK_VIII>
       <implementation>src/Traffic/TrafficMgr.cxx</implementation>
     <MagCompass>
     </FGTrafficManager>
     <FGViewMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/mag_compass.hxx</declaration>
      <staticSubsystemClassId>view-manager</staticSubsystemClassId>
       <implementation>src/Instrumentation/mag_compass.cxx</implementation>
       <declaration>src/Viewer/viewmgr.hxx</declaration>
     </MagCompass>
       <implementation>src/Viewer/viewmgr.cxx</implementation>
     <MasterReferenceGyro>
     </FGViewMgr>
     <FGVoiceMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/mrg.hxx</declaration>
      <staticSubsystemClassId>voice</staticSubsystemClassId>
       <implementation>src/Instrumentation/mrg.cxx</implementation>
       <declaration>src/Sound/voice.hxx</declaration>
     </MasterReferenceGyro>
       <implementation>src/Sound/voice.cxx</implementation>
     <NavDisplay>
     </FGVoiceMgr>
     <FakeRadioSub>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Cockpit/NavDisplay.hxx</declaration>
       <staticSubsystemClassId>fake-radio</staticSubsystemClassId>
       <implementation>src/Cockpit/NavDisplay.cxx</implementation>
       <declaration>simgear/structure/subsystem_test.cxx</declaration>
     </NavDisplay>
     </FakeRadioSub>
     <NavRadio>
     <GPS>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/newnavradio.hxx</declaration>
      <staticSubsystemClassId>gps</staticSubsystemClassId>
     </NavRadio>
       <declaration>src/Instrumentation/gps.hxx</declaration>
     <NewGUI>
      <implementation>src/Instrumentation/gps.cxx</implementation>
     </GPS>
     <GSDI>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/GUI/new_gui.hxx</declaration>
      <staticSubsystemClassId>gsdi</staticSubsystemClassId>
       <implementation>src/GUI/new_gui.cxx</implementation>
       <declaration>src/Instrumentation/gsdi.hxx</declaration>
     </NewGUI>
       <implementation>src/Instrumentation/gsdi.cxx</implementation>
     <PerformanceDB>
     </GSDI>
     <GUIMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/AIModel/performancedb.hxx</declaration>
      <staticSubsystemClassId>CanvasGUI</staticSubsystemClassId>
       <implementation>src/AIModel/performancedb.cxx</implementation>
       <declaration>src/Canvas/gui_mgr.hxx</declaration>
     </PerformanceDB>
       <implementation>src/Canvas/gui_mgr.cxx</implementation>
     <PitotSystem>
     </GUIMgr>
     <GroundRadar>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Systems/pitot.hxx</declaration>
      <staticSubsystemClassId>groundradar</staticSubsystemClassId>
       <implementation>src/Systems/pitot.cxx</implementation>
       <declaration>src/Cockpit/groundradar.hxx</declaration>
     </PitotSystem>
       <implementation>src/Cockpit/groundradar.cxx</implementation>
     <PropertyBasedMgr>
     </GroundRadar>
     <HUD>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/props/PropertyBasedMgr.hxx</declaration>
      <staticSubsystemClassId>hud</staticSubsystemClassId>
       <implementation>simgear/props/PropertyBasedMgr.cxx</implementation>
       <declaration>src/Instrumentation/HUD/HUD.hxx</declaration>
     </PropertyBasedMgr>
       <implementation>src/Instrumentation/HUD/HUD.cxx</implementation>
     <PropertyInterpolationMgr>
     </HUD>
     <HeadingIndicator>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/props/PropertyInterpolationMgr.hxx</declaration>
      <staticSubsystemClassId>heading-indicator</staticSubsystemClassId>
       <implementation>simgear/props/PropertyInterpolationMgr.cxx</implementation>
       <declaration>src/Instrumentation/heading_indicator.hxx</declaration>
     </PropertyInterpolationMgr>
       <implementation>src/Instrumentation/heading_indicator.cxx</implementation>
     <RadarAltimeter>
     </HeadingIndicator>
     <HeadingIndicatorDG>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/rad_alt.hxx</declaration>
      <staticSubsystemClassId>heading-indicator-dg</staticSubsystemClassId>
       <implementation>src/Instrumentation/rad_alt.cxx</implementation>
       <declaration>src/Instrumentation/heading_indicator_dg.hxx</declaration>
     </RadarAltimeter>
       <implementation>src/Instrumentation/heading_indicator_dg.cxx</implementation>
     <RealWxController>
     </HeadingIndicatorDG>
     <HeadingIndicatorFG>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/realwx_ctrl.hxx</declaration>
      <staticSubsystemClassId>heading-indicator-fg</staticSubsystemClassId>
       <implementation>src/Environment/realwx_ctrl.cxx</implementation>
       <declaration>src/Instrumentation/heading_indicator_fg.hxx</declaration>
     </RealWxController>
       <implementation>src/Instrumentation/heading_indicator_fg.cxx</implementation>
     <SGEventMgr>
     </HeadingIndicatorFG>
     <InstVerticalSpeedIndicator>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/structure/event_mgr.hxx</declaration>
      <staticSubsystemClassId>inst-vertical-speed-indicator</staticSubsystemClassId>
       <implementation>simgear/structure/event_mgr.cxx</implementation>
       <declaration>src/Instrumentation/inst_vertical_speed_indicator.hxx</declaration>
     </SGEventMgr>
       <implementation>src/Instrumentation/inst_vertical_speed_indicator.cxx</implementation>
     <SGInterpolator>
     </InstVerticalSpeedIndicator>
     <LayerInterpolateController>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/misc/interpolator.hxx</declaration>
       <declaration>src/Environment/environment_ctrl.hxx</declaration>
      <implementation>simgear/misc/interpolator.cxx</implementation>
     </LayerInterpolateController>
     </SGInterpolator>
     <MK_VIII>
     <SGPerformanceMonitor>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/structure/SGPerfMon.hxx</declaration>
      <staticSubsystemClassId>mk-viii</staticSubsystemClassId>
       <implementation>simgear/structure/SGPerfMon.cxx</implementation>
       <declaration>src/Instrumentation/mk_viii.hxx</declaration>
     </SGPerformanceMonitor>
       <implementation>src/Instrumentation/mk_viii.cxx</implementation>
     <SGSoundMgr>
     </MK_VIII>
     <MagCompass>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/sound/soundmgr.hxx</declaration>
      <staticSubsystemClassId>magnetic-compass</staticSubsystemClassId>
     </SGSoundMgr>
       <declaration>src/Instrumentation/mag_compass.hxx</declaration>
     <SGSubsystemMgr>
      <implementation>src/Instrumentation/mag_compass.cxx</implementation>
     </MagCompass>
     <MasterReferenceGyro>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/structure/subsystem_mgr.hxx</declaration>
      <staticSubsystemClassId>master-reference-gyro</staticSubsystemClassId>
       <implementation>simgear/structure/subsystem_mgr.cxx</implementation>
       <declaration>src/Instrumentation/mrg.hxx</declaration>
     </SGSubsystemMgr>
       <implementation>src/Instrumentation/mrg.cxx</implementation>
     <SGTerraSync>
     </MasterReferenceGyro>
     <MySub1>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>simgear/scene/tsync/terrasync.hxx</declaration>
       <staticSubsystemClassId>mysub</staticSubsystemClassId>
       <implementation>simgear/scene/tsync/terrasync.cxx</implementation>
       <declaration>simgear/structure/subsystem_test.cxx</declaration>
     </SGTerraSync>
     </MySub1>
     <SlipSkidBall>
     <NavDisplay>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/slip_skid_ball.hxx</declaration>
      <staticSubsystemClassId>navigation-display</staticSubsystemClassId>
       <implementation>src/Instrumentation/slip_skid_ball.cxx</implementation>
       <declaration>src/Cockpit/NavDisplay.hxx</declaration>
     </SlipSkidBall>
       <implementation>src/Cockpit/NavDisplay.cxx</implementation>
     <StaticSystem>
     </NavDisplay>
     <NavRadio>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Systems/static.hxx</declaration>
      <staticSubsystemClassId>nav-radio</staticSubsystemClassId>
       <implementation>src/Systems/static.cxx</implementation>
       <declaration>src/Instrumentation/newnavradio.hxx</declaration>
     </StaticSystem>
       <implementation>src/Instrumentation/newnavradio.cxx</implementation>
     <TACAN>
     </NavRadio>
     <NewGUI>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/tacan.hxx</declaration>
      <staticSubsystemClassId>gui</staticSubsystemClassId>
       <implementation>src/Instrumentation/tacan.cxx</implementation>
       <declaration>src/GUI/new_gui.hxx</declaration>
     </TACAN>
       <implementation>src/GUI/new_gui.cxx</implementation>
     <TCAS>
     </NewGUI>
     <PerformanceDB>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/tcas.hxx</declaration>
      <staticSubsystemClassId>aircraft-performance-db</staticSubsystemClassId>
       <implementation>src/Instrumentation/tcas.cxx</implementation>
       <declaration>src/AIModel/performancedb.hxx</declaration>
     </TCAS>
       <implementation>src/AIModel/performancedb.cxx</implementation>
     <TimeManager>
     </PerformanceDB>
     <PitotSystem>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Time/TimeManager.hxx</declaration>
      <staticSubsystemClassId>pitot</staticSubsystemClassId>
       <implementation>src/Time/TimeManager.cxx</implementation>
       <declaration>src/Systems/pitot.hxx</declaration>
     </TimeManager>
       <implementation>src/Systems/pitot.cxx</implementation>
     <Transponder>
     </PitotSystem>
     <PropertyBasedMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/transponder.hxx</declaration>
       <declaration>simgear/props/PropertyBasedMgr.hxx</declaration>
       <implementation>src/Instrumentation/transponder.cxx</implementation>
       <implementation>simgear/props/PropertyBasedMgr.cxx</implementation>
     </Transponder>
     </PropertyBasedMgr>
     <TurnIndicator>
     <PropertyInterpolationMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/turn_indicator.hxx</declaration>
       <declaration>simgear/props/PropertyInterpolationMgr.hxx</declaration>
       <implementation>src/Instrumentation/turn_indicator.cxx</implementation>
       <implementation>simgear/props/PropertyInterpolationMgr.cxx</implementation>
     </TurnIndicator>
     </PropertyInterpolationMgr>
     <VacuumSystem>
     <RadarAltimeter>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Systems/vacuum.hxx</declaration>
      <staticSubsystemClassId>radar-altimeter</staticSubsystemClassId>
       <implementation>src/Systems/vacuum.cxx</implementation>
       <declaration>src/Instrumentation/rad_alt.hxx</declaration>
     </VacuumSystem>
       <implementation>src/Instrumentation/rad_alt.cxx</implementation>
     <VerticalSpeedIndicator>
     </RadarAltimeter>
     <RealWxController>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Instrumentation/vertical_speed_indicator.hxx</declaration>
       <declaration>src/Environment/realwx_ctrl.hxx</declaration>
       <implementation>src/Instrumentation/vertical_speed_indicator.cxx</implementation>
       <implementation>src/Environment/realwx_ctrl.cxx</implementation>
     </VerticalSpeedIndicator>
     </RealWxController>
     <View>
     <SGEventMgr>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Viewer/view.hxx</declaration>
      <staticSubsystemClassId>events</staticSubsystemClassId>
       <implementation>src/Viewer/view.cxx</implementation>
       <declaration>simgear/structure/event_mgr.hxx</declaration>
     </View>
       <implementation>simgear/structure/event_mgr.cxx</implementation>
     <wxRadarBg>
     </SGEventMgr>
     <SGInterpolator>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Cockpit/wxradar.hxx</declaration>
      <staticSubsystemClassId>interpolator</staticSubsystemClassId>
       <implementation>src/Cockpit/wxradar.cxx</implementation>
       <declaration>simgear/misc/interpolator.hxx</declaration>
     </wxRadarBg>
       <implementation>simgear/misc/interpolator.cxx</implementation>
  </primary_subsystems>
     </SGInterpolator>
  <primary_groups count="8">
    <SGPerformanceMonitor>
    <Autopilot>
      <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <staticSubsystemClassId>performance-mon</staticSubsystemClassId>
       <declaration>src/Autopilot/autopilot.hxx</declaration>
       <declaration>simgear/structure/SGPerfMon.hxx</declaration>
       <implementation>src/Autopilot/autopilot.cxx</implementation>
       <implementation>simgear/structure/SGPerfMon.cxx</implementation>
     </Autopilot>
     </SGPerformanceMonitor>
     <CockpitDisplayManager>
     <SGSoundMgr>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Cockpit/cockpitDisplayManager.hxx</declaration>
       <staticSubsystemClassId>sound</staticSubsystemClassId>
       <implementation>src/Cockpit/cockpitDisplayManager.cxx</implementation>
       <declaration>simgear/sound/soundmgr.hxx</declaration>
     </CockpitDisplayManager>
     </SGSoundMgr>
     <FGEnvironmentMgr>
     <SGSubsystemMgr>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/environment_mgr.hxx</declaration>
       <staticSubsystemClassId>subsystem-mgr</staticSubsystemClassId>
       <implementation>src/Environment/environment_mgr.cxx</implementation>
      <declaration>simgear/structure/subsystem_mgr.hxx</declaration>
     </FGEnvironmentMgr>
       <implementation>simgear/structure/subsystem_mgr.cxx</implementation>
     <FGInput>
     </SGSubsystemMgr>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
     <SGTerraSync>
       <declaration>src/Input/input.hxx</declaration>
       <inheritance>SGSubsystem</inheritance>
       <implementation>src/Input/input.cxx</implementation>
       <staticSubsystemClassId>terrasync</staticSubsystemClassId>
     </FGInput>
      <declaration>simgear/scene/tsync/terrasync.hxx</declaration>
     <FGInstrumentMgr>
       <implementation>simgear/scene/tsync/terrasync.cxx</implementation>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
     </SGTerraSync>
       <declaration>src/Instrumentation/instrument_mgr.hxx</declaration>
     <SlipSkidBall>
       <implementation>src/Instrumentation/instrument_mgr.cxx</implementation>
       <inheritance>SGSubsystem</inheritance>
     </FGInstrumentMgr>
       <staticSubsystemClassId>slip-skid-ball</staticSubsystemClassId>
     <FGSystemMgr>
      <declaration>src/Instrumentation/slip_skid_ball.hxx</declaration>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <implementation>src/Instrumentation/slip_skid_ball.cxx</implementation>
       <declaration>src/Systems/system_mgr.hxx</declaration>
     </SlipSkidBall>
       <implementation>src/Systems/system_mgr.cxx</implementation>
     <StaticSystem>
     </FGSystemMgr>
       <inheritance>SGSubsystem</inheritance>
     <FGXMLAutopilotGroup>
      <staticSubsystemClassId>static</staticSubsystemClassId>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <declaration>src/Systems/static.hxx</declaration>
       <declaration>src/Autopilot/autopilotgroup.hxx</declaration>
       <implementation>src/Systems/static.cxx</implementation>
       <implementation>src/Autopilot/autopilotgroup.cxx</implementation>
     </StaticSystem>
     </FGXMLAutopilotGroup>
     <SwiftConnection>
     <TerrainSampler>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <staticSubsystemClassId>swift</staticSubsystemClassId>
       <declaration>src/Environment/terrainsampler.hxx</declaration>
      <declaration>src/Network/Swift/swift_connection.hxx</declaration>
    </TerrainSampler>
       <implementation>src/Network/Swift/swift_connection.cxx</implementation>
  </primary_groups>
     </SwiftConnection>
  <secondary_subsystems count="28">
     <TACAN>
     <AnalogComponent>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>Component : SGSubsystem</inheritance>
      <staticSubsystemClassId>tacan</staticSubsystemClassId>
       <declaration>src/Autopilot/analogcomponent.hxx</declaration>
       <declaration>src/Instrumentation/tacan.hxx</declaration>
       <implementation>src/Autopilot/analogcomponent.cxx</implementation>
      <implementation>src/Instrumentation/tacan.cxx</implementation>
     </AnalogComponent>
    </TACAN>
     <BasicRealWxController>
     <TCAS>
       <inheritance>RealWxController : SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/Environment/realwx_ctrl.cxx</declaration>
      <staticSubsystemClassId>tcas</staticSubsystemClassId>
       <implementation>src/Environment/realwx_ctrl.cxx</implementation>
       <declaration>src/Instrumentation/tcas.hxx</declaration>
     </BasicRealWxController>
       <implementation>src/Instrumentation/tcas.cxx</implementation>
     <CanvasMgr>
     </TCAS>
       <inheritance>PropertyBasedMgr : SGSubsystem</inheritance>
     <TimeManager>
       <declaration>simgear/canvas/CanvasMgr.hxx</declaration>
       <inheritance>SGSubsystem</inheritance>
       <implementation>simgear/canvas/CanvasMgr.cxx</implementation>
       <staticSubsystemClassId>time</staticSubsystemClassId>
     </CanvasMgr>
      <declaration>src/Time/TimeManager.hxx</declaration>
     <CommRadioImpl>
       <implementation>src/Time/TimeManager.cxx</implementation>
       <inheritance>CommRadio : SGSubsystem</inheritance>
     </TimeManager>
       <declaration>src/Instrumentation/commradio.cxx</declaration>
     <TurnIndicator>
       <implementation>src/Instrumentation/commradio.cxx</implementation>
       <inheritance>SGSubsystem</inheritance>
     </CommRadioImpl>
       <staticSubsystemClassId>turn-indicator</staticSubsystemClassId>
     <DigitalComponent>
      <declaration>src/Instrumentation/turn_indicator.hxx</declaration>
       <inheritance>Component : SGSubsystem</inheritance>
       <implementation>src/Instrumentation/turn_indicator.cxx</implementation>
       <declaration>src/Autopilot/digitalcomponent.hxx</declaration>
     </TurnIndicator>
       <implementation>src/Autopilot/digitalcomponent.cxx</implementation>
     <VacuumSystem>
     </DigitalComponent>
       <inheritance>SGSubsystem</inheritance>
     <FGACMS>
       <staticSubsystemClassId>vacuum</staticSubsystemClassId>
       <inheritance>FGInterface : SGSubsystem</inheritance>
      <declaration>src/Systems/vacuum.hxx</declaration>
       <declaration>src/FDM/SP/ACMS.hxx</declaration>
       <implementation>src/Systems/vacuum.cxx</implementation>
       <implementation>src/FDM/SP/ACMS.cxx</implementation>
     </VacuumSystem>
     </FGACMS>
     <VerticalSpeedIndicator>
     <FGADA>
       <inheritance>SGSubsystem</inheritance>
       <inheritance>FGInterface : SGSubsystem</inheritance>
      <staticSubsystemClassId>vertical-speed-indicator</staticSubsystemClassId>
       <declaration>src/FDM/SP/ADA.hxx</declaration>
       <declaration>src/Instrumentation/vertical_speed_indicator.hxx</declaration>
       <implementation>src/FDM/SP/ADA.cxx</implementation>
       <implementation>src/Instrumentation/vertical_speed_indicator.cxx</implementation>
     </FGADA>
     </VerticalSpeedIndicator>
    <FGAISim>
     <View>
      <inheritance>FGInterface : SGSubsystem</inheritance>
       <inheritance>SGSubsystem</inheritance>
       <declaration>src/FDM/SP/AISim.hpp</declaration>
      <staticSubsystemClassId>view</staticSubsystemClassId>
       <implementation>src/FDM/SP/AISim.cpp</implementation>
       <declaration>src/Viewer/view.hxx</declaration>
     </FGAISim>
       <implementation>src/Viewer/view.cxx</implementation>
     <FGBalloonSim>
     </View>
       <inheritance>FGInterface : SGSubsystem</inheritance>
     <wxRadarBg>
       <declaration>src/FDM/SP/Balloon.h</declaration>
       <inheritance>SGSubsystem</inheritance>
       <implementation>src/FDM/SP/Balloon.cxx</implementation>
       <staticSubsystemClassId>radar</staticSubsystemClassId>
     </FGBalloonSim>
      <declaration>src/Cockpit/wxradar.hxx</declaration>
     <FGExternalNet>
       <implementation>src/Cockpit/wxradar.cxx</implementation>
       <inheritance>FGInterface : SGSubsystem</inheritance>
     </wxRadarBg>
       <declaration>src/FDM/ExternalNet/ExternalNet.hxx</declaration>
  </primary_subsystems>
       <implementation>src/FDM/ExternalNet/ExternalNet.cxx</implementation>
  <primary_groups count="8">
     </FGExternalNet>
    <Autopilot>
     <FGExternalPipe>
      <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <staticSubsystemClassId>autopilot</staticSubsystemClassId>
       <declaration>src/FDM/ExternalPipe/ExternalPipe.hxx</declaration>
       <declaration>src/Autopilot/autopilot.hxx</declaration>
       <implementation>src/FDM/ExternalPipe/ExternalPipe.cxx</implementation>
      <implementation>src/Autopilot/autopilot.cxx</implementation>
     </FGExternalPipe>
     </Autopilot>
     <FGHIDEventInput>
     <CockpitDisplayManager>
       <inheritance>FGEventInput : SGSubsystem</inheritance>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <declaration>src/Input/FGHIDEventInput.hxx</declaration>
       <staticSubsystemClassId>cockpit-displays</staticSubsystemClassId>
       <implementation>src/Input/FGHIDEventInput.cxx</implementation>
      <declaration>src/Cockpit/cockpitDisplayManager.hxx</declaration>
     </FGHIDEventInput>
       <implementation>src/Cockpit/cockpitDisplayManager.cxx</implementation>
     <FGJSBsim>
     </CockpitDisplayManager>
       <inheritance>FGInterface : SGSubsystem</inheritance>
     <FGEnvironmentMgr>
       <declaration>src/FDM/JSBSim/JSBSim.hxx</declaration>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <implementation>src/FDM/JSBSim/JSBSim.cxx</implementation>
       <staticSubsystemClassId>environment</staticSubsystemClassId>
     </FGJSBsim>
      <declaration>src/Environment/environment_mgr.hxx</declaration>
     <FGLaRCsim>
       <implementation>src/Environment/environment_mgr.cxx</implementation>
       <inheritance>FGInterface : SGSubsystem</inheritance>
     </FGEnvironmentMgr>
       <declaration>src/FDM/LaRCsim/LaRCsim.hxx</declaration>
     <FGInput>
       <implementation>src/FDM/LaRCsim/LaRCsim.cxx</implementation>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
     </FGLaRCsim>
      <staticSubsystemClassId>input</staticSubsystemClassId>
     <FGLinuxEventInput>
       <declaration>src/Input/input.hxx</declaration>
       <inheritance>FGEventInput : SGSubsystem</inheritance>
       <implementation>src/Input/input.cxx</implementation>
       <declaration>src/Input/FGLinuxEventInput.hxx</declaration>
     </FGInput>
      <implementation>src/Input/FGLinuxEventInput.cxx</implementation>
     <FGSystemMgr>
    </FGLinuxEventInput>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
    <FGMacOSXEventInput>
      <staticSubsystemClassId>systems</staticSubsystemClassId>
       <inheritance>FGEventInput : SGSubsystem</inheritance>
       <declaration>src/Systems/system_mgr.hxx</declaration>
       <declaration>src/Input/FGMacOSXEventInput.hxx</declaration>
       <implementation>src/Systems/system_mgr.cxx</implementation>
       <implementation>src/Input/FGMacOSXEventInput.cxx</implementation>
     </FGSystemMgr>
     </FGMacOSXEventInput>
     <FGXMLAutopilotGroup>
     <FGMagicCarpet>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <staticSubsystemClassId>xml-rules</staticSubsystemClassId>
       <declaration>src/FDM/SP/MagicCarpet.hxx</declaration>
      <declaration>src/Autopilot/autopilotgroup.hxx</declaration>
       <implementation>src/FDM/SP/MagicCarpet.cxx</implementation>
       <implementation>src/Autopilot/autopilotgroup.cxx</implementation>
     </FGMagicCarpet>
     </FGXMLAutopilotGroup>
     <FGNullFDM>
     <InstrumentGroup>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <staticSubsystemClassId>instruments</staticSubsystemClassId>
       <declaration>simgear/structure/subsystem_test.cxx</declaration>
     </InstrumentGroup>
     <TerrainSampler>
       <inheritance>SGSubsystemGroup : SGSubsystem</inheritance>
       <declaration>src/Environment/terrainsampler.hxx</declaration>
    </TerrainSampler>
  </primary_groups>
  <secondary_subsystems count="32">
    <ADF>
       <inheritance>AbstractInstrument : SGSubsystem</inheritance>
      <staticSubsystemClassId>adf</staticSubsystemClassId>
       <declaration>src/Instrumentation/adf.hxx</declaration>
       <implementation>src/Instrumentation/adf.cxx</implementation>
     </ADF>
     <AnalogComponent>
       <inheritance>Component : SGSubsystem</inheritance>
       <declaration>src/Autopilot/analogcomponent.hxx</declaration>
       <implementation>src/Autopilot/analogcomponent.cxx</implementation>
     </AnalogComponent>
     <BasicRealWxController>
      <inheritance>RealWxController : SGSubsystem</inheritance>
      <declaration>src/Environment/realwx_ctrl.cxx</declaration>
      <implementation>src/Environment/realwx_ctrl.cxx</implementation>
    </BasicRealWxController>
    <CanvasMgr>
      <inheritance>PropertyBasedMgr : SGSubsystem</inheritance>
      <declaration>simgear/canvas/CanvasMgr.hxx</declaration>
      <implementation>simgear/canvas/CanvasMgr.cxx</implementation>
    </CanvasMgr>
    <CommRadio>
      <inheritance>AbstractInstrument : SGSubsystem</inheritance>
      <staticSubsystemClassId>comm-radio</staticSubsystemClassId>
      <declaration>src/Instrumentation/commradio.hxx</declaration>
      <implementation>src/Instrumentation/commradio.cxx</implementation>
    </CommRadio>
    <DME>
      <inheritance>AbstractInstrument : SGSubsystem</inheritance>
      <staticSubsystemClassId>dme</staticSubsystemClassId>
      <declaration>src/Instrumentation/dme.hxx</declaration>
      <implementation>src/Instrumentation/dme.cxx</implementation>
    </DME>
    <DigitalComponent>
      <inheritance>Component : SGSubsystem</inheritance>
      <declaration>src/Autopilot/digitalcomponent.hxx</declaration>
      <implementation>src/Autopilot/digitalcomponent.cxx</implementation>
    </DigitalComponent>
    <FGACMS>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <declaration>src/FDM/NullFDM.hxx</declaration>
       <staticSubsystemClassId>acms</staticSubsystemClassId>
       <implementation>src/FDM/NullFDM.cxx</implementation>
       <declaration>src/FDM/SP/ACMS.hxx</declaration>
    </FGNullFDM>
       <implementation>src/FDM/SP/ACMS.cxx</implementation>
    <FGReadablePanel>
     </FGACMS>
      <inheritance>FGPanel : SGSubsystem</inheritance>
     <FGADA>
      <declaration>utils/fgpanel/panel_io.hxx</declaration>
       <implementation>utils/fgpanel/panel_io.cxx</implementation>
    </FGReadablePanel>
    <FGSoundManager>
      <inheritance>SGSoundMgr : SGSubsystem</inheritance>
      <declaration>src/Sound/soundmanager.hxx</declaration>
      <implementation>src/Sound/soundmanager.cxx</implementation>
     </FGSoundManager>
     <FGUFO>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <declaration>src/FDM/UFO.hxx</declaration>
       <staticSubsystemClassId>ada</staticSubsystemClassId>
       <implementation>src/FDM/UFO.cxx</implementation>
       <declaration>src/FDM/SP/ADA.hxx</declaration>
    </FGUFO>
       <implementation>src/FDM/SP/ADA.cxx</implementation>
    <KLN89>
     </FGADA>
      <inheritance>DCLGPS : SGSubsystem</inheritance>
     <FGAISim>
      <declaration>src/Instrumentation/KLN89/kln89.hxx</declaration>
       <implementation>src/Instrumentation/KLN89/kln89.cxx</implementation>
    </KLN89>
    <LayerInterpolateControllerImplementation>
      <inheritance>LayerInterpolateController : SGSubsystem</inheritance>
      <declaration>src/Environment/environment_ctrl.cxx</declaration>
      <implementation>src/Environment/environment_ctrl.cxx</implementation>
    </LayerInterpolateControllerImplementation>
    <MongooseHttpd>
      <inheritance>FGHttpd : SGSubsystem</inheritance>
      <declaration>src/Network/http/httpd.cxx</declaration>
      <implementation>src/Network/http/httpd.cxx</implementation>
    </MongooseHttpd>
    <NavRadioImpl>
      <inheritance>NavRadio : SGSubsystem</inheritance>
      <declaration>src/Instrumentation/newnavradio.cxx</declaration>
      <implementation>src/Instrumentation/newnavradio.cxx</implementation>
    </NavRadioImpl>
    <StateMachineComponent>
      <inheritance>Component : SGSubsystem</inheritance>
      <declaration>src/Autopilot/autopilot.cxx</declaration>
      <implementation>src/Autopilot/autopilot.cxx</implementation>
     </StateMachineComponent>
     <YASim>
       <inheritance>FGInterface : SGSubsystem</inheritance>
       <inheritance>FGInterface : SGSubsystem</inheritance>
      <declaration>src/FDM/YASim/YASim.hxx</declaration>
      <staticSubsystemClassId>aisim</staticSubsystemClassId>
      <implementation>src/FDM/YASim/YASim.cxx</implementation>
      <declaration>src/FDM/SP/AISim.hpp</declaration>
    </YASim>
      <implementation>src/FDM/SP/AISim.cpp</implementation>
    <agRadar>
    </FGAISim>
      <inheritance>wxRadarBg : SGSubsystem</inheritance>
    <FGBalloonSim>
      <declaration>src/Cockpit/agradar.hxx</declaration>
      <inheritance>FGInterface : SGSubsystem</inheritance>
      <implementation>src/Cockpit/agradar.cxx</implementation>
      <staticSubsystemClassId>balloon</staticSubsystemClassId>
    </agRadar>
      <declaration>src/FDM/SP/Balloon.h</declaration>
  </secondary_subsystems>
      <implementation>src/FDM/SP/Balloon.cxx</implementation>
  <secondary_groups count="2">
    </FGBalloonSim>
    <FGXMLAutopilotGroupImplementation>
    <FGExternalNet>
      <inheritance>FGXMLAutopilotGroup : SGSubsystemGroup : SGSubsystem</inheritance>
      <inheritance>FGInterface : SGSubsystem</inheritance>
      <declaration>src/Autopilot/autopilotgroup.cxx</declaration>
      <staticSubsystemClassId>network</staticSubsystemClassId>
      <implementation>src/Autopilot/autopilotgroup.cxx</implementation>
      <declaration>src/FDM/ExternalNet/ExternalNet.hxx</declaration>
    </FGXMLAutopilotGroupImplementation>
      <implementation>src/FDM/ExternalNet/ExternalNet.cxx</implementation>
    <TerrainSamplerImplementation>
    </FGExternalNet>
      <inheritance>TerrainSampler : SGSubsystemGroup : SGSubsystem</inheritance>
    <FGExternalPipe>
      <declaration>src/Environment/terrainsampler.cxx</declaration>
      <inheritance>FGInterface : SGSubsystem</inheritance>
      <implementation>src/Environment/terrainsampler.cxx</implementation>
      <staticSubsystemClassId>pipe</staticSubsystemClassId>
    </TerrainSamplerImplementation>
      <declaration>src/FDM/ExternalPipe/ExternalPipe.hxx</declaration>
  </secondary_groups>
      <implementation>src/FDM/ExternalPipe/ExternalPipe.cxx</implementation>
  <tertiary_subsystems count="6">
    </FGExternalPipe>
    <DigitalFilter>
    <FGHIDEventInput>
      <inheritance>AnalogComponent : Component : SGSubsystem</inheritance>
      <inheritance>FGEventInput : SGSubsystem</inheritance>
      <declaration>src/Autopilot/digitalfilter.hxx</declaration>
      <staticSubsystemClassId>input-event-hid</staticSubsystemClassId>
      <implementation>src/Autopilot/digitalfilter.cxx</implementation>
      <declaration>src/Input/FGHIDEventInput.hxx</declaration>
    </DigitalFilter>
      <implementation>src/Input/FGHIDEventInput.cxx</implementation>
    <Logic>
    </FGHIDEventInput>
      <inheritance>DigitalComponent : Component : SGSubsystem</inheritance>
    <FGInterpolator>
      <declaration>src/Autopilot/logic.hxx</declaration>
      <inheritance>PropertyInterpolationMgr : SGSubsystem</inheritance>
      <implementation>src/Autopilot/logic.cxx</implementation>
      <staticSubsystemClassId>prop-interpolator</staticSubsystemClassId>
    </Logic>
      <declaration>src/Main/FGInterpolator.hxx</declaration>
    <NoaaMetarRealWxController>
      <implementation>src/Main/FGInterpolator.cxx</implementation>
      <inheritance>BasicRealWxController : RealWxController : SGSubsystem</inheritance>
    </FGInterpolator>
      <declaration>src/Environment/realwx_ctrl.cxx</declaration>
    <FGJSBsim>
      <implementation>src/Environment/realwx_ctrl.cxx</implementation>
      <inheritance>FGInterface : SGSubsystem</inheritance>
    </NoaaMetarRealWxController>
      <staticSubsystemClassId>jsb</staticSubsystemClassId>
    <PIDController>
      <declaration>src/FDM/JSBSim/JSBSim.hxx</declaration>
      <inheritance>AnalogComponent : Component : SGSubsystem</inheritance>
      <implementation>src/FDM/JSBSim/JSBSim.cxx</implementation>
      <declaration>src/Autopilot/pidcontroller.hxx</declaration>
    </FGJSBsim>
      <implementation>src/Autopilot/pidcontroller.cxx</implementation>
    <FGLaRCsim>
    </PIDController>
      <inheritance>FGInterface : SGSubsystem</inheritance>
    <PISimpleController>
      <staticSubsystemClassId>larcsim</staticSubsystemClassId>
      <inheritance>
      <declaration>src/FDM/LaRCsim/LaRCsim.hxx</declaration>
      <implementation>src/FDM/LaRCsim/LaRCsim.cxx</implementation>
    </FGLaRCsim>
    <FGLinuxEventInput>
      <inheritance>FGEventInput : SGSubsystem</inheritance>
      <staticSubsystemClassId>input-event</staticSubsystemClassId>
      <declaration>src/Input/FGLinuxEventInput.hxx</declaration>
      <implementation>src/Input/FGLinuxEventInput.cxx</implementation>
    </FGLinuxEventInput>
    <FGMacOSXEventInput>
      <inheritance>FGEventInput : SGSubsystem</inheritance>
      <staticSubsystemClassId>input-event</staticSubsystemClassId>
      <declaration>src/Input/FGMacOSXEventInput.hxx</declaration>
      <implementation>src/Input/FGMacOSXEventInput.cxx</implementation>
    </FGMacOSXEventInput>
    <FGMagicCarpet>
      <inheritance>FGInterface : SGSubsystem</inheritance>
      <staticSubsystemClassId>magic</staticSubsystemClassId>
      <declaration>src/FDM/SP/MagicCarpet.hxx</declaration>
      <implementation>src/FDM/SP/MagicCarpet.cxx</implementation>
    </FGMagicCarpet>
    <FGMarkerBeacon>
      <inheritance>AbstractInstrument : SGSubsystem</inheritance>
      <staticSubsystemClassId>marker-beacon</staticSubsystemClassId>
      <declaration>src/Instrumentation/marker_beacon.hxx</declaration>
      <implementation>src/Instrumentation/marker_beacon.cxx</implementation>
    </FGMarkerBeacon>
    <FGNavRadio>
      <inheritance>AbstractInstrument : SGSubsystem</inheritance>
      <staticSubsystemClassId>old-navradio</staticSubsystemClassId>
      <declaration>src/Instrumentation/navradio.hxx</declaration>
      <implementation>src/Instrumentation/navradio.cxx</implementation>
    </FGNavRadio>
    <FGNullFDM>
      <inheritance>FGInterface : SGSubsystem</inheritance>
 


{{collapsible script
        # First find all subsystems.
| type  = Flightgear subsystem implementation file listing output
        sub = FindSubsystems()
| title  = The implementation files for all flightgear subsystems (excluding simgear sources and excluding subsystem groups).
 
| intro  = Implementation file listing output from the Python script for finding all subsystems within the flightgear C++ code base. The error output from the script was redirected and hence not shown below.
        # Generate a list of files to skip.
| lang  = shell
        cmd = "cd %s;" % SIMGEAR_PATH
| script =  
        cmd += "git diff --name-only ..next;"
$ ./find_subsystems.py -i -f -n 2> /dev/null {{!}} sort
        cmd += "cd %s;" % FLIGHTGEAR_PATH
docs-mini/README.introduction
        cmd += "git diff --name-only ..next"
src/AIModel/AIManager.cxx
        pipe = Popen(cmd, shell=True, stdout=PIPE)
src/AIModel/performancedb.cxx
        blacklist = []
src/AIModel/submodel.cxx
        for line in pipe.stdout.readlines():
src/Aircraft/controls.cxx
            file_name = line.decode()
src/Aircraft/FlightHistory.cxx
            file_name = file_name.strip()
src/Aircraft/replay.cxx
            blacklist.append(file_name)
src/Airports/airportdynamicsmanager.cxx
 
src/ATC/atc_mgr.cxx
        # Loop over all derived class declarations.
src/Autopilot/analogcomponent.cxx
        print("\nYet to be updated:")
src/Autopilot/autopilot.cxx
        for subsystem in sub.subsystems[0] + sub.subsystems[1] + sub.subsystems[2] + sub.subsystems[3] + sub.groups[0] + sub.groups[1] + sub.groups[2] + sub.groups[3]:
src/Autopilot/component.cxx
            if subsystem.declaration_file not in blacklist:
src/Autopilot/digitalcomponent.cxx
                print("    %s: %s" % (subsystem.declaration_file, subsystem))
src/Autopilot/digitalfilter.cxx
 
src/Autopilot/flipflop.cxx
 
src/Autopilot/logic.cxx
 
src/Autopilot/pidcontroller.cxx
# Instantiate the class if run as a script.
src/Autopilot/pisimplecontroller.cxx
if __name__ == "__main__":
src/Autopilot/predictor.cxx
    ToUpdate()
src/Autopilot/route_mgr.cxx
}}
src/Canvas/gui_mgr.cxx
 
src/Cockpit/agradar.cxx
== Automated test suite test creation ==
src/Cockpit/groundradar.cxx
 
src/Cockpit/NavDisplay.cxx
This script was used to generate the instanced and non-instanced subsystem system tests:
src/Cockpit/wxradar.cxx
 
src/Environment/environment_ctrl.cxx
{{collapsible script
src/Environment/ephemeris.cxx
| type  = Python script
src/Environment/magvarmanager.cxx
| title  = Python script for generating the code for the system tests
src/Environment/precipitation_mgr.cxx
| lang  = python
src/Environment/realwx_ctrl.cxx
| script =
src/Environment/realwx_ctrl.cxx
#! /usr/bin/env python3
src/Environment/realwx_ctrl.cxx
 
src/Environment/ridge_lift.cxx
# Other module imports.
src/Environment/terrainsampler.cxx
from find_subsystems import FindSubsystems
src/FDM/ExternalNet/ExternalNet.cxx
 
src/FDM/ExternalPipe/ExternalPipe.cxx
 
src/FDM/fdm_shell.cxx
class TestSuite:
src/FDM/flight.cxx
    """Class for generating the code for the system tests."""
src/FDM/JSBSim/JSBSim.cxx
 
src/FDM/LaRCsim/LaRCsim.cxx
    def __init__(self):
src/FDM/NullFDM.cxx
        """Auto-generate the C++ code."""
src/FDM/SP/ACMS.cxx
 
src/FDM/SP/ADA.cxx
        # First find all subsystems.
src/FDM/SP/AISim.cpp
        sub = FindSubsystems(output=False)
src/FDM/SP/Balloon.cxx
src/FDM/SP/MagicCarpet.cxx
src/FDM/UFO.cxx
src/FDM/YASim/YASim.cxx
src/GUI/new_gui.cxx
src/Input/FGEventInput.cxx
src/Input/FGHIDEventInput.cxx
src/Input/FGJoystickInput.cxx
src/Input/FGKeyboardInput.cxx
src/Input/FGLinuxEventInput.cxx
src/Input/FGMacOSXEventInput.cxx
src/Input/FGMouseInput.cxx
src/Instrumentation/adf.cxx
src/Instrumentation/airspeed_indicator.cxx
src/Instrumentation/altimeter.cxx
src/Instrumentation/attitude_indicator.cxx
src/Instrumentation/clock.cxx
src/Instrumentation/commradio.cxx
src/Instrumentation/dclgps.cxx
src/Instrumentation/dme.cxx
src/Instrumentation/gps.cxx
src/Instrumentation/gsdi.cxx
src/Instrumentation/heading_indicator.cxx
src/Instrumentation/heading_indicator_dg.cxx
src/Instrumentation/heading_indicator_fg.cxx
src/Instrumentation/HUD/HUD.cxx
src/Instrumentation/inst_vertical_speed_indicator.cxx
src/Instrumentation/KLN89/kln89.cxx
src/Instrumentation/kr_87.cxx
src/Instrumentation/mag_compass.cxx
src/Instrumentation/marker_beacon.cxx
src/Instrumentation/mk_viii.cxx
src/Instrumentation/mrg.cxx
src/Instrumentation/navradio.cxx
src/Instrumentation/newnavradio.cxx
src/Instrumentation/rad_alt.cxx
src/Instrumentation/slip_skid_ball.cxx
src/Instrumentation/tacan.cxx
src/Instrumentation/tcas.cxx
src/Instrumentation/transponder.cxx
src/Instrumentation/turn_indicator.cxx
src/Instrumentation/vertical_speed_indicator.cxx
src/Main/fg_io.cxx
src/Main/fg_props.cxx
src/Main/logger.cxx
src/Model/acmodel.cxx
src/Model/modelmgr.cxx
src/MultiPlayer/multiplaymgr.cxx
src/Network/DNSClient.cxx
src/Network/fgcom.cxx
src/Network/HTTPClient.cxx
src/Network/http/httpd.cxx
src/Scenery/scenery.cxx
src/Scripting/NasalSys.cxx
src/Sound/soundmanager.cxx
src/Sound/soundmanager.cxx
src/Sound/voice.cxx
src/Systems/electrical.cxx
src/Systems/pitot.cxx
src/Systems/static.cxx
src/Systems/vacuum.cxx
src/Time/light.cxx
src/Time/TimeManager.cxx
src/Traffic/TrafficMgr.cxx
src/Viewer/view.cxx
src/Viewer/viewmgr.cxx
utils/fgpanel/FGPanel.cxx
utils/fgpanel/FGPanelProtocol.cxx
utils/fgpanel/panel_io.cxx
}}


== Refactoring ==
        # The test name and test code.
        name = []
        code = []


To check that all subsystems on a branch have been updated or refactored:
        # Loop over all derived class declarations.
 
        max_width = 0
{{collapsible script
        for subsystem in sub.subsystems[0] + sub.subsystems[1] + sub.subsystems[2] + sub.subsystems[3] + sub.groups[0] + sub.groups[1] + sub.groups[2] + sub.groups[3]:
| type  = Python script
            # Skip non-instantiated base classes.
| title  = Python script verifying if all subsystems have been updated.
            if not subsystem.staticSubsystemClassId:
| lang  = python
                continue
| script =
#! /usr/bin/env python3
 
# Python module imports.
from subprocess import PIPE, Popen


# Other module imports.
            # Add the test suite text.
from find_subsystems import FindSubsystems
            name.append("test%s" % (subsystem.name))
            code.append("{ create(\"%s\"); }" % (subsystem.staticSubsystemClassId))


            # Formatting.
            max_width = max(len(name[-1]), max_width)


# Source code repository paths.
        # Test setup printout.
SIMGEAR_PATH = "/flightgear/src/flightgear-simgear"
        print("\n")
FLIGHTGEAR_PATH = "/flightgear/src/flightgear-flightgear"
        print("   CPPUNIT_TEST_SUITE(NonInstancedSubsystemTests);")
        for i in range(len(name)):
            print("    CPPUNIT_TEST(%s);" % name[i])
        print("    CPPUNIT_TEST_SUITE_END();")


        # Test declaration printout.
        print("\n")
        print("    // The subsystem tests.")
        for i in range(len(name)):
            print("    void %s();" % name[i])


class ToUpdate:
         # Test implementation printout.
    """Class for finding all files yet to be updated."""
         print("\n")
 
         format_str = "void NonInstancedSubsystemTests::%%-%is() %%-s" % max_width
    def __init__(self):
         for i in range(len(name)):
        """Find all files to be updated."""
             print(format_str % (name[i], code[i]))
 
         # First find all subsystems.
         subsystems = FindSubsystems()
 
        # Generate a list of files to skip.
         cmd = "cd %s;" % SIMGEAR_PATH
        cmd += "git diff --name-only ..next;"
        cmd += "cd %s;" % FLIGHTGEAR_PATH
        cmd += "git diff --name-only ..next"
        pipe = Popen(cmd, shell=True, stdout=PIPE)
        blacklist = []
         for line in pipe.stdout.readlines():
            file_name = line.decode()
            file_name = file_name.strip()
            blacklist.append(file_name)
 
        # Loop over all derived classes.
        print("\nYet to be updated:")
        for storage_list in subsystems.subsystems + subsystems.groups:
             for subsystem in storage_list:
                if subsystem.file_name not in blacklist:
                    print("    %s: %s" % (subsystem.file_name, subsystem))




Line 2,107: Line 2,624:
# Instantiate the class if run as a script.
# Instantiate the class if run as a script.
if __name__ == "__main__":
if __name__ == "__main__":
     ToUpdate()
     TestSuite()
}}
}}

Revision as of 13:44, 1 July 2019

Tracking down subsystems

Script

The following script is for finding all FlightGear dependencies:

All subsystems

The result is:

Refactoring

To check that all subsystems on a branch have been updated or refactored:

Automated test suite test creation

This script was used to generate the instanced and non-instanced subsystem system tests: