aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/qmi-codegen/VariableArray.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/qmi-codegen/VariableArray.py')
-rw-r--r--build-aux/qmi-codegen/VariableArray.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/build-aux/qmi-codegen/VariableArray.py b/build-aux/qmi-codegen/VariableArray.py
index a00fae5..7f677f8 100644
--- a/build-aux/qmi-codegen/VariableArray.py
+++ b/build-aux/qmi-codegen/VariableArray.py
@@ -344,6 +344,9 @@ class VariableArray(Variable):
Getter for the array type
"""
def build_getter_declaration(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'name' : variable_name }
@@ -362,6 +365,9 @@ class VariableArray(Variable):
Documentation for the getter
"""
def build_getter_documentation(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'public_array_element_format' : self.array_element.public_format,
'name' : variable_name }
@@ -380,6 +386,9 @@ class VariableArray(Variable):
Builds the array getter implementation
"""
def build_getter_implementation(self, line_prefix, variable_name_from, variable_name_to, to_is_reference):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'from' : variable_name_from,
'to' : variable_name_to }
@@ -405,6 +414,9 @@ class VariableArray(Variable):
Setter for the array type
"""
def build_setter_declaration(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'name' : variable_name }
@@ -423,6 +435,9 @@ class VariableArray(Variable):
Documentation for the setter
"""
def build_setter_documentation(self, line_prefix, variable_name):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'public_array_element_format' : self.array_element.public_format,
'name' : variable_name }
@@ -441,6 +456,9 @@ class VariableArray(Variable):
Builds the array setter implementation
"""
def build_setter_implementation(self, line_prefix, variable_name_from, variable_name_to):
+ if not self.visible:
+ return ""
+
translations = { 'lp' : line_prefix,
'from' : variable_name_from,
'to' : variable_name_to }