18 #include <vsg/core/Object.h>
19 #include <vsg/core/contains.h>
20 #include <vsg/io/Path.h>
28 extern VSG_DECLSPEC std::string getEnv(
const char* env_var);
32 extern VSG_DECLSPEC Paths getEnvPaths(
const char* env_var);
35 template<
typename... Args>
36 Paths getEnvPaths(
const char* env_var, Args... args)
38 auto paths = getEnvPaths(env_var);
39 auto right_paths = getEnvPaths(args...);
40 paths.insert(paths.end(), right_paths.begin(), right_paths.end());
45 extern VSG_DECLSPEC FileType fileType(
const Path& path);
48 extern VSG_DECLSPEC
bool fileExists(
const Path& path);
51 extern VSG_DECLSPEC Path findFile(
const Path& filename,
const Paths& paths);
55 extern VSG_DECLSPEC Path findFile(
const Path& filename,
const Options* options);
58 extern VSG_DECLSPEC
bool makeDirectory(
const Path& path);
61 extern VSG_DECLSPEC Paths getDirectoryContents(
const Path& directoryName);
64 extern VSG_DECLSPEC Path executableFilePath();
67 extern VSG_DECLSPEC FILE* fopen(
const Path& path,
const char* mode);