From 448c26d51d4ae826484d4f8e81606715a2219898 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 26 Apr 2024 13:39:58 -0400 Subject: [PATCH] Updated back the comments and file layout --- src/app/AttributeValueDecoder.h | 10 ++++++++-- src/app/AttributeValueEncoder.h | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/app/AttributeValueDecoder.h b/src/app/AttributeValueDecoder.h index 9776c911671fda..5f5e2255b2fa3e 100644 --- a/src/app/AttributeValueDecoder.h +++ b/src/app/AttributeValueDecoder.h @@ -54,9 +54,15 @@ class AttributeValueDecoder bool TriedDecode() const { return mTriedDecode; } - const Access::SubjectDescriptor & GetSubjectDescriptor() const { return mSubjectDescriptor; } + /** + * The accessing fabric index for this write interaction. + */ + FabricIndex AccessingFabricIndex() const { return mSubjectDescriptor.fabricIndex; } - FabricIndex AccessingFabricIndex() const { return GetSubjectDescriptor().fabricIndex; } + /** + * The accessing subject descriptor for this write interaction. + */ + const Access::SubjectDescriptor & GetSubjectDescriptor() const { return mSubjectDescriptor; } private: TLV::TLVReader & mReader; diff --git a/src/app/AttributeValueEncoder.h b/src/app/AttributeValueEncoder.h index 79ee5953a2ca6b..5c196f91f2e426 100644 --- a/src/app/AttributeValueEncoder.h +++ b/src/app/AttributeValueEncoder.h @@ -149,6 +149,9 @@ class AttributeValueEncoder const Access::SubjectDescriptor & GetSubjectDescriptor() const { return mSubjectDescriptor; } + /** + * The accessing fabric index for this read or subscribe interaction. + */ FabricIndex AccessingFabricIndex() const { return GetSubjectDescriptor().fabricIndex; } /**