Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
PathHelper.h
Go to the documentation of this file.
1#pragma once
2#include <filesystem>
3#include <string_view>
4
5namespace fishnet::util {
6
7constexpr static const char * PROJECT_NAME = "fishnet";
13public:
14 static std::filesystem::path getCurrentPath() noexcept;
15 static std::filesystem::path projectDirectory(std::string_view searchPattern) noexcept;
16 static std::filesystem::path projectDirectory() noexcept;
17 static std::filesystem::path appendToFilename(const std::filesystem::path & path,std::string_view suffix) noexcept;
18 static std::filesystem::path changeFilename(const std::filesystem::path & path, std::string_view filename) noexcept;
19 static std::filesystem::path absoluteCanonical(const std::filesystem::path & path) noexcept;
20};
21}
Static Helper class to get the current Path, find the projectDirectory, obtain an absolute canonical ...
Definition PathHelper.h:12
static std::filesystem::path appendToFilename(const std::filesystem::path &path, std::string_view suffix) noexcept
Definition PathHelper.cpp:21
static std::filesystem::path changeFilename(const std::filesystem::path &path, std::string_view filename) noexcept
Definition PathHelper.cpp:24
static std::filesystem::path getCurrentPath() noexcept
Definition PathHelper.cpp:5
static std::filesystem::path projectDirectory() noexcept
Definition PathHelper.cpp:17
static std::filesystem::path absoluteCanonical(const std::filesystem::path &path) noexcept
Definition PathHelper.cpp:32
Definition AlternativeKeyMap.hpp:4
static constexpr const char * PROJECT_NAME
Definition PathHelper.h:7