Skip to content

Commit

Permalink
Reformat cpp/lang_pack.py with black
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Günther <[email protected]>
  • Loading branch information
tom-hg57 committed Oct 27, 2024
1 parent 3908907 commit fdc2279
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions cimgen/languages/cpp/lang_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,7 @@ def insert_get_fn(text, render):
return ""
label = attribute_json["label"]
class_name = attribute_json["domain"]
return (
' get_map.emplace("cim:'
+ class_name
+ "."
+ label
+ '", &get_'
+ class_name
+ "_"
+ label
+ ");\n"
)
return ' get_map.emplace("cim:' + class_name + "." + label + '", &get_' + class_name + "_" + label + ");\n"


def insert_class_get_fn(text, render):
Expand All @@ -193,17 +183,7 @@ def insert_class_get_fn(text, render):
return ""
label = attribute_json["label"]
class_name = attribute_json["domain"]
return (
' get_map.emplace("cim:'
+ class_name
+ "."
+ label
+ '", &get_'
+ class_name
+ "_"
+ label
+ ");\n"
)
return ' get_map.emplace("cim:' + class_name + "." + label + '", &get_' + class_name + "_" + label + ");\n"


def insert_enum_get_fn(text, render):
Expand All @@ -213,17 +193,7 @@ def insert_enum_get_fn(text, render):
return ""
label = attribute_json["label"]
class_name = attribute_json["domain"]
return (
' get_map.emplace("cim:'
+ class_name
+ "."
+ label
+ '", &get_'
+ class_name
+ "_"
+ label
+ ");\n"
)
return ' get_map.emplace("cim:' + class_name + "." + label + '", &get_' + class_name + "_" + label + ");\n"


def create_nullptr_assigns(text, render):
Expand Down

0 comments on commit fdc2279

Please sign in to comment.