def get_module_to_implementation_file_map(self): self.__logger.info("filename of implementation file map: %s" % self.__module_to_implementation_file_map_filename()) return NormalizedPathsIter.create( self.__module_to_implementation_file_map_filename(), "module to implementation file map", delimiter=':')
def __get_module_to_txt_map(self): # TODO das gibt letztlich eine item iterator zurück if self.__module_to_txt_map == None: self.__module_to_txt_map = SetValuedDictTools.convert_from_itemiterator( NormalizedPathsIter.create( filename=self.get_module_to_txt_map_filename(), delimiter=':', what="module name to .txt map")) return self.__module_to_txt_map
def __get_module_to_vcproj_map(self): # TODO das gibt letztlich eine item iterator zurück if self.__module_to_vcproj_map == None: self.__module_to_vcproj_map = dict( NormalizedPathsIter.create( filename=self.get_module_to_vcproj_map_filename(), delimiter=':', what="module name to .vcproj map")) return self.__module_to_vcproj_map
def get_file_include_deps(self): # TODO use IncludeDependencyGenerator to (re)generate if necessary o = self.__file_include_deps() if o == None: o = List( NormalizedPathsIter.create( self.__include_dependencies_filename(), "file-level include dependencies", delimiter=',')) self.__file_include_deps = weakref.ref( o, lambda _x: self.__logger.debug( "file-level include dependencies got garbage collected")) return o
def main(): delimiter = ',' reader = NormalizedPathsIter(csv.reader(sys.stdin, delimiter=delimiter)) for line in reader: print delimiter.join(line)
def get_vcproj_list(self): # TODO das ist keine richtige Liste, sondern ein Iterator über Tupel return NormalizedPathsIter.create( filename=self.get_vcproj_list_filename(), what="list of .vcproj files referenced in .sln")
def get_default_mapping_source(config_dir, system_name): return NormalizedPathsIter.create( filename=IncludePathMapping._include_path_mapping_filename( config_dir, system_name), what="local include path", delimiter=',')
def get_header_list(self): # TODO Kopie erstellen? So kann die Liste nur einmal durchlaufen werden... return NormalizedPathsIter.create(self.__header_list_filename(), "header list")
def get_module_rootdirs(self): # TODO this is wrong for cmake-generated files, if at all, it must be based on the location of the CMakeLists.txt file return dict( NormalizedPathsIter.create(self.__module_rootdirs_filename(), "module rootdirs", delimiter=':'))
def get_implementation_file_map_exceptions(self): return NormalizedPathsIter.create( self.__implementation_mapping_exceptions_filename(), "implementation file map exceptions", delimiter=':', allow_missing=True)
def get_header_file_map_exceptions(self): return NormalizedPathsIter.create( self.__header_mapping_exceptions_filename(), "header file map exceptions", delimiter=':', allow_missing=True)
def get_module_to_header_file_map_final(self): return NormalizedPathsIter.create( self.__module_to_header_file_map_final_filename(), "module to linked header file map", delimiter=',')