CPGen
C++ project generator
Loading...
Searching...
No Matches
PathResolver.hpp
Go to the documentation of this file.
1#pragma once
2
18#include <filesystem>
19#include <vector>
20
21namespace PathResolver {
22
31[[nodiscard]] std::filesystem::path executablePath();
32
41[[nodiscard]] std::vector<std::filesystem::path> resolveTemplatePaths();
42
52[[nodiscard]] std::filesystem::path findTemplatesRoot();
53
54} // namespace PathResolver
Definition PathResolver.cpp:16
std::vector< std::filesystem::path > resolveTemplatePaths()
Build the ordered list of template search directories.
Definition PathResolver.cpp:34
std::filesystem::path findTemplatesRoot()
Return the first existing template root directory.
Definition PathResolver.cpp:64
std::filesystem::path executablePath()
Resolve the absolute path of the running executable.
Definition PathResolver.cpp:18