From 7fb78004044b8f53a64e4b01ead0a8b21b515990 Mon Sep 17 00:00:00 2001 From: Asher Glick Date: Tue, 31 Oct 2023 16:59:59 -0500 Subject: [PATCH] renaming attribute cpp file templates to be more cohesive --- xml_converter/generators/code_generator.py | 6 +++--- ...mpoundvalue.cpp => attribute_template_compoundvalue.cpp} | 0 .../cpp_templates/{enum.cpp => attribute_template_enum.cpp} | 0 ...iflagvalue.cpp => attribute_template_multiflagvalue.cpp} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename xml_converter/generators/cpp_templates/{compoundvalue.cpp => attribute_template_compoundvalue.cpp} (100%) rename xml_converter/generators/cpp_templates/{enum.cpp => attribute_template_enum.cpp} (100%) rename xml_converter/generators/cpp_templates/{multiflagvalue.cpp => attribute_template_multiflagvalue.cpp} (100%) diff --git a/xml_converter/generators/code_generator.py b/xml_converter/generators/code_generator.py index ade3c76e..93600cca 100644 --- a/xml_converter/generators/code_generator.py +++ b/xml_converter/generators/code_generator.py @@ -470,9 +470,9 @@ def write_attribute(self, output_directory: str) -> None: metadata: Dict[str, SchemaType] = {} xml_fields: List[str] = [] template: Dict[str, Template] = { - "MultiflagValue": env.get_template("multiflagvalue.cpp"), - "CompoundValue": env.get_template("compoundvalue.cpp"), - "Enum": env.get_template("enum.cpp"), + "MultiflagValue": env.get_template("attribute_template_multiflagvalue.cpp"), + "CompoundValue": env.get_template("attribute_template_compoundvalue.cpp"), + "Enum": env.get_template("attribute_template_enum.cpp"), } for filepath in self.data.keys(): diff --git a/xml_converter/generators/cpp_templates/compoundvalue.cpp b/xml_converter/generators/cpp_templates/attribute_template_compoundvalue.cpp similarity index 100% rename from xml_converter/generators/cpp_templates/compoundvalue.cpp rename to xml_converter/generators/cpp_templates/attribute_template_compoundvalue.cpp diff --git a/xml_converter/generators/cpp_templates/enum.cpp b/xml_converter/generators/cpp_templates/attribute_template_enum.cpp similarity index 100% rename from xml_converter/generators/cpp_templates/enum.cpp rename to xml_converter/generators/cpp_templates/attribute_template_enum.cpp diff --git a/xml_converter/generators/cpp_templates/multiflagvalue.cpp b/xml_converter/generators/cpp_templates/attribute_template_multiflagvalue.cpp similarity index 100% rename from xml_converter/generators/cpp_templates/multiflagvalue.cpp rename to xml_converter/generators/cpp_templates/attribute_template_multiflagvalue.cpp