nl::Weave::Profiles::DataManagement_Current::TraitDataSource

นี่คือคลาสนามธรรม

สรุป

การสืบทอด

รับค่าจาก nl::Weave::Profiles::DataManagement_Current::TraitSchemaEngine::IGetDataDelegate
Direct Known Subclasses: nl::Weave::DeviceLayer::Internal::DeviceIdentityTraitDataSource

ผู้ผลิตและผู้ทำลาย

TraitDataSource(const TraitSchemaEngine *aEngine)
~TraitDataSource()

ประเภทสาธารณะ

EventType enum

แอตทริบิวต์สาธารณะ

mRootIsDirty
bool

แอตทริบิวต์ที่ได้รับการปกป้อง

mManagedVersion
bool
mSchemaEngine

ฟังก์ชันสาธารณะ

ClearRootDirty(void)
void
GetSchemaEngine(void) const
GetVersion(void)
uint64_t
IsRootDirty(void) const
bool
Lock(void)
OnCustomCommand(Command *aCommand, const nl::Weave::WeaveMessageInfo *aMsgInfo, nl::Weave::PacketBuffer *aPayload, const uint64_t & aCommandType, const bool aIsExpiryTimeValid, const int64_t & aExpiryTimeMicroSecond, const bool aIsMustBeVersionValid, const uint64_t & aMustBeVersion, nl::Weave::TLV::TLVReader & aArgumentReader)
virtual void
เครื่องจัดการสำหรับคำสั่งที่กำหนดเอง
OnCustomCommand(Command *aCommand, const nl::Weave::WeaveMessageInfo *aMsgInfo, nl::Weave::PacketBuffer *aPayload, nl::Weave::TLV::TLVReader & aArgumentReader)
virtual void
เครื่องจัดการสำหรับคำสั่งที่กำหนดเอง
OnEvent(uint16_t aType, void *aInEventParam)
virtual WEAVE_ERROR
ReadData(PropertyPathHandle aHandle, uint64_t aTagToWrite, TLV::TLVWriter & aWriter)
SetDirty(PropertyPathHandle aPropertyHandle)
void
SetRootDirty(void)
void
SetVersion(uint64_t version)
void
Unlock(void)

ฟังก์ชันที่มีการป้องกัน

GetData(PropertyPathHandle aHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter, bool & aIsNull, bool & aIsPresent) __OVERRIDE
virtual WEAVE_ERROR
รับข้อมูลจากแหล่งที่มาลักษณะที่จะสร้างการแจ้งเตือน โดยใช้แฮนเดิลพาธไปยังโหนด ผู้เขียน TLV และบูลีนที่ระบุว่าค่านั้นๆ เป็นค่าว่างหรือไม่
GetLeafData(PropertyPathHandle aLeafHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter) __OVERRIDE=0
virtual WEAVE_ERROR
รับข้อมูลจากตัวเรียกเองโดยใช้แฮนเดิลเส้นทางไปยังโหนด Leaf และผู้เขียน TLV
IncrementVersion(void)
void

ประเภทสาธารณะ

EventType

 EventType

แอตทริบิวต์สาธารณะ

mRootIsDirty

bool mRootIsDirty

แอตทริบิวต์ที่ได้รับการปกป้อง

mManagedVersion

bool mManagedVersion

mSchemaEngine

const TraitSchemaEngine * mSchemaEngine

ฟังก์ชันสาธารณะ

ClearRootDirty

void ClearRootDirty(
  void
)

GetSchemaEngine

const TraitSchemaEngine * GetSchemaEngine(
  void
) const 

GetVersion

uint64_t GetVersion(
  void
)

IsRootDirty

bool IsRootDirty(
  void
) const 

ล็อก

WEAVE_ERROR Lock(
  void
)

OnCustomCommand

virtual void OnCustomCommand(
  Command *aCommand,
  const nl::Weave::WeaveMessageInfo *aMsgInfo,
  nl::Weave::PacketBuffer *aPayload,
  const uint64_t & aCommandType,
  const bool aIsExpiryTimeValid,
  const int64_t & aExpiryTimeMicroSecond,
  const bool aIsMustBeVersionValid,
  const uint64_t & aMustBeVersion,
  nl::Weave::TLV::TLVReader & aArgumentReader
)

เครื่องจัดการสำหรับคำสั่งที่กำหนดเอง

นี่คือวิธีการเสมือนจริง หากไม่ได้ลบล้าง ลักษณะการทำงานเริ่มต้นจะเป็นการแสดงผลรายงานสถานะที่มีรหัสสถานะ Common::kStatus_UnsupportedMessage

OnCustomCommand

virtual void OnCustomCommand(
  Command *aCommand,
  const nl::Weave::WeaveMessageInfo *aMsgInfo,
  nl::Weave::PacketBuffer *aPayload,
  nl::Weave::TLV::TLVReader & aArgumentReader
)

เครื่องจัดการสำหรับคำสั่งที่กำหนดเอง

นี่คือวิธีการเสมือนจริง หากไม่ได้ลบล้าง ลักษณะการทำงานเริ่มต้นจะเป็นการแสดงผลรายงานสถานะที่มีรหัสสถานะ Common::kStatus_UnsupportedMessage

OnEvent

virtual WEAVE_ERROR OnEvent(
  uint16_t aType,
  void *aInEventParam
)

ReadData

WEAVE_ERROR ReadData(
  PropertyPathHandle aHandle,
  uint64_t aTagToWrite,
  TLV::TLVWriter & aWriter
)

SetDirty

void SetDirty(
  PropertyPathHandle aPropertyHandle
)

SetRootDirty

void SetRootDirty(
  void
)

SetVersion

void SetVersion(
  uint64_t version
)

TraitDataSource

 TraitDataSource(
  const TraitSchemaEngine *aEngine
)

ปลดล็อก

WEAVE_ERROR Unlock(
  void
)

~แหล่งที่มาของข้อมูลTrait

virtual  ~TraitDataSource()

ฟังก์ชันที่มีการป้องกัน

GetData

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

รับข้อมูลจากแหล่งที่มาลักษณะที่จะสร้างการแจ้งเตือน โดยใช้แฮนเดิลพาธไปยังโหนด ผู้เขียน TLV และบูลีนที่ระบุว่าค่านั้นๆ เป็นค่าว่างหรือไม่

หากแฮนเดิลเส้นทางไม่ใช่โหนด Leaf TDM จะจัดการการเขียนค่าไปยังผู้เขียน (เช่น การเปิดคอนเทนเนอร์ การทำให้โครงสร้างเป็นโมฆะ เป็นต้น) หากโหนดที่ไม่ใช่ Leaf มีค่าหรือไม่มี TDM จะไม่เรียก GetData สำหรับระดับลูก

ระบบจะเรียกใช้ฟังก์ชันนี้สำหรับแฮนเดิลที่เป็นค่าว่าง ไม่บังคับ ชั่วคราว หรือใบไม้เท่านั้น โปรดทราบว่าลักษณะใดๆ ที่มีแฮนเดิลที่เปิดใช้ตัวเลือกเหล่านั้นจะใช้ตรรกะที่เหมาะสมเพื่อป้อนข้อมูล aIsNull และ aIsนำเสนอ

รายละเอียด
พารามิเตอร์
[in] aHandle
PropertyPathHandle ที่เป็นปัญหา
[in] aTagToWrite
แท็กที่จะเขียนสำหรับ aHandle
[in,out] aWriter
ผู้เขียนที่จะเขียนองค์ประกอบ TLV
[out] aIsNull
แฮนเดิลเป็นโมฆะใช่ไหม หากใช่ TDM จะเขียนองค์ประกอบ Null หาก aHandle ไม่ใช่ Leaf ตัว TDM จะข้ามผ่านรายการย่อย
[out] aIsPresent
มี aHandle ไหม หากไม่มีและหาก aHandle ไม่ใช่ Leaf TDM จะข้ามเส้นทางและรายการย่อย
แสดงผลค่า
WEAVE_NO_ERROR
ความสำเร็จ
other
ไม่สามารถเรียกข้อมูลและเขียนลงในผู้เขียน

GetLeafData

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

รับข้อมูลจากตัวเรียกเองโดยใช้แฮนเดิลเส้นทางไปยังโหนด Leaf และผู้เขียน TLV

รายละเอียด
แสดงผลค่า
WEAVE_NO_ERROR
ความสำเร็จ
other
ไม่สามารถเรียกข้อมูลและเขียนลงในผู้เขียน

IncrementVersion

void IncrementVersion(
  void
)