nl:: Weave:: Hồ sơ:: DataManagement_Current:: TraitDataSource
Đây là một lớp trừu tượng.
Tóm tắt
Tính kế thừa
Kế thừa từ: nl::Weave::Profiles::DataManagement_Current::TraitSchemaengine::IGetDataDelegateCác lớp con đã biết trực tiếp: nl::Weave::DeviceOverlay::internal::DeviceIdentityTraitDataSource
Hàm dựng và hàm phá hủy |
|
---|---|
TraitDataSource(const TraitSchemaEngine *aEngine)
|
|
~TraitDataSource()
|
Loại công khai |
|
---|---|
EventType
|
enum |
Thuộc tính công khai |
|
---|---|
mRootIsDirty
|
bool
|
Thuộc tính được bảo vệ |
|
---|---|
mManagedVersion
|
bool
|
mSchemaEngine
|
const TraitSchemaEngine *
|
Hàm công khai |
|
---|---|
ClearRootDirty(void)
|
void
|
GetSchemaEngine(void) const
|
const TraitSchemaEngine *
|
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
Trình xử lý cho lệnh tùy chỉnh.
|
OnCustomCommand(Command *aCommand, const nl::Weave::WeaveMessageInfo *aMsgInfo, nl::Weave::PacketBuffer *aPayload, nl::Weave::TLV::TLVReader & aArgumentReader)
|
virtual void
Trình xử lý cho lệnh tùy chỉnh.
|
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)
|
Hàm được bảo vệ |
|
---|---|
GetData(PropertyPathHandle aHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter, bool & aIsNull, bool & aIsPresent) __OVERRIDE
|
virtual WEAVE_ERROR
Với một xử lý đường dẫn đến một nút, một tác giả TLV và boolean cho biết giá trị có phải là giá trị null hay không, hãy lấy dữ liệu từ nguồn tính năng sẽ tạo thông báo.
|
GetLeafData(PropertyPathHandle aLeafHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter) __OVERRIDE=0
|
virtual WEAVE_ERROR
Do một đường dẫn xử lý một nút lá và một trình viết TLV, hãy lấy dữ liệu từ lệnh gọi.
|
IncrementVersion(void)
|
void
|
Loại công khai
Loại sự kiện
EventType
Thuộc tính công khai
mRootisDirty
bool mRootIsDirty
Thuộc tính được bảo vệ
Phiên bản được quản lý
bool mManagedVersion
mSchemaengine
const TraitSchemaEngine * mSchemaEngine
Hàm công khai
Phô mai CleanRootDirty
void ClearRootDirty( void )
GetSchemaengine
const TraitSchemaEngine * GetSchemaEngine( void ) const
Tải phiên bản
uint64_t GetVersion( void )
Gốc IsrDirty
bool IsRootDirty( void ) const
Khoá
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 )
Trình xử lý cho lệnh tùy chỉnh.
Đây là một phương thức ảo. Nếu không bị ghi đè, hành vi mặc định là trả về báo cáo trạng thái có mã trạng thái Common::kStatus_SupportMessage
OnCustomCommand
virtual void OnCustomCommand( Command *aCommand, const nl::Weave::WeaveMessageInfo *aMsgInfo, nl::Weave::PacketBuffer *aPayload, nl::Weave::TLV::TLVReader & aArgumentReader )
Trình xử lý cho lệnh tùy chỉnh.
Đây là một phương thức ảo. Nếu không bị ghi đè, hành vi mặc định là trả về báo cáo trạng thái có mã trạng thái Common::kStatus_SupportMessage
Sự kiện On
virtual WEAVE_ERROR OnEvent( uint16_t aType, void *aInEventParam )
Đọc dữ liệu
WEAVE_ERROR ReadData( PropertyPathHandle aHandle, uint64_t aTagToWrite, TLV::TLVWriter & aWriter )
Đã đặt
void SetDirty( PropertyPathHandle aPropertyHandle )
Phô mai SetRootDirty
void SetRootDirty( void )
Phiên bản đã đặt
void SetVersion( uint64_t version )
TraitDataSource
TraitDataSource( const TraitSchemaEngine *aEngine )
Mở khóa
WEAVE_ERROR Unlock( void )
~TraitDataSource
virtual ~TraitDataSource()
Hàm được bảo vệ
Tải dữ liệu
virtual WEAVE_ERROR GetData( PropertyPathHandle aHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter, bool & aIsNull, bool & aIsPresent ) __OVERRIDE
Với một xử lý đường dẫn đến một nút, một tác giả TLV và boolean cho biết giá trị có phải là giá trị null hay không, hãy lấy dữ liệu từ nguồn tính năng sẽ tạo thông báo.
Nếu điểm điều khiển đường dẫn không phải là nút lá, thì TDM sẽ xử lý các giá trị ghi cho tác giả (như mở vùng chứa, vô hiệu hóa cấu trúc, v.v.). Nếu một nút không để lại là null hoặc không có, TDM sẽ không gọi GetData cho các nút con đó.
Hàm này sẽ chỉ được gọi cho các tên người dùng có thể có giá trị null, tùy chọn, tạm thời hoặc lá. Kỳ vọng là bất kỳ đặc điểm nào với các xử lý đã bật các tùy chọn đó sẽ triển khai logic thích hợp để điền aIsNull và aIsPresent.
Thông tin chi tiết | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Các thông số |
|
||||||||||
Giá trị trả về |
|
Dữ liệu của LeLeaf
virtual WEAVE_ERROR GetLeafData( PropertyPathHandle aLeafHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter ) __OVERRIDE=0
Do một đường dẫn xử lý một nút lá và một trình viết TLV, hãy lấy dữ liệu từ lệnh gọi.
Thông tin chi tiết | |||||
---|---|---|---|---|---|
Giá trị trả về |
|
Phiên bản tăng dần
void IncrementVersion( void )