nl:: Weave:: Profiles:: DataManagement_Current:: TraitDataSource
זו כיתה מופשטת.
סיכום
ירושה
Inherits from: nl::Weave::Profiles::DataManagement_Current::TraitSchemaEngine::IGetDataDelegateמחלקות משנה ישירות ידועות: nl::Weave::DeviceLayer::Internal::DeviceIdentityTraitDataSource
בונים והורסים |
|
---|---|
TraitDataSource(const TraitSchemaEngine *aEngine)
|
|
~TraitDataSource()
|
סוגים ציבוריים |
|
---|---|
EventType
|
טיפוסים בני מנייה (enum) |
מאפיינים ציבוריים |
|
---|---|
mRootIsDirty
|
bool
|
מאפיינים מוגנים |
|
---|---|
mManagedVersion
|
bool
|
mSchemaEngine
|
const TraitSchemaEngine *
|
תפקידים ציבוריים |
|
---|---|
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
handler לפקודה בהתאמה אישית.
|
OnCustomCommand(Command *aCommand, const nl::Weave::WeaveMessageInfo *aMsgInfo, nl::Weave::PacketBuffer *aPayload, nl::Weave::TLV::TLVReader & aArgumentReader)
|
virtual void
handler לפקודה בהתאמה אישית.
|
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 ובוליאנים שמציינים אם הערך הוא null או לא, מקבלים את הנתונים ממקור התכונה שיבנה התראה.
|
GetLeafData(PropertyPathHandle aLeafHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter) __OVERRIDE=0
|
virtual WEAVE_ERROR
בהינתן כינוי לנתיב של צומת עלה וכותב 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 )
handler לפקודה בהתאמה אישית.
זו שיטה וירטואלית. אם המדיניות לא בוטלה, התנהגות ברירת המחדל היא להחזיר דוח סטטוס עם קוד הסטטוס Common::kStatus_UnsupportedMessage
OnCustomCommand
virtual void OnCustomCommand( Command *aCommand, const nl::Weave::WeaveMessageInfo *aMsgInfo, nl::Weave::PacketBuffer *aPayload, nl::Weave::TLV::TLVReader & aArgumentReader )
handler לפקודה בהתאמה אישית.
זו שיטה וירטואלית. אם המדיניות לא בוטלה, התנהגות ברירת המחדל היא להחזיר דוח סטטוס עם קוד הסטטוס 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 )
~TraitDataSource
virtual ~TraitDataSource()
פונקציות מוגנות
GetData
virtual WEAVE_ERROR GetData( PropertyPathHandle aHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter, bool & aIsNull, bool & aIsPresent ) __OVERRIDE
בהינתן כינוי לנתיב לצומת, כותב TLV ובוליאנים שמציינים אם הערך הוא null או לא, מקבלים את הנתונים ממקור התכונה שיבנה התראה.
אם נקודת האחיזה לנתיב אינה צומת עלה, TDM יטפל בערכי כתיבה לכותב (כגון פתיחת קונטיינרים, ביטול ה-struct וכו'). אם צומת ללא עלים ריק או לא קיים, TDM לא יקרא ל-GetData עבור הצאצאים שלו.
הפונקציה הזו תופעל רק עבור נקודות אחיזה שהן null, אופציונליות, זמניות או עם עלים. הציפייה היא שבכל תכונה עם כינויים שהאפשרויות האלו מופעלות בהן תטמיע לוגיקה מתאימה לאכלוס AIsNull ו-aIspresent.
פרטים | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
פרמטרים |
|
||||||||||
ערכים מוחזרים |
|
GetLeafData
virtual WEAVE_ERROR GetLeafData( PropertyPathHandle aLeafHandle, uint64_t aTagToWrite, nl::Weave::TLV::TLVWriter & aWriter ) __OVERRIDE=0
בהינתן כינוי לנתיב של צומת עלה וכותב TLV, מקבלים את הנתונים שמקבל הקריאה.
פרטים | |||||
---|---|---|---|---|---|
ערכים מוחזרים |
|
IncrementVersion
void IncrementVersion( void )