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