def __init__(self, pkg_object): self.name = 'test' self.brief_description = \ 'Implementation of the example code for the {0} package' \ '.'.format(pkg_object['name']) BaseCppFile.BaseCppFile.__init__(self, self.name, 'cpp', None) self.elements = pkg_object['baseElements'] self.object_tree = query.create_object_tree(pkg_object) self.tests = []
def __init__(self, pkg_object): self.name = '{0}_example1'.format(pkg_object['name']) self.brief_description = \ 'Implementation of the example code for the {0} package' \ '.'.format(pkg_object['name']) BaseCppFile.BaseCppFile.__init__(self, self.name, 'cpp', None) self.package = strFunctions.lower_first(pkg_object['name']) self.package_up = strFunctions.upper_first(pkg_object['name']) self.reqd = 'true' if not pkg_object['required']: self.reqd = 'false' self.object_tree = query.create_object_tree(pkg_object)
def __init__(self, lib_object, verbose=False): # members from object self.lib_object = lib_object self.verbose = verbose self.package = strFunctions.lower_first(lib_object['name']) self.reqd = 'false' if lib_object['required']: self.reqd = 'true' self.offset = lib_object['offset'] self.sbml_classes = lib_object['baseElements'] self.enums = lib_object['enums'] self.plugins = lib_object['plugins'] self.fullname = lib_object['fullname'] self.level = lib_object['base_level'] self.version = lib_object['base_version'] self.pkg_version = lib_object['pkg_version'] self.pkg_ref = 'NA' self.reqd_status = lib_object['required'] self.tree = query.create_object_tree(lib_object, False) self.class_rules = []