def __init__(self, class_, bases, info, codeunit):
     self.class_ = copy.deepcopy(class_)
     self.bases = bases[:]
     self.info = info
     self.wrapper_name = makeid(class_.FullName()) + "_Wrapper"
     self.virtual_methods = None
     self._method_count = {}
     self.codeunit = codeunit
     self.GenerateVirtualMethods()
Exemplo n.º 2
0
 def __init__(self, class_, bases, info, codeunit):
     self.class_ = copy.deepcopy(class_)
     self.bases = bases[:]
     self.info = info
     self.wrapper_name = makeid(class_.FullName()) + '_Wrapper'
     self.virtual_methods = None
     self._method_count = {}
     self.codeunit = codeunit
     self.GenerateVirtualMethods()
Exemplo n.º 3
0
 def ConverterMethodName(converter):
     result_fullname = converter.result.getFullCPlusPlusName()
     result_name = converter.result.name
     for regex, method_name in self.SPECIAL_CONVERTERS.items():
         if regex.match(result_fullname):
             return method_name
     else:
         # extract the last name from the full name
         result_name = makeid(result_name)
         return "to_" + result_name
Exemplo n.º 4
0
 def ConverterMethodName(converter):
     result_fullname = converter.result.FullName()
     result_name = converter.result.name
     for regex, method_name in self.SPECIAL_CONVERTERS.items():
         if regex.match(result_fullname):
             return method_name
     else:
         # extract the last name from the full name
         result_name = makeid(result_name)
         return 'to_' + result_name
Exemplo n.º 5
0
 def _FunctionName(self, interface_file):
     name = os.path.splitext(interface_file)[0]
     return 'Export_%s' % utils.makeid(name)
Exemplo n.º 6
0
 def ScopeName(self):
     return makeid(self.class_.getFullCPlusPlusName()) + "_scope"
Exemplo n.º 7
0
 def OverloadName(self, method):
     "Returns the name of the overloads struct for the given method"
     name = makeid(method.getFullCPlusPlusName())
     overloads = "_overloads_%i_%i" % (method.minArgs, method.maxArgs)
     return name + overloads
 def _FunctionName(self, interface_file):
     name = os.path.splitext(interface_file)[0]
     return 'Export_%s' % utils.makeid(name)
Exemplo n.º 9
0
def GenerateName(name, type_list):
    name = name.replace('::', '_')
    names = [name] + type_list
    return makeid('_'.join(names))
Exemplo n.º 10
0
 def ScopeName(self):
     return makeid(self.class_.FullName()) + '_scope'
Exemplo n.º 11
0
 def OverloadName(self, method):
     'Returns the name of the overloads struct for the given method'
     name = makeid(method.FullName())
     overloads = '_overloads_%i_%i' % (method.minArgs, method.maxArgs)
     return name + overloads
 def ScopeName(self):
     return makeid(self.class_.FullName()) + "_scope"
Exemplo n.º 13
0
def GenerateName(name, type_list):
    name = name.replace('::', '_')
    names = [name] + type_list
    return utils.makeid('_'.join(names))
Exemplo n.º 14
0
 def OverloadName(self, method):
     'Returns the name of the overloads struct for the given method'
     name = makeid(method.FullName())
     overloads = '_overloads_%i_%i' % (method.minArgs, method.maxArgs)    
     return name + overloads
Exemplo n.º 15
0
 def getClassName(self):
    return utils.makeid(self.class_.getFullCPlusPlusName())