예제 #1
0
 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=':')
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
 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
예제 #5
0
def main():
    delimiter = ','
    reader = NormalizedPathsIter(csv.reader(sys.stdin, delimiter=delimiter))
    for line in reader:
        print delimiter.join(line)
예제 #6
0
 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")
예제 #7
0
 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=',')
예제 #8
0
 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")
예제 #9
0
 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=':'))
예제 #10
0
 def get_implementation_file_map_exceptions(self):
     return NormalizedPathsIter.create(
         self.__implementation_mapping_exceptions_filename(),
         "implementation file map exceptions",
         delimiter=':',
         allow_missing=True)
예제 #11
0
 def get_header_file_map_exceptions(self):
     return NormalizedPathsIter.create(
         self.__header_mapping_exceptions_filename(),
         "header file map exceptions",
         delimiter=':',
         allow_missing=True)
예제 #12
0
 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=',')