LeviLamina
Loading...
Searching...
No Matches
ContentLog.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/debug/log/LogArea.h"
7#include "mc/deps/core/debug/log/LogLevel.h"
8#include "mc/deps/core/utility/DisableServiceLocatorOverride.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/deps/core/utility/typeid_t.h"
12#include "mc/diagnostics/LogAreaID.h"
13#include "mc/platform/threading/Mutex.h"
14
15// auto generated forward declare list
16// clang-format off
19namespace Bedrock { class StaticOptimizedString; }
20// clang-format on
21
23public:
24 // ContentLog inner types declare
25 // clang-format off
27 class ContentLogScope;
28 class ScopeHandler;
30 // clang-format on
31
32 // ContentLog inner types define
33 class ScopeHandler : public ::std::enable_shared_from_this<::ContentLog::ScopeHandler> {
34 public:
35 // member variables
36 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 ScopeHandler& operator=(ScopeHandler const&);
45 };
46
48 public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<1, 1, bool> mPopScope;
52 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::ContentLog::ScopeHandler>> mScopeHandler;
53 // NOLINTEND
54
55 public:
56 // prevent constructor by default
58
59 public:
60 // member functions
61 // NOLINTBEGIN
63
65 // NOLINTEND
66
67 public:
68 // constructor thunks
69 // NOLINTBEGIN
71 // NOLINTEND
72
73 public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCNAPI void $dtor();
77 // NOLINTEND
78 };
79
81 public:
82 // member variables
83 // NOLINTBEGIN
84 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::ContentLogEndPoint>> mContentLogEndPoint;
85 // NOLINTEND
86
87 public:
88 // member functions
89 // NOLINTBEGIN
91 // NOLINTEND
92
93 public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCNAPI void $dtor();
97 // NOLINTEND
98 };
99
101 public:
102 // ThreadSpecificData inner types declare
103 // clang-format off
104 struct ScopeData;
105 // clang-format on
106
107 // ThreadSpecificData inner types define
108 struct ScopeData {
109 public:
110 // member variables
111 // NOLINTBEGIN
114 // NOLINTEND
115
116 public:
117 // prevent constructor by default
118 ScopeData& operator=(ScopeData const&);
119 ScopeData(ScopeData const&);
120 ScopeData();
121 };
122
123 public:
124 // member variables
125 // NOLINTBEGIN
126 ::ll::TypedStorage<8, 24, ::std::vector<::ContentLog::ThreadSpecificData::ScopeData>> mScope;
127 ::ll::TypedStorage<8, 24, ::std::vector<::ContextMessageLogger*>> mMessageLoggers;
128 // NOLINTEND
129 };
130
131public:
132 // member variables
133 // NOLINTBEGIN
134 ::ll::TypedStorage<1, 1, bool> mEnabled;
135 ::ll::TypedStorage<8, 16, ::std::map<::Bedrock::typeid_t<::ContentLog>, ::ContentLog::ContentLogEndPointData>>
136 mEndPoints;
137 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mEndpointMutex;
138 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContentLog::ScopeHandler>> mScopeHandler;
139 ::ll::TypedStorage<
140 8,
141 64,
142 ::std::unordered_map<::LogLevel, ::std::unordered_map<::LogArea, ::std::unordered_set<uint64>>>>
143 mOnceOnlyMessages;
144 // NOLINTEND
145
146public:
147 // virtual functions
148 // NOLINTBEGIN
149 // vIndex: 0
150 virtual ~ContentLog() /*override*/;
151 // NOLINTEND
152
153public:
154 // member functions
155 // NOLINTBEGIN
156 MCNAPI ContentLog();
157
158 MCNAPI void _writeToLog(bool logOnlyOnce, ::LogArea area, ::LogLevel level, char*& args);
159
160 MCNAPI ::std::string getScope();
161
162 MCNAPI void log(bool, ::LogLevel, ::LogArea, ...);
163
164 MCNAPI void registerEndPoint(::Bedrock::typeid_t<::ContentLog> id, ::gsl::not_null<::ContentLogEndPoint*> endPoint);
165
166 MCNAPI void unregisterEndPoint(::gsl::not_null<::ContentLogEndPoint*> endPoint);
167
168 MCNAPI void updateEnabledStatus();
169 // NOLINTEND
170
171public:
172 // static functions
173 // NOLINTBEGIN
174 MCNAPI static ::LogAreaID const getBedrockLogAreaFromContentLogArea(::LogArea contentLogArea);
175
176 MCNAPI static char const* getLogAreaName(::LogArea area);
177 // NOLINTEND
178
179public:
180 // constructor thunks
181 // NOLINTBEGIN
182 MCNAPI void* $ctor();
183 // NOLINTEND
184
185public:
186 // destructor thunk
187 // NOLINTBEGIN
188 MCNAPI void $dtor();
189 // NOLINTEND
190
191public:
192 // vftables
193 // NOLINTBEGIN
194 MCNAPI static void** $vftable();
195 // NOLINTEND
196};
Definition EnableNonOwnerReferences.h:7
Definition StaticOptimizedString.h:7
Definition typeid_t.h:25
Definition ContentLogEndPoint.h:11
Definition ContentLog.h:80
Definition ContentLog.h:47
MCAPI ContentLogScope(::Bedrock::StaticOptimizedString scope)
MCAPI void * $ctor(::Bedrock::StaticOptimizedString scope)
Definition ContentLog.h:33
Definition ContentLog.h:100
Definition ContentLog.h:22
MCAPI ContentLog()
MCAPI void log(bool, ::LogLevel, ::LogArea,...)
MCAPI void _writeToLog(bool logOnlyOnce, ::LogArea area, ::LogLevel level, char *&args)
MCAPI void updateEnabledStatus()
MCAPI::std::string getScope()
MCAPI void registerEndPoint(::Bedrock::typeid_t<::ContentLog > id, ::gsl::not_null<::ContentLogEndPoint * > endPoint)
static MCAPI char const * getLogAreaName(::LogArea area)
static MCAPI void ** $vftable()
MCAPI void unregisterEndPoint(::gsl::not_null<::ContentLogEndPoint * > endPoint)
MCAPI void * $ctor()
MCAPI void $dtor()
static MCAPI ::LogAreaID const getBedrockLogAreaFromContentLogArea(::LogArea contentLogArea)
Definition ContextMessageLogger.h:5
Definition DisableServiceLocatorOverride.h:5
Definition Alias.h:14