Coverage Report

Created: 2026-04-09 06:56

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