MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getAasFilesForMap

Method getAasFilesForMap

radiantcore/map/aas/AasFileManager.cpp:111–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111std::list<AasFileInfo> AasFileManager::getAasFilesForMap(const std::string& mapPath)
112{
113 std::list<AasFileInfo> list;
114
115 AasTypeList types = getAasTypes();
116
117 for (const AasType& type : types)
118 {
119 std::string path = mapPath;
120
121 // Cut off the extension
122 path = path.substr(0, path.rfind('.'));
123 path += "." + type.fileExtension;
124
125 ArchiveTextFilePtr file = GlobalFileSystem().openTextFileInAbsolutePath(path);
126
127 if (file)
128 {
129 // Add this file to the list
130 list.push_back(AasFileInfo());
131 list.back().absolutePath = path;
132 list.back().type = type;
133 }
134 }
135
136 return list;
137}
138
139const std::string& AasFileManager::getName() const
140{

Callers 1

refreshMethod · 0.80

Calls 4

AasFileInfoClass · 0.85
backMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected