// Copyright (c) 2020 Egor Tensin // This file is part of the "winapi-common" project. // For details, see https://github.com/egor-tensin/winapi-common. // Distributed under the MIT License. #pragma once #include namespace winapi { /** @brief Absolute, canonical path. */ class CanonicalPath { public: /** Make an absolute, canonical path. */ static std::string canonicalize(const std::string&); explicit CanonicalPath(const std::string&); std::string get() const { return m_path; } std::string path() const { return get(); } private: std::string m_path; }; } // namespace winapi