nl:: Weave:: Profiles:: DataManagement_Legacy:: ClientNotifier:: Subscription
  #include <src/lib/profiles/data-management/Legacy/ClientNotifier.h>
  用戶端訂閱。
摘要
用戶端上的訂閱項目只會對應一組:
[, ] 
        建構函式和解構函式 | 
    |
|---|---|
        Subscription(void)
         | 
    |
        ~Subscription(void)
         | 
    
        公開屬性 | 
    |
|---|---|
        mClient
       | 
      
        DMClient *
        與此訂閱相關的用戶端。 
       | 
    
        受保護的屬性 | 
    |
|---|---|
        mAssignedId
       | 
      |
        mPublisherId
       | 
      
        uint64_t
         | 
    
        mRequestedId
       | 
      |
        公開函式 | 
    |
|---|---|
        CheckSubscription(const TopicIdentifier & aTopicId, const uint64_t & aPublisherId)
       | 
      
        bool
        檢查訂閱項目的目標。 
       | 
    
        Free(void)
       | 
      
        void
         | 
    
        Init(const TopicIdentifier & aAssignedId, const TopicIdentifier & aRequestedId, const uint64_t & aPublisherId, DMClient *aClient)
       | 
      |
        IsFree(void)
       | 
      
        bool
         | 
    
        MatchSubscription(const TopicIdentifier & aTopicId, const uint64_t & aPublisherId) const 
       | 
      
        bool
        檢查訂閱項目的內容。 
       | 
    
        MatchSubscription(const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient) const 
       | 
      
        bool
        檢查訂閱項目的內容。 
       | 
    
公開屬性
受保護的屬性
mAssignedId
TopicIdentifier mAssignedId
mPublisherId
uint64_t mPublisherId
mRequestedId
TopicIdentifier mRequestedId
公開函式
CheckSubscription
bool CheckSubscription( const TopicIdentifier & aTopicId, const uint64_t & aPublisherId )
檢查訂閱項目的目標。
這項測試是用來根據通知器資料表檢查收到的訊息。除了檢查特定參數中完全相符的項目外,也會檢查資料表是否包含「萬用字元」同一個字詞
| 詳細資料 | |||||
|---|---|---|---|---|---|
| 參數 | 
              
  | 
          ||||
| 傳回 | 
               如果訂閱項目相符,傳回 true,否則傳回 false。 
             | 
          ||||
免費
void Free( void )
Init
WEAVE_ERROR Init( const TopicIdentifier & aAssignedId, const TopicIdentifier & aRequestedId, const uint64_t & aPublisherId, DMClient *aClient )
IsFree
bool IsFree( void )
MatchSubscription
bool MatchSubscription( const TopicIdentifier & aTopicId, const uint64_t & aPublisherId ) const
檢查訂閱項目的內容。
這項測試是為了判斷通知器表格是否包含特定訂閱項目,並假設其稱為「來自上述」。因此,這些參數可能包含「萬用字元」但如果不是的話,就必須採用完全比對。此版本假設訂閱的資料管理工具元件為目前用戶端。
| 詳細資料 | |||||
|---|---|---|---|---|---|
| 參數 | 
              
  | 
          ||||
| 傳回 | 
               如果訂閱項目相符,傳回 true,否則傳回 false。 
             | 
          ||||
MatchSubscription
bool MatchSubscription( const TopicIdentifier & aTopicId, const uint64_t & aPublisherId, DMClient *aClient ) const
檢查訂閱項目的內容。
這項測試是為了判斷通知器表格是否包含特定訂閱項目,並假設其稱為「來自上述」。因此,有些參數可能包含「萬用字元」但如果不是的話,就必須採用完全比對。
| 詳細資料 | |||||||
|---|---|---|---|---|---|---|---|
| 參數 | 
              
  | 
          ||||||
| 傳回 | 
               如果訂閱項目相符,傳回 true,否則傳回 false。 
             | 
          ||||||
訂閱
Subscription( void )
約訂閱
virtual ~Subscription( void )