LeviLamina
Loading...
Searching...
No Matches
Logger.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/BasicSerializerContext.h"
7#include "mc/deps/cereal/ResultCode.h"
8#include "mc/deps/puv/LoggerIterator.h"
9
10namespace Puv {
11
12class Logger {
13public:
14 // Logger inner types declare
15 // clang-format off
16 struct ParseLogEntry;
17 struct UpgradeLogEntry;
18 struct ValidationLogEntry;
19 // clang-format on
20
21 // Logger inner types define
22 enum class UpgradeResultCode : uchar {
23 // bitfield representation
24 UnsupportedVersion = 1 << 0,
25 SrcError = 1 << 1,
26 DstError = 1 << 2,
27 InternalError = 1 << 3,
28 CopyError = 1 << 4,
29 EnttEnumAsBitmask = 255,
30 All = 255,
31 };
32
33 enum class ValidationResultCode : uchar {
34 Warning = 1,
35 Error = 2,
36 All = 255,
37 EnttEnumAsBitmask = 255,
38 };
39
40 struct ParseLogEntry {
41 public:
42 // member variables
43 // NOLINTBEGIN
47 // NOLINTEND
48
49 public:
50 // prevent constructor by default
51 ParseLogEntry& operator=(ParseLogEntry const&);
52 ParseLogEntry(ParseLogEntry const&);
53 ParseLogEntry();
54
55 public:
56 // member functions
57 // NOLINTBEGIN
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI void $dtor();
65 // NOLINTEND
66 };
67
68 struct UpgradeLogEntry {
69 public:
70 // member variables
71 // NOLINTBEGIN
76 // NOLINTEND
77
78 public:
79 // prevent constructor by default
80 UpgradeLogEntry& operator=(UpgradeLogEntry const&);
81 UpgradeLogEntry(UpgradeLogEntry const&);
82 UpgradeLogEntry();
83
84 public:
85 // member functions
86 // NOLINTBEGIN
88 // NOLINTEND
89
90 public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCNAPI void $dtor();
94 // NOLINTEND
95 };
96
97 struct ValidationLogEntry {
98 public:
99 // member variables
100 // NOLINTBEGIN
103 // NOLINTEND
104
105 public:
106 // prevent constructor by default
107 ValidationLogEntry& operator=(ValidationLogEntry const&);
108 ValidationLogEntry(ValidationLogEntry const&);
109 ValidationLogEntry();
110
111 public:
112 // member functions
113 // NOLINTBEGIN
115 // NOLINTEND
116
117 public:
118 // destructor thunk
119 // NOLINTBEGIN
120 MCNAPI void $dtor();
121 // NOLINTEND
122 };
123
124public:
125 // member variables
126 // NOLINTBEGIN
134 // NOLINTEND
135
136public:
137 // prevent constructor by default
138 Logger& operator=(Logger const&);
139 Logger();
140
141public:
142 // member functions
143 // NOLINTBEGIN
145
146 MCNAPI Logger(::Puv::Logger const&);
147
148 MCNAPI explicit Logger(::cereal::ResultCode parseErrorCodes);
149
150 MCNAPI ::Puv::Logger& log(::Puv::Logger::ValidationResultCode res, ::std::string msg);
151
152 MCNAPI ::Puv::Logger&
153 log(::cereal::ResultCode res,
154 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> path,
155 ::std::string msg);
156
157 MCNAPI ::Puv::Logger&
158 log(::Puv::Logger::UpgradeResultCode res,
159 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> src,
160 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> dst,
161 ::std::string msg);
162
163 MCNAPI void merge(::Puv::Logger log);
164
165 MCNAPI ::Puv::Logger& operator=(::Puv::Logger&&);
166
167 MCNAPI ~Logger();
168 // NOLINTEND
169
170public:
171 // static functions
172 // NOLINTBEGIN
173 MCNAPI static ::std::string contextString(
174 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> const& contextStack
175 );
176 // NOLINTEND
177
178public:
179 // constructor thunks
180 // NOLINTBEGIN
181 MCNAPI void* $ctor(::Puv::Logger&&);
182
183 MCNAPI void* $ctor(::Puv::Logger const&);
184
185 MCNAPI void* $ctor(::cereal::ResultCode parseErrorCodes);
186 // NOLINTEND
187
188public:
189 // destructor thunk
190 // NOLINTBEGIN
191 MCNAPI void $dtor();
192 // NOLINTEND
193};
194
195} // namespace Puv
Definition Logger.h:12
MCAPI Logger(::Puv::Logger const &)
MCAPI void * $ctor(::Puv::Logger &&)
MCAPI void * $ctor(::Puv::Logger const &)
MCAPI::Puv::Logger & operator=(::Puv::Logger &&)
MCAPI::Puv::Logger & log(::Puv::Logger::ValidationResultCode res, ::std::string msg)
MCAPI void merge(::Puv::Logger log)
MCAPI void * $ctor(::cereal::ResultCode parseErrorCodes)
MCAPI Logger(::Puv::Logger &&)
MCAPI ~Logger()
MCAPI::Puv::Logger & log(::cereal::ResultCode res, ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string > > path, ::std::string msg)
MCAPI Logger(::cereal::ResultCode parseErrorCodes)
static MCAPI ::std::string contextString(::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string > > const &contextStack)
MCAPI::Puv::Logger & log(::Puv::Logger::UpgradeResultCode res, ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string > > src, ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string > > dst, ::std::string msg)
MCAPI void $dtor()
Definition Logger.h:40
Definition Logger.h:68
Definition Logger.h:97
Definition Alias.h:14