winapi_common
path.hpp
1 // Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
2 // This file is part of the "winapi-common" project.
3 // For details, see https://github.com/egor-tensin/winapi-common.
4 // Distributed under the MIT License.
5 
6 #pragma once
7 
8 #include <string>
9 
10 namespace winapi {
11 
14 public:
16  static std::string canonicalize(const std::string&);
17 
18  explicit CanonicalPath(const std::string&);
19 
20  std::string get() const { return m_path; }
21  std::string path() const { return get(); }
22 
23 private:
24  std::string m_path;
25 };
26 
27 } // namespace winapi
Absolute, canonical path.
Definition: path.hpp:13
static std::string canonicalize(const std::string &)
Definition: path.cpp:52