Пример #1
0
 def __init__(self, opts, args):
     FileGenerator.__init__(self, opts, args)
     CppHeaderObserver.__init__(self)
     self.__toDocs = []
     self.__target = None
     self.__leadingWSRe = re.compile(r"(?P<spaces>^\s*)")
     self.__whiteSpaceRe = re.compile(r"\s+")
Пример #2
0
 def __init__(self, header, output):
     CppHeaderObserver.__init__(self)
     self.__header = header
     self.__output = output
     self.__functions = []
     self.__classFunctions = []
     self.__classNames = []
     self.__testClassName = []
     self.__operatorRe = re.compile(r"\boperator\b.*")
     self.__printScopes = lambda scopes, file=stdout:map(lambda s:file.write(s.getName() + "::"), \
                         [s for s in scopes if s.getType() == "class"])
     self.__assemblyFunctionName = lambda funcName:"test%s" % "".join((funcName[0].capitalize(), funcName[1:]))
Пример #3
0
 def __init__(self, header, output):
     CppHeaderObserver.__init__(self)
     self.__header = header
     self.__output = output