|
CPGen
C++ project generator
|
Functions | |
| std::filesystem::path | executablePath () |
| Resolve the absolute path of the running executable. | |
| std::vector< std::filesystem::path > | resolveTemplatePaths () |
| Build the ordered list of template search directories. | |
| std::filesystem::path | findTemplatesRoot () |
| Return the first existing template root directory. | |
| std::filesystem::path PathResolver::executablePath | ( | ) |
Resolve the absolute path of the running executable.
Uses /proc/self/exe on Linux. Returns an empty path if the symlink cannot be read.

| std::filesystem::path PathResolver::findTemplatesRoot | ( | ) |
Return the first existing template root directory.
Convenience wrapper around resolveTemplatePaths that returns just the highest-priority path.
| std::runtime_error | If no candidate directory is found. |

| std::vector< std::filesystem::path > PathResolver::resolveTemplatePaths | ( | ) |
Build the ordered list of template search directories.
Only directories that actually exist on disk are included.
| std::runtime_error | If no candidate directory is found. |

