nl:: Weave:: Profiles:: DataManagement_Current:: LogStorageResources
#include <src/lib/profiles/data-management/Current/LoggingManagement.h>
用于初始化日志记录管理的帮助程序类。
摘要
类用于封装调用方分配的资源,并表示在记录具有特定重要性的事件时使用的资源。请注意,虽然引用计数器的资源专供特定的重要性级别使用,但缓冲区会在 this
重要性级别和“更”重要的事件之间共享。
公共属性 |
|
---|---|
mBuffer
|
void *
用作具有特定重要性级别的存储空间,并与更重要事件共享的缓冲区。
|
mBufferSize
|
size_t
mBuffer 的大小(以字节为单位)。 |
mCounterEpoch
|
uint32_t
递增持久性计数器中使用的时间间隔。
|
mCounterKey
|
nl::Weave::Platform::PersistedStorage::Key *
具有此重要性事件的键命名永久性计数器的名称。
|
mCounterStorage
|
应用为此重要性级别提供的持久性计数器存储空间。
|
mImportance
|
与此结构中提供的资源相关联的日志重要性级别。
|
公共属性
mBuffer
void * nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mBuffer
用作具有特定重要性级别的存储空间,并与更重要事件共享的缓冲区。
不得为 NULL。必须足够大,能够容纳系统发出的最大事件。
mBufferSize
size_t nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mBufferSize
mBuffer
的大小(以字节为单位)。
mCounterEpoch
uint32_t nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mCounterEpoch
递增持久性计数器中使用的时间间隔。
如果为 0,则对于此重要性级别,不会使用持久性计数器。
mCounterKey
nl::Weave::Platform::PersistedStorage::Key * nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mCounterKey
具有此重要性事件的键命名永久性计数器的名称。
如果为 NULL,则持久性计数器不会用于此重要性级别。
mCounterStorage
nl::Weave::PersistedCounter * nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mCounterStorage
应用为此重要性级别提供的持久性计数器存储空间。
如果为 NULL,则对于此重要性级别,不会使用永久性计数器。
mImportance
ImportanceType nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mImportance
与此结构中提供的资源相关联的日志重要性级别。