/src/connectedhomeip/zzz_generated/app-common/clusters/ContentControl/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/ContentControl/AttributeIds.h> |
36 | | #include <clusters/ContentControl/ClusterId.h> |
37 | | #include <clusters/ContentControl/Enums.h> |
38 | | #include <clusters/ContentControl/Structs.h> |
39 | | |
40 | | namespace chip { |
41 | | namespace app { |
42 | | namespace Clusters { |
43 | | namespace ContentControl { |
44 | | namespace Attributes { |
45 | | |
46 | | namespace Enabled { |
47 | | struct TypeInfo |
48 | | { |
49 | | using Type = bool; |
50 | | using DecodableType = bool; |
51 | | using DecodableArgType = bool; |
52 | | |
53 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
54 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::Enabled::Id; } |
55 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
56 | | }; |
57 | | } // namespace Enabled |
58 | | namespace OnDemandRatings { |
59 | | struct TypeInfo |
60 | | { |
61 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ContentControl::Structs::RatingNameStruct::Type>; |
62 | | using DecodableType = |
63 | | chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::RatingNameStruct::DecodableType>; |
64 | | using DecodableArgType = |
65 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::RatingNameStruct::DecodableType> &; |
66 | | |
67 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
68 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::OnDemandRatings::Id; } |
69 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
70 | | }; |
71 | | } // namespace OnDemandRatings |
72 | | namespace OnDemandRatingThreshold { |
73 | | struct TypeInfo |
74 | | { |
75 | | using Type = chip::CharSpan; |
76 | | using DecodableType = chip::CharSpan; |
77 | | using DecodableArgType = chip::CharSpan; |
78 | | |
79 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
80 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::OnDemandRatingThreshold::Id; } |
81 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
82 | 0 | static constexpr size_t MaxLength() { return 8; } |
83 | | }; |
84 | | } // namespace OnDemandRatingThreshold |
85 | | namespace ScheduledContentRatings { |
86 | | struct TypeInfo |
87 | | { |
88 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ContentControl::Structs::RatingNameStruct::Type>; |
89 | | using DecodableType = |
90 | | chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::RatingNameStruct::DecodableType>; |
91 | | using DecodableArgType = |
92 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::RatingNameStruct::DecodableType> &; |
93 | | |
94 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
95 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ScheduledContentRatings::Id; } |
96 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
97 | | }; |
98 | | } // namespace ScheduledContentRatings |
99 | | namespace ScheduledContentRatingThreshold { |
100 | | struct TypeInfo |
101 | | { |
102 | | using Type = chip::CharSpan; |
103 | | using DecodableType = chip::CharSpan; |
104 | | using DecodableArgType = chip::CharSpan; |
105 | | |
106 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
107 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ScheduledContentRatingThreshold::Id; } |
108 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
109 | 0 | static constexpr size_t MaxLength() { return 8; } |
110 | | }; |
111 | | } // namespace ScheduledContentRatingThreshold |
112 | | namespace ScreenDailyTime { |
113 | | struct TypeInfo |
114 | | { |
115 | | using Type = uint32_t; |
116 | | using DecodableType = uint32_t; |
117 | | using DecodableArgType = uint32_t; |
118 | | |
119 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
120 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::ScreenDailyTime::Id; } |
121 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
122 | | }; |
123 | | } // namespace ScreenDailyTime |
124 | | namespace RemainingScreenTime { |
125 | | struct TypeInfo |
126 | | { |
127 | | using Type = uint32_t; |
128 | | using DecodableType = uint32_t; |
129 | | using DecodableArgType = uint32_t; |
130 | | |
131 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
132 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::RemainingScreenTime::Id; } |
133 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
134 | | }; |
135 | | } // namespace RemainingScreenTime |
136 | | namespace BlockUnrated { |
137 | | struct TypeInfo |
138 | | { |
139 | | using Type = bool; |
140 | | using DecodableType = bool; |
141 | | using DecodableArgType = bool; |
142 | | |
143 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
144 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BlockUnrated::Id; } |
145 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
146 | | }; |
147 | | } // namespace BlockUnrated |
148 | | namespace BlockChannelList { |
149 | | struct TypeInfo |
150 | | { |
151 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ContentControl::Structs::BlockChannelStruct::Type>; |
152 | | using DecodableType = |
153 | | chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::BlockChannelStruct::DecodableType>; |
154 | | using DecodableArgType = const chip::app::DataModel::DecodableList< |
155 | | chip::app::Clusters::ContentControl::Structs::BlockChannelStruct::DecodableType> &; |
156 | | |
157 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
158 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BlockChannelList::Id; } |
159 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
160 | | }; |
161 | | } // namespace BlockChannelList |
162 | | namespace BlockApplicationList { |
163 | | struct TypeInfo |
164 | | { |
165 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ContentControl::Structs::AppInfoStruct::Type>; |
166 | | using DecodableType = |
167 | | chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::AppInfoStruct::DecodableType>; |
168 | | using DecodableArgType = |
169 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::AppInfoStruct::DecodableType> &; |
170 | | |
171 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
172 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BlockApplicationList::Id; } |
173 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
174 | | }; |
175 | | } // namespace BlockApplicationList |
176 | | namespace BlockContentTimeWindow { |
177 | | struct TypeInfo |
178 | | { |
179 | | using Type = chip::app::DataModel::List<const chip::app::Clusters::ContentControl::Structs::TimeWindowStruct::Type>; |
180 | | using DecodableType = |
181 | | chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::TimeWindowStruct::DecodableType>; |
182 | | using DecodableArgType = |
183 | | const chip::app::DataModel::DecodableList<chip::app::Clusters::ContentControl::Structs::TimeWindowStruct::DecodableType> &; |
184 | | |
185 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
186 | 0 | static constexpr AttributeId GetAttributeId() { return Attributes::BlockContentTimeWindow::Id; } |
187 | 0 | static constexpr bool MustUseTimedWrite() { return false; } |
188 | | }; |
189 | | } // namespace BlockContentTimeWindow |
190 | | namespace GeneratedCommandList { |
191 | | struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo |
192 | | { |
193 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
194 | | }; |
195 | | } // namespace GeneratedCommandList |
196 | | namespace AcceptedCommandList { |
197 | | struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo |
198 | | { |
199 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
200 | | }; |
201 | | } // namespace AcceptedCommandList |
202 | | namespace AttributeList { |
203 | | struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo |
204 | | { |
205 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
206 | | }; |
207 | | } // namespace AttributeList |
208 | | namespace FeatureMap { |
209 | | struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo |
210 | | { |
211 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
212 | | }; |
213 | | } // namespace FeatureMap |
214 | | namespace ClusterRevision { |
215 | | struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo |
216 | | { |
217 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
218 | | }; |
219 | | } // namespace ClusterRevision |
220 | | |
221 | | struct TypeInfo |
222 | | { |
223 | | struct DecodableType |
224 | | { |
225 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::ContentControl::Id; } |
226 | | |
227 | | CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path); |
228 | | |
229 | | Attributes::Enabled::TypeInfo::DecodableType enabled = static_cast<bool>(0); |
230 | | Attributes::OnDemandRatings::TypeInfo::DecodableType onDemandRatings; |
231 | | Attributes::OnDemandRatingThreshold::TypeInfo::DecodableType onDemandRatingThreshold; |
232 | | Attributes::ScheduledContentRatings::TypeInfo::DecodableType scheduledContentRatings; |
233 | | Attributes::ScheduledContentRatingThreshold::TypeInfo::DecodableType scheduledContentRatingThreshold; |
234 | | Attributes::ScreenDailyTime::TypeInfo::DecodableType screenDailyTime = static_cast<uint32_t>(0); |
235 | | Attributes::RemainingScreenTime::TypeInfo::DecodableType remainingScreenTime = static_cast<uint32_t>(0); |
236 | | Attributes::BlockUnrated::TypeInfo::DecodableType blockUnrated = static_cast<bool>(0); |
237 | | Attributes::BlockChannelList::TypeInfo::DecodableType blockChannelList; |
238 | | Attributes::BlockApplicationList::TypeInfo::DecodableType blockApplicationList; |
239 | | Attributes::BlockContentTimeWindow::TypeInfo::DecodableType blockContentTimeWindow; |
240 | | Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; |
241 | | Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; |
242 | | Attributes::AttributeList::TypeInfo::DecodableType attributeList; |
243 | | Attributes::FeatureMap::TypeInfo::DecodableType featureMap = static_cast<uint32_t>(0); |
244 | | Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0); |
245 | | }; |
246 | | }; |
247 | | } // namespace Attributes |
248 | | } // namespace ContentControl |
249 | | } // namespace Clusters |
250 | | } // namespace app |
251 | | } // namespace chip |