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();
53
54 public:
55 // member functions
56 // NOLINTBEGIN
58 // NOLINTEND
59
60 public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCNAPI void* $ctor(::Puv::Logger::ParseLogEntry const&);
64 // NOLINTEND
65 };
66
67 struct UpgradeLogEntry {
68 public:
69 // member variables
70 // NOLINTBEGIN
75 // NOLINTEND
76
77 public:
78 // prevent constructor by default
79 UpgradeLogEntry& operator=(UpgradeLogEntry const&);
80 UpgradeLogEntry();
81
82 public:
83 // member functions
84 // NOLINTBEGIN
86 // NOLINTEND
87
88 public:
89 // constructor thunks
90 // NOLINTBEGIN
92 // NOLINTEND
93 };
94
95 struct ValidationLogEntry {
96 public:
97 // member variables
98 // NOLINTBEGIN
101 // NOLINTEND
102
103 public:
104 // prevent constructor by default
105 ValidationLogEntry& operator=(ValidationLogEntry const&);
106 ValidationLogEntry(ValidationLogEntry const&);
107 ValidationLogEntry();
108
109 public:
110 // member functions
111 // NOLINTBEGIN
113 // NOLINTEND
114
115 public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCNAPI void $dtor();
119 // NOLINTEND
120 };
121
122public:
123 // member variables
124 // NOLINTBEGIN
132 // NOLINTEND
133
134public:
135 // prevent constructor by default
136 Logger& operator=(Logger const&);
137 Logger();
138
139public:
140 // member functions
141 // NOLINTBEGIN
142 MCNAPI Logger(::Puv::Logger const&);
143
144 MCNAPI ::Puv::Logger& log(::Puv::Logger::ValidationResultCode res, ::std::string msg);
145
146 MCNAPI ::Puv::Logger&
147 log(::cereal::ResultCode res,
148 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> path,
149 ::std::string msg);
150
151 MCNAPI ::Puv::Logger&
152 log(::Puv::Logger::UpgradeResultCode res,
153 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> src,
154 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> dst,
155 ::std::string msg);
156
157 MCNAPI void merge(::Puv::Logger log);
158
159 MCNAPI ~Logger();
160 // NOLINTEND
161
162public:
163 // static functions
164 // NOLINTBEGIN
165 MCNAPI static ::std::string contextString(
166 ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string>> const& contextStack
167 );
168 // NOLINTEND
169
170public:
171 // constructor thunks
172 // NOLINTBEGIN
173 MCNAPI void* $ctor(::Puv::Logger const&);
174 // NOLINTEND
175
176public:
177 // destructor thunk
178 // NOLINTBEGIN
179 MCNAPI void $dtor();
180 // NOLINTEND
181};
182
183} // namespace Puv
Definition Logger.h:12
MCAPI Logger(::Puv::Logger const &)
MCAPI void * $ctor(::Puv::Logger const &)
MCAPI::Puv::Logger & log(::Puv::Logger::ValidationResultCode res, ::std::string msg)
MCAPI void merge(::Puv::Logger log)
MCAPI ~Logger()
MCAPI::Puv::Logger & log(::cereal::ResultCode res, ::std::vector<::std::pair<::cereal::BasicSerializerContext::ContextType, ::std::string > > path, ::std::string msg)
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
MCAPI ParseLogEntry(::Puv::Logger::ParseLogEntry const &)
MCAPI void * $ctor(::Puv::Logger::ParseLogEntry const &)
Definition Logger.h:67
MCAPI UpgradeLogEntry(::Puv::Logger::UpgradeLogEntry const &)
MCAPI void * $ctor(::Puv::Logger::UpgradeLogEntry const &)
Definition Logger.h:95
Definition Alias.h:14