Coverage Report

Created: 2026-01-22 06:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/AccessControl/Attributes.h
Line
Count
Source
1
/*
2
 *
3
 *    Copyright (c) 2022 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
// THIS FILE IS GENERATED BY ZAP
19
// This file is generated from clusters-Attributes.h.zapt
20
21
#pragma once
22
23
#include <app/ConcreteAttributePath.h>
24
#include <app/data-model/DecodableList.h>
25
#include <app/data-model/List.h>
26
#include <app/data-model/Nullable.h>
27
#include <app/util/basic-types.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Attributes.h>
32
#include <clusters/shared/Enums.h>
33
#include <clusters/shared/Structs.h>
34
35
#include <clusters/AccessControl/AttributeIds.h>
36
#include <clusters/AccessControl/ClusterId.h>
37
#include <clusters/AccessControl/Enums.h>
38
#include <clusters/AccessControl/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace AccessControl {
44
namespace Attributes {
45
46
namespace Acl {
47
struct TypeInfo
48
{
49
    using Type = chip::app::DataModel::List<const chip::app::Clusters::AccessControl::Structs::AccessControlEntryStruct::Type>;
50
    using DecodableType =
51
        chip::app::DataModel::DecodableList<chip::app::Clusters::AccessControl::Structs::AccessControlEntryStruct::DecodableType>;
52
    using DecodableArgType = const chip::app::DataModel::DecodableList<
53
        chip::app::Clusters::AccessControl::Structs::AccessControlEntryStruct::DecodableType> &;
54
55
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
56
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Acl::Id; }
57
0
    static constexpr bool MustUseTimedWrite() { return false; }
58
};
59
} // namespace Acl
60
namespace Extension {
61
struct TypeInfo
62
{
63
    using Type = chip::app::DataModel::List<const chip::app::Clusters::AccessControl::Structs::AccessControlExtensionStruct::Type>;
64
    using DecodableType = chip::app::DataModel::DecodableList<
65
        chip::app::Clusters::AccessControl::Structs::AccessControlExtensionStruct::DecodableType>;
66
    using DecodableArgType = const chip::app::DataModel::DecodableList<
67
        chip::app::Clusters::AccessControl::Structs::AccessControlExtensionStruct::DecodableType> &;
68
69
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
70
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Extension::Id; }
71
0
    static constexpr bool MustUseTimedWrite() { return false; }
72
};
73
} // namespace Extension
74
namespace SubjectsPerAccessControlEntry {
75
struct TypeInfo
76
{
77
    using Type             = uint16_t;
78
    using DecodableType    = uint16_t;
79
    using DecodableArgType = uint16_t;
80
81
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
82
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SubjectsPerAccessControlEntry::Id; }
83
0
    static constexpr bool MustUseTimedWrite() { return false; }
84
};
85
} // namespace SubjectsPerAccessControlEntry
86
namespace TargetsPerAccessControlEntry {
87
struct TypeInfo
88
{
89
    using Type             = uint16_t;
90
    using DecodableType    = uint16_t;
91
    using DecodableArgType = uint16_t;
92
93
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
94
0
    static constexpr AttributeId GetAttributeId() { return Attributes::TargetsPerAccessControlEntry::Id; }
95
0
    static constexpr bool MustUseTimedWrite() { return false; }
96
};
97
} // namespace TargetsPerAccessControlEntry
98
namespace AccessControlEntriesPerFabric {
99
struct TypeInfo
100
{
101
    using Type             = uint16_t;
102
    using DecodableType    = uint16_t;
103
    using DecodableArgType = uint16_t;
104
105
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
106
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AccessControlEntriesPerFabric::Id; }
107
0
    static constexpr bool MustUseTimedWrite() { return false; }
108
};
109
} // namespace AccessControlEntriesPerFabric
110
namespace CommissioningARL {
111
struct TypeInfo
112
{
113
    using Type = chip::app::DataModel::List<
114
        const chip::app::Clusters::AccessControl::Structs::CommissioningAccessRestrictionEntryStruct::Type>;
115
    using DecodableType = chip::app::DataModel::DecodableList<
116
        chip::app::Clusters::AccessControl::Structs::CommissioningAccessRestrictionEntryStruct::DecodableType>;
117
    using DecodableArgType = const chip::app::DataModel::DecodableList<
118
        chip::app::Clusters::AccessControl::Structs::CommissioningAccessRestrictionEntryStruct::DecodableType> &;
119
120
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
121
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CommissioningARL::Id; }
122
0
    static constexpr bool MustUseTimedWrite() { return false; }
123
};
124
} // namespace CommissioningARL
125
namespace Arl {
126
struct TypeInfo
127
{
128
    using Type = chip::app::DataModel::List<const chip::app::Clusters::AccessControl::Structs::AccessRestrictionEntryStruct::Type>;
129
    using DecodableType = chip::app::DataModel::DecodableList<
130
        chip::app::Clusters::AccessControl::Structs::AccessRestrictionEntryStruct::DecodableType>;
131
    using DecodableArgType = const chip::app::DataModel::DecodableList<
132
        chip::app::Clusters::AccessControl::Structs::AccessRestrictionEntryStruct::DecodableType> &;
133
134
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
135
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Arl::Id; }
136
0
    static constexpr bool MustUseTimedWrite() { return false; }
137
};
138
} // namespace Arl
139
namespace AuxiliaryACL {
140
struct TypeInfo
141
{
142
    using Type = chip::app::DataModel::List<const chip::app::Clusters::AccessControl::Structs::AccessControlEntryStruct::Type>;
143
    using DecodableType =
144
        chip::app::DataModel::DecodableList<chip::app::Clusters::AccessControl::Structs::AccessControlEntryStruct::DecodableType>;
145
    using DecodableArgType = const chip::app::DataModel::DecodableList<
146
        chip::app::Clusters::AccessControl::Structs::AccessControlEntryStruct::DecodableType> &;
147
148
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
149
0
    static constexpr AttributeId GetAttributeId() { return Attributes::AuxiliaryACL::Id; }
150
0
    static constexpr bool MustUseTimedWrite() { return false; }
151
};
152
} // namespace AuxiliaryACL
153
namespace GeneratedCommandList {
154
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
155
{
156
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
157
};
158
} // namespace GeneratedCommandList
159
namespace AcceptedCommandList {
160
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
161
{
162
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
163
};
164
} // namespace AcceptedCommandList
165
namespace AttributeList {
166
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
167
{
168
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
169
};
170
} // namespace AttributeList
171
namespace FeatureMap {
172
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
173
{
174
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
175
};
176
} // namespace FeatureMap
177
namespace ClusterRevision {
178
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
179
{
180
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
181
};
182
} // namespace ClusterRevision
183
184
struct TypeInfo
185
{
186
    struct DecodableType
187
    {
188
0
        static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
189
190
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
191
192
        Attributes::Acl::TypeInfo::DecodableType acl;
193
        Attributes::Extension::TypeInfo::DecodableType extension;
194
        Attributes::SubjectsPerAccessControlEntry::TypeInfo::DecodableType subjectsPerAccessControlEntry = static_cast<uint16_t>(0);
195
        Attributes::TargetsPerAccessControlEntry::TypeInfo::DecodableType targetsPerAccessControlEntry   = static_cast<uint16_t>(0);
196
        Attributes::AccessControlEntriesPerFabric::TypeInfo::DecodableType accessControlEntriesPerFabric = static_cast<uint16_t>(0);
197
        Attributes::CommissioningARL::TypeInfo::DecodableType commissioningARL;
198
        Attributes::Arl::TypeInfo::DecodableType arl;
199
        Attributes::AuxiliaryACL::TypeInfo::DecodableType auxiliaryACL;
200
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
201
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
202
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
203
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
204
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
205
    };
206
};
207
} // namespace Attributes
208
} // namespace AccessControl
209
} // namespace Clusters
210
} // namespace app
211
} // namespace chip