nl::Weave::Profiles::DataManagement_Current::TraitSchemaEngine::IGetDataDelegate

此為抽象類別。

總結

繼承

直接已知子類別:
nl::Weave::Profiles::DataManagement_Current::TraitDataSource
nl::Weave::Profiles::DataManagement_Current::TraitUpdatableDataSink

公開函式

GetData(PropertyPathHandle aHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter, bool & aIsNull, bool & aIsPresent)=0
virtual WEAVE_ERROR
為節點指定路徑控點、TLV 寫入器和表示值是否為空值的布林值,從建構通知的特性來源取得資料。
GetLeafData(PropertyPathHandle aLeafHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter)=0
virtual WEAVE_ERROR
由於分葉節點和 TLV 寫入者的路徑路徑受到呼叫,因此請呼叫接收者的資料。

公開函式

取得資料

virtual WEAVE_ERROR GetData(
  PropertyPathHandle aHandle,
  uint64_t aTagToWrite,
  nl::Weave::TLV::TLVWriter & aWriter,
  bool & aIsNull,
  bool & aIsPresent
)=0

為節點指定路徑控點、TLV 寫入器和表示值是否為空值的布林值,從建構通知的特性來源取得資料。

如果路徑控點不是分葉節點,TDM 會寫入寫入值給寫入器 (例如開啟容器、讓結構失效等)。如果非分葉節點為空值或不存在,TDM 就不會呼叫子項的 GetData。

只有可空值、選用、暫時或分葉的控點才會呼叫此函式。預期任何已啟用控點的控點,將實作適當的邏輯來填入 aIsNull 和 aIspresent。

詳細資料
參數
[in] aHandle
有問題的 PropertyPathHandling。
[in] aTagToWrite
要為 a 把手撰寫的代碼。
[in,out] aWriter
寫入 TLV 元素的寫入者。
[out] aIsNull
aHandler 是否為空值?如果是的話,TDM 會寫入空值元素。如果 AHandling 不是分葉,TDM 就會略過子子的子項。
[out] aIsPresent
有 A 把手嗎?如果「否」且 a 把控點不是分葉,TDM 就會略過路徑及其子項。
傳回值
WEAVE_NO_ERROR
成功。
other
無法擷取資料並寫入寫入者。

GetLeafData

virtual WEAVE_ERROR GetLeafData(
  PropertyPathHandle aLeafHandle,
  uint64_t aTagToWrite,
  nl::Weave::TLV::TLVWriter & aWriter
)=0

由於分葉節點和 TLV 寫入者的路徑路徑受到呼叫,因此請呼叫接收者的資料。

詳細資料
傳回值
WEAVE_NO_ERROR
成功。
other
無法擷取資料並寫入寫入者。