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

緩衝區用於特定重要性等級,並與較重要的事件共用。

不得為空值。必須夠大,才能容納系統發出的最大事件。

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

這個重要性的事件命名永久計數器名稱。

如為空值,則永久計數器不會用於這個重要性等級。

mCounterStorage

nl::Weave::PersistedCounter * nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mCounterStorage

應用程式提供的儲存空間,適合這個重要性等級的永久計數器。

如為空值,系統就不會針對這個重要性等級使用永久計數器。

mImportance

ImportanceType nl::Weave::Profiles::DataManagement_Current::LogStorageResources::mImportance

與這個結構中提供的資源相關聯的記錄重要性等級。