10#ifndef LIBCARLA_TEST_CONTENT_FOLDER
11# error Please define LIBCARLA_TEST_CONTENT_FOLDER.
24 LIBCARLA_TEST_CONTENT_FOLDER
"/OpenDrive/",
30 const std::string opendrive_folder = LIBCARLA_TEST_CONTENT_FOLDER
"/OpenDrive/";
31 std::ifstream file(opendrive_folder + filename);
32 return std::string{std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>()};
static std::vector< std::string > ListFolder(const std::string &folder_path, const std::string &wildcard_pattern)
列出 folder_path 中匹配 wildcard_pattern 的常规文件 (不递归)。
static std::vector< std::string > GetAvailableFiles()
static std::string Load(const std::string &filename)