Coverage Report

Created: 2025-09-02 06:46

/src/connectedhomeip/zzz_generated/app-common/clusters/OvenCavityOperationalState/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/OvenCavityOperationalState/AttributeIds.h>
36
#include <clusters/OvenCavityOperationalState/ClusterId.h>
37
#include <clusters/OvenCavityOperationalState/Enums.h>
38
#include <clusters/OvenCavityOperationalState/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace OvenCavityOperationalState {
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::OvenCavityOperationalState::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::OvenCavityOperationalState::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::OvenCavityOperationalState::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 =
86
        chip::app::DataModel::List<const chip::app::Clusters::OvenCavityOperationalState::Structs::OperationalStateStruct::Type>;
87
    using DecodableType = chip::app::DataModel::DecodableList<
88
        chip::app::Clusters::OvenCavityOperationalState::Structs::OperationalStateStruct::DecodableType>;
89
    using DecodableArgType = const chip::app::DataModel::DecodableList<
90
        chip::app::Clusters::OvenCavityOperationalState::Structs::OperationalStateStruct::DecodableType> &;
91
92
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
93
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OperationalStateList::Id; }
94
0
    static constexpr bool MustUseTimedWrite() { return false; }
95
};
96
} // namespace OperationalStateList
97
namespace OperationalState {
98
struct TypeInfo
99
{
100
    using Type             = chip::app::Clusters::OvenCavityOperationalState::OperationalStateEnum;
101
    using DecodableType    = chip::app::Clusters::OvenCavityOperationalState::OperationalStateEnum;
102
    using DecodableArgType = chip::app::Clusters::OvenCavityOperationalState::OperationalStateEnum;
103
104
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
105
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OperationalState::Id; }
106
0
    static constexpr bool MustUseTimedWrite() { return false; }
107
};
108
} // namespace OperationalState
109
namespace OperationalError {
110
struct TypeInfo
111
{
112
    using Type             = chip::app::Clusters::OvenCavityOperationalState::Structs::ErrorStateStruct::Type;
113
    using DecodableType    = chip::app::Clusters::OvenCavityOperationalState::Structs::ErrorStateStruct::DecodableType;
114
    using DecodableArgType = const chip::app::Clusters::OvenCavityOperationalState::Structs::ErrorStateStruct::DecodableType &;
115
116
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
117
0
    static constexpr AttributeId GetAttributeId() { return Attributes::OperationalError::Id; }
118
0
    static constexpr bool MustUseTimedWrite() { return false; }
119
};
120
} // namespace OperationalError
121
namespace GeneratedCommandList {
122
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
123
{
124
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
125
};
126
} // namespace GeneratedCommandList
127
namespace AcceptedCommandList {
128
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
129
{
130
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
131
};
132
} // namespace AcceptedCommandList
133
namespace AttributeList {
134
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
135
{
136
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
137
};
138
} // namespace AttributeList
139
namespace FeatureMap {
140
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
141
{
142
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
143
};
144
} // namespace FeatureMap
145
namespace ClusterRevision {
146
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
147
{
148
0
    static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
149
};
150
} // namespace ClusterRevision
151
152
struct TypeInfo
153
{
154
    struct DecodableType
155
    {
156
0
        static constexpr ClusterId GetClusterId() { return Clusters::OvenCavityOperationalState::Id; }
157
158
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
159
160
        Attributes::PhaseList::TypeInfo::DecodableType phaseList;
161
        Attributes::CurrentPhase::TypeInfo::DecodableType currentPhase;
162
        Attributes::CountdownTime::TypeInfo::DecodableType countdownTime;
163
        Attributes::OperationalStateList::TypeInfo::DecodableType operationalStateList;
164
        Attributes::OperationalState::TypeInfo::DecodableType operationalState =
165
            static_cast<chip::app::Clusters::OvenCavityOperationalState::OperationalStateEnum>(0);
166
        Attributes::OperationalError::TypeInfo::DecodableType operationalError;
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 OvenCavityOperationalState
176
} // namespace Clusters
177
} // namespace app
178
} // namespace chip