Example #1
0
    def init_copy(self, lines, context):
        if self.is_array():
            return

        if context == 'Singlet' or context == 'TreeEntry':
            lines.append('{name}Container_(_src.{name}Container_)')
            Branch.init_copy(lines, context)
            lines.append(
                '{name}({name}Container_, {name}_)'.format(name=self.refname))
        elif context == 'Element':
            lines.append(
                '{name}(gStore.getData(this).{name}Container_, gStore.getData(this).{name}_[0])'
                .format(name=self.refname))