LeviLamina
Loading...
Searching...
No Matches
DeviceIdRecord.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/string/BasicStackString.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock::DeviceIdErrorType { struct CacheOpenFailed; }
13namespace Bedrock::DeviceIdErrorType { struct FileWriteError; }
14namespace Bedrock::DeviceIdErrorType { struct NoCacheFound; }
15namespace Bedrock::DeviceIdErrorType { struct ValidationFail; }
16namespace Core { class FileSystem; }
17namespace Core { class Path; }
18// clang-format on
19
20namespace Bedrock {
21
22class DeviceIdRecord {
23public:
24 // member variables
25 // NOLINTBEGIN
28 // NOLINTEND
29
30#ifdef LL_PLAT_S
31public:
32 // prevent constructor by default
33 DeviceIdRecord& operator=(DeviceIdRecord const&);
34 DeviceIdRecord(DeviceIdRecord const&);
35 DeviceIdRecord();
36
37#else // LL_PLAT_C
38public:
39 // prevent constructor by default
40 DeviceIdRecord& operator=(DeviceIdRecord const&);
41 DeviceIdRecord(DeviceIdRecord const&);
42
43#endif
44public:
45 // member functions
46 // NOLINTBEGIN
47#ifdef LL_PLAT_C
48 MCNAPI DeviceIdRecord();
49
50 MCNAPI ::Bedrock::Result<
51 void,
52 ::std::variant<
57 writeToCacheFile(::Core::Path const& pathToCacheFile);
58
59 MCNAPI ::Bedrock::Result<
60 void,
61 ::std::variant<
66 writeToCacheFolder(::Core::Path const& pathToCacheFolder);
67
68 MCNAPI ~DeviceIdRecord();
69#endif
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75#ifdef LL_PLAT_C
76 MCNAPI static bool _isValid(::std::string const& md5Hash, ::std::string const& guid);
77
78 MCNAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>
79 getCacheFilePath(::Core::Path const& pathToCacheFolder);
80
81 MCNAPI static ::Bedrock::Result<
82 void,
83 ::std::variant<
88 readFromCacheFile(
89 ::Core::FileSystem& fileSystem,
90 ::Core::Path const& pathToCacheFile,
92 );
93
94 MCNAPI static ::Bedrock::Result<
95 void,
96 ::std::variant<
101 readFromCacheFolder(
102 ::Core::FileSystem& fileSystem,
103 ::Core::Path const& pathToCacheFolder,
105 );
106#endif
107 // NOLINTEND
108
109public:
110 // static variables
111 // NOLINTBEGIN
112 MCNAPI static char const*& _cacheRecordFileName();
113 // NOLINTEND
114
115public:
116 // constructor thunks
117 // NOLINTBEGIN
118#ifdef LL_PLAT_C
119 MCNAPI void* $ctor();
120#endif
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126#ifdef LL_PLAT_C
127 MCNAPI void $dtor();
128#endif
129 // NOLINTEND
130};
131
132} // namespace Bedrock
Definition DeviceIdRecord.h:22
static MCAPI char const *& _cacheRecordFileName()
Definition FileSystem.h:28
Definition Path.h:12
Definition CacheOpenFailed.h:7
Definition FileWriteError.h:7
Definition NoCacheFound.h:7
Definition ValidationFail.h:7
Definition Alias.h:14