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
131 // NOLINTEND
132
133public:
134 // prevent constructor by default
135 Logger& operator=(Logger const&);
136
137public:
138 // member functions
139 // NOLINTBEGIN
140 MCNAPI Logger();
141
143
144 MCNAPI Logger(::Puv::Logger const&);
145
146 MCNAPI ::Puv::Logger& log(::Puv::Logger::ValidationResultCode res, ::std::string msg);
147
148 MCNAPI ::Puv::Logger&
149 log(::cereal::ResultCode res,
150 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> path,
151 ::std::string msg);
152
153 MCNAPI ::Puv::Logger&
154 log(::Puv::Logger::UpgradeResultCode res,
155 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> src,
156 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> dst,
157 ::std::string msg);
158
159 MCNAPI void merge(::Puv::Logger log);
160
161 MCNAPI ::Puv::Logger& operator=(::Puv::Logger&&);
162
163 MCNAPI ~Logger();
164 // NOLINTEND
165
166public:
167 // static functions
168 // NOLINTBEGIN
169 MCNAPI static ::std::string contextString(
170 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> const& contextStack
171 );
172 // NOLINTEND
173
174public:
175 // constructor thunks
176 // NOLINTBEGIN
177 MCNAPI void* $ctor();
178
179 MCNAPI void* $ctor(::Puv::Logger&&);
180
181 MCNAPI void* $ctor(::Puv::Logger const&);
182 // NOLINTEND
183
184public:
185 // destructor thunk
186 // NOLINTBEGIN
187 MCNAPI void $dtor();
188 // NOLINTEND
189};
190
191} // 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 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 void * $ctor()
static MCAPI ::std::string contextString(::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string > > const &contextStack)
MCAPI Logger()
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