MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getExternalToolConfigFiles_

Method getExternalToolConfigFiles_

src/openms/source/APPLICATIONS/ToolHandler.cpp:339–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337 }
338
339 QStringList ToolHandler::getExternalToolConfigFiles_()
340 {
341
342 QStringList paths;
343 // *.ttd default path
344 paths << getExternalToolsPath().toQString();
345 // OS-specific path
346#ifdef OPENMS_WINDOWSPLATFORM
347 paths << (getExternalToolsPath() + "/WINDOWS").toQString();
348#else
349 paths << (getExternalToolsPath() + "/LINUX").toQString();
350#endif
351 // additional environment
352 if (getenv("OPENMS_TTD_PATH") != nullptr)
353 {
354 paths << String(getenv("OPENMS_TTD_PATH")).toQString();
355 }
356
357 QStringList all_files;
358 for (int p = 0; p < paths.size(); ++p)
359 {
360 QDir dir(paths[p], "*.ttd");
361 QStringList files = dir.entryList();
362 for (int i = 0; i < files.size(); ++i)
363 {
364 files[i] = dir.absolutePath() + QDir::separator() + files[i];
365 }
366 all_files << files;
367 }
368 //StringList list = ListUtils::create<String>(getExternalToolsPath() + "/" + "msconvert.ttd");
369 return all_files;
370 }
371
372 QStringList ToolHandler::getInternalToolConfigFiles_()
373 {

Callers

nothing calls this directly

Calls 4

absolutePathMethod · 0.80
StringClass · 0.50
toQStringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected