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