blob: 26d89ce2e9741ff8a2dfcbb47fede79757c8e956 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
// 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 <string>
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
|