def extract(self, structures_file):
        # extract license text
        license_text = LicenseExtractor.extract_license(structures_file)
        FileHandling.set_license(license_text)

        # extract tables from document
        table_list = TableExtractor.extract_structure_tables(structures_file)

        # create TPM_Types.h (and BaseTypes.h)
        self.create_tpm_types_h_file(table_list)

        self.marshaller.handle_arrays()
        self.marshaller.write()
Exemple #2
0
    def extract(self, structures_file):
        # extract license text
        license_text = LicenseExtractor.extract_license(structures_file)
        FileHandling.set_license(license_text)

        # extract tables from document
        table_list = TableExtractor.extract_structure_tables(structures_file)

        # create TPM_Types.h (and BaseTypes.h)
        self.create_tpm_types_h_file(table_list)

        self.marshaller.handle_arrays()
        self.marshaller.write()