| 109 | } |
| 110 | |
| 111 | std::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 | |
| 139 | const std::string& AasFileManager::getName() const |
| 140 | { |
no test coverage detected