LeviLamina
Loading...
Searching...
No Matches
Path.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/core/file/PathPart.h"
5
6// auto generated inclusion list
7#include "mc/deps/core/file/PathPart.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class PathView; }
12namespace Core { class Result; }
13// clang-format on
14
15namespace Core {
16
17class Path {
18public:
19 // Path inner types declare
20 // clang-format off
21 struct path_less;
22 // clang-format on
23
24 // Path inner types define
25 struct path_less {};
26
27public:
28 Path(std::filesystem::path const& path) : Path(path.u8string()) {}
29 Path(std::u8string const& path) { mPathPart.mUtf8StdString = *reinterpret_cast<std::string const*>(&path); }
30 Path(std::string const& path) { mPathPart.mUtf8StdString = path; }
31 Path(char const* path) { mPathPart.mUtf8StdString = path; }
32 Path() = default;
33
34public:
35 // prevent constructor by default
36 Path& operator=(Path const&);
37 Path(Path const&);
38
39public:
40 // member variables
41 // NOLINTBEGIN
42 ::Core::PathPart mPathPart;
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCNAPI static ::Core::Result makeFailure(::fmt::v11::fstring<char const*> const& format, ::Core::PathView path);
49 // NOLINTEND
50
51public:
52 // static variables
53 // NOLINTBEGIN
54 MCNAPI static ::Core::Path const& EMPTY();
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCNAPI void* $ctor();
61
62 MCNAPI void* $ctor(char const* str);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCNAPI void $dtor();
69 // NOLINTEND
70};
71
72} // namespace Core
Definition PathPart.h:7
Definition PathView.h:16
Definition Path.h:17
static MCAPI ::Core::Result makeFailure(::fmt::v11::fstring< char const * > const &format, ::Core::PathView path)
MCAPI void * $ctor(char const *str)
static MCAPI ::Core::Path const & EMPTY()
MCAPI void $dtor()
MCAPI void * $ctor()
Definition Path.h:16
Definition Path.h:25