PothosUtilSystemInfo.cpp 1.4 KB

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2013-2018 Josh Blum
  2. // 2019 Nicholas Corgan
  3. // SPDX-License-Identifier: BSL-1.0
  4. #include "PothosUtil.hpp"
  5. #include <Pothos/System.hpp>
  6. #include <iostream>
  7. void PothosUtilBase::printSystemInfo(const std::string &, const std::string &)
  8. {
  9. std::cout << "Lib Version: " << Pothos::System::getLibVersion() << std::endl;
  10. std::cout << "API Version: " << Pothos::System::getApiVersion() << std::endl;
  11. std::cout << "ABI Version: " << Pothos::System::getAbiVersion() << std::endl;
  12. std::cout << "Root Path: " << Pothos::System::getRootPath() << std::endl;
  13. std::cout << "Data Path: " << Pothos::System::getDataPath() << std::endl;
  14. std::cout << "User Data: " << Pothos::System::getUserDataPath() << std::endl;
  15. std::cout << "User Config: " << Pothos::System::getUserConfigPath() << std::endl;
  16. std::cout << "Runtime Library: " << Pothos::System::getPothosRuntimeLibraryPath() << std::endl;
  17. std::cout << "Util Executable: " << Pothos::System::getPothosUtilExecutablePath() << std::endl;
  18. std::cout << "Dev Include Path: " << Pothos::System::getPothosDevIncludePath() << std::endl;
  19. std::cout << "Dev Library Path: " << Pothos::System::getPothosDevLibraryPath() << std::endl;
  20. std::cout << "Module Search Paths:" << std::endl;
  21. for(const auto& searchPath: Pothos::System::getPothosModuleSearchPaths())
  22. {
  23. std::cout << " * " << searchPath << std::endl;
  24. }
  25. }