Coverage Report

Created: 2025-08-28 06:31

/src/connectedhomeip/zzz_generated/app-common/clusters/ServiceArea/Attributes.h
Line
Count
Source (jump to first uncovered line)
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/ServiceArea/AttributeIds.h>
36
#include <clusters/ServiceArea/ClusterId.h>
37
#include <clusters/ServiceArea/Enums.h>
38
#include <clusters/ServiceArea/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace ServiceArea {
44
namespace Attributes {
45
46
namespace SupportedAreas {
47
struct TypeInfo
48
{
49
    using Type          = chip::app::DataModel::List<const chip::app::Clusters::ServiceArea::Structs::AreaStruct::Type>;
50
    using DecodableType = chip::app::DataModel::DecodableList<chip::app::Clusters::ServiceArea::Structs::AreaStruct::DecodableType>;
51
    using DecodableArgType =
52
        const chip::app::DataModel::DecodableList<chip::app::Clusters::ServiceArea::Structs::AreaStruct::DecodableType> &;
53
54
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
55
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SupportedAreas::Id; }
56
0
    static constexpr bool MustUseTimedWrite() { return false; }
57
};
58
} // namespace SupportedAreas
59
namespace SupportedMaps {
60
struct TypeInfo
61
{
62
    using Type          = chip::app::DataModel::List<const chip::app::Clusters::ServiceArea::Structs::MapStruct::Type>;
63
    using DecodableType = chip::app::DataModel::DecodableList<chip::app::Clusters::ServiceArea::Structs::MapStruct::DecodableType>;
64
    using DecodableArgType =
65
        const chip::app::DataModel::DecodableList<chip::app::Clusters::ServiceArea::Structs::MapStruct::DecodableType> &;
66
67
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
68
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SupportedMaps::Id; }
69
0
    static constexpr bool MustUseTimedWrite() { return false; }
70
};
71
} // namespace SupportedMaps
72
namespace SelectedAreas {
73
struct TypeInfo
74
{
75
    using Type             = chip::app::DataModel::List<const uint32_t>;
76
    using DecodableType    = chip::app::DataModel::DecodableList<uint32_t>;
77
    using DecodableArgType = const chip::app::DataModel::DecodableList<uint32_t> &;
78
79
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
80
0
    static constexpr AttributeId GetAttributeId() { return Attributes::SelectedAreas::Id; }
81
0
    static constexpr bool MustUseTimedWrite() { return false; }
82
};
83
} // namespace SelectedAreas
84
namespace CurrentArea {
85
struct TypeInfo
86
{
87
    using Type             = chip::app::DataModel::Nullable<uint32_t>;
88
    using DecodableType    = chip::app::DataModel::Nullable<uint32_t>;
89
    using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &;
90
91
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
92
0
    static constexpr AttributeId GetAttributeId() { return Attributes::CurrentArea::Id; }
93
0
    static constexpr bool MustUseTimedWrite() { return false; }
94
};
95
} // namespace CurrentArea
96
namespace EstimatedEndTime {
97
struct TypeInfo
98
{
99
    using Type             = chip::app::DataModel::Nullable<uint32_t>;
100
    using DecodableType    = chip::app::DataModel::Nullable<uint32_t>;
101
    using DecodableArgType = const chip::app::DataModel::Nullable<uint32_t> &;
102
103
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
104
0
    static constexpr AttributeId GetAttributeId() { return Attributes::EstimatedEndTime::Id; }
105
0
    static constexpr bool MustUseTimedWrite() { return false; }
106
};
107
} // namespace EstimatedEndTime
108
namespace Progress {
109
struct TypeInfo
110
{
111
    using Type = chip::app::DataModel::List<const chip::app::Clusters::ServiceArea::Structs::ProgressStruct::Type>;
112
    using DecodableType =
113
        chip::app::DataModel::DecodableList<chip::app::Clusters::ServiceArea::Structs::ProgressStruct::DecodableType>;
114
    using DecodableArgType =
115
        const chip::app::DataModel::DecodableList<chip::app::Clusters::ServiceArea::Structs::ProgressStruct::DecodableType> &;
116
117
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
118
0
    static constexpr AttributeId GetAttributeId() { return Attributes::Progress::Id; }
119
0
    static constexpr bool MustUseTimedWrite() { return false; }
120
};
121
} // namespace Progress
122
namespace GeneratedCommandList {
123
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
124
{
125
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
126
};
127
} // namespace GeneratedCommandList
128
namespace AcceptedCommandList {
129
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
130
{
131
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
132
};
133
} // namespace AcceptedCommandList
134
namespace AttributeList {
135
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
136
{
137
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
138
};
139
} // namespace AttributeList
140
namespace FeatureMap {
141
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
142
{
143
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
144
};
145
} // namespace FeatureMap
146
namespace ClusterRevision {
147
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
148
{
149
0
    static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
150
};
151
} // namespace ClusterRevision
152
153
struct TypeInfo
154
{
155
    struct DecodableType
156
    {
157
0
        static constexpr ClusterId GetClusterId() { return Clusters::ServiceArea::Id; }
158
159
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
160
161
        Attributes::SupportedAreas::TypeInfo::DecodableType supportedAreas;
162
        Attributes::SupportedMaps::TypeInfo::DecodableType supportedMaps;
163
        Attributes::SelectedAreas::TypeInfo::DecodableType selectedAreas;
164
        Attributes::CurrentArea::TypeInfo::DecodableType currentArea;
165
        Attributes::EstimatedEndTime::TypeInfo::DecodableType estimatedEndTime;
166
        Attributes::Progress::TypeInfo::DecodableType progress;
167
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
168
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
169
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
170
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
171
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
172
    };
173
};
174
} // namespace Attributes
175
} // namespace ServiceArea
176
} // namespace Clusters
177
} // namespace app
178
} // namespace chip