def __init__(self, config, cache=None, decl_factory=None):
        """
        :param config: GCCXML configuration
        :type config: :class:xml_generator_configuration_t

        :param cache: declaration cache, by default a cache functionality will
                      not be used
        :type cache: :class:`cache_base_t` instance or `str`

        :param decl_factory: declaration factory
        :type decl_factory: :class:`decl_factory_t`
        """

        self.__config = config
        self.__dcache = None
        if isinstance(cache, declarations_cache.cache_base_t):
            self.__dcache = cache
        elif utils.is_str(cache):
            self.__dcache = declarations_cache.file_cache_t(cache)
        else:
            self.__dcache = declarations_cache.dummy_cache_t()
        self.__decl_factory = decl_factory
        if not decl_factory:
            self.__decl_factory = pygccxml.declarations.decl_factory_t()

        self.logger = utils.loggers.cxx_parser
        self.__xml_generator_from_xml_file = None
def __init__ ( self , config , cache = None , decl_factory = None ) : self . __config = config self . __dcache = None if isinstance ( cache , declarations_cache . cache_base_t ) : self . __dcache = cache elif utils . is_str ( cache ) : self . __dcache = declarations_cache . file_cache_t ( cache ) else : self . __dcache = declarations_cache . dummy_cache_t ( ) self . __decl_factory = decl_factory if not decl_factory : self . __decl_factory = pygccxml . declarations . decl_factory_t ( ) self . logger = utils . loggers . cxx_parser self . __xml_generator_from_xml_file = None
:param config: GCCXML configuration
        :type config: :class:xml_generator_configuration_t

        :param cache: declaration cache, by default a cache functionality will
                      not be used
        :type cache: :class:`cache_base_t` instance or `str`

        :param decl_factory: declaration factory
        :type decl_factory: :class:`decl_factory_t`