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/platform/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
28 class ScopeHandler;
29 class ContentLogScope;
30 // clang-format on
31
32 // ContentLog inner types define
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::ContentLogEndPoint>> mContentLogEndPoint;
38 // NOLINTEND
39
40 public:
41 // member functions
42 // NOLINTBEGIN
44 // NOLINTEND
45
46 public:
47 // destructor thunk
48 // NOLINTBEGIN
49 MCNAPI void $dtor();
50 // NOLINTEND
51 };
52
54 public:
55 // ThreadSpecificData inner types declare
56 // clang-format off
57 struct ScopeData;
58 // clang-format on
59
60 // ThreadSpecificData inner types define
61 struct ScopeData {
62 public:
63 // member variables
64 // NOLINTBEGIN
67 // NOLINTEND
68
69 public:
70 // prevent constructor by default
71 ScopeData& operator=(ScopeData const&);
72 ScopeData(ScopeData const&);
73 ScopeData();
74 };
75
76 public:
77 // member variables
78 // NOLINTBEGIN
79 ::ll::TypedStorage<8, 24, ::std::vector<::ContentLog::ThreadSpecificData::ScopeData>> mScope;
80 ::ll::TypedStorage<8, 24, ::std::vector<::ContextMessageLogger*>> mMessageLoggers;
81 // NOLINTEND
82 };
83
84 class ScopeHandler : public ::std::enable_shared_from_this<::ContentLog::ScopeHandler> {
85 public:
86 // member variables
87 // NOLINTBEGIN
89 // NOLINTEND
90
91 public:
92 // prevent constructor by default
93 ScopeHandler& operator=(ScopeHandler const&);
94 ScopeHandler(ScopeHandler const&);
95 ScopeHandler();
96 };
97
98 class ContentLogScope {
99 public:
100 // member variables
101 // NOLINTBEGIN
102 ::ll::TypedStorage<1, 1, bool> mPopScope;
103 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::ContentLog::ScopeHandler>> mScopeHandler;
104 // NOLINTEND
105
106 public:
107 // prevent constructor by default
108 ContentLogScope();
109
110 public:
111 // member functions
112 // NOLINTBEGIN
114
116 // NOLINTEND
117
118 public:
119 // constructor thunks
120 // NOLINTBEGIN
122 // NOLINTEND
123
124 public:
125 // destructor thunk
126 // NOLINTBEGIN
127 MCNAPI void $dtor();
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 virtual ~ContentLog() /*override*/;
150 // NOLINTEND
151
152public:
153 // member functions
154 // NOLINTBEGIN
155 MCAPI void _writeToLog(bool logOnlyOnce, ::LogArea area, ::LogLevel level, char*& args);
156
157 MCAPI ::std::string getScope();
158
159 MCAPI void log(bool, ::LogLevel, ::LogArea, ...);
160
161 MCAPI void registerEndPoint(::Bedrock::typeid_t<::ContentLog> id, ::gsl::not_null<::ContentLogEndPoint*> endPoint);
162
163 MCAPI void unregisterEndPoint(::gsl::not_null<::ContentLogEndPoint*> endPoint);
164 // NOLINTEND
165
166public:
167 // static functions
168 // NOLINTBEGIN
169 MCAPI_S static ::LogAreaID const getBedrockLogAreaFromContentLogArea(::LogArea contentLogArea);
170
171 MCAPI static char const* getLogAreaName(::LogArea area);
172 // NOLINTEND
173
174public:
175 // destructor thunk
176 // NOLINTBEGIN
177 MCAPI void $dtor();
178 // NOLINTEND
179
180public:
181 // vftables
182 // NOLINTBEGIN
183 MCNAPI static void** $vftable();
184 // NOLINTEND
185};
Definition EnableNonOwnerReferences.h:7
Definition StaticOptimizedString.h:7
Definition typeid_t.h:25
Definition ContentLogEndPoint.h:11
Definition ContentLog.h:33
Definition ContentLog.h:98
MCAPI ContentLogScope(::Bedrock::StaticOptimizedString scope)
MCAPI void * $ctor(::Bedrock::StaticOptimizedString scope)
Definition ContentLog.h:84
Definition ContentLog.h:53
Definition ContentLog.h:22
static MCAPI void ** $vftable()
Definition ContextMessageLogger.h:10
Definition DisableServiceLocatorOverride.h:5
Definition Alias.h:14