Coverage Report

Created: 2026-07-10 06:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/AmbientSensingUnion/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/AmbientSensingUnion/AttributeIds.h>
36
#include <clusters/AmbientSensingUnion/ClusterId.h>
37
#include <clusters/AmbientSensingUnion/Enums.h>
38
#include <clusters/AmbientSensingUnion/Structs.h>
39
40
namespace chip {
41
namespace app {
42
namespace Clusters {
43
namespace AmbientSensingUnion {
44
namespace Attributes {
45
46
namespace UnionName {
47
struct TypeInfo
48
{
49
    using Type             = chip::CharSpan;
50
    using DecodableType    = chip::CharSpan;
51
    using DecodableArgType = chip::CharSpan;
52
53
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
54
0
    static constexpr AttributeId GetAttributeId() { return Attributes::UnionName::Id; }
55
0
    static constexpr bool MustUseTimedWrite() { return false; }
56
0
    static constexpr size_t MaxLength() { return 128; }
57
};
58
} // namespace UnionName
59
namespace UnionHealth {
60
struct TypeInfo
61
{
62
    using Type             = chip::app::Clusters::AmbientSensingUnion::UnionHealthEnum;
63
    using DecodableType    = chip::app::Clusters::AmbientSensingUnion::UnionHealthEnum;
64
    using DecodableArgType = chip::app::Clusters::AmbientSensingUnion::UnionHealthEnum;
65
66
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
67
0
    static constexpr AttributeId GetAttributeId() { return Attributes::UnionHealth::Id; }
68
0
    static constexpr bool MustUseTimedWrite() { return false; }
69
};
70
} // namespace UnionHealth
71
namespace UnionContributorList {
72
struct TypeInfo
73
{
74
    using Type = chip::app::DataModel::List<const chip::app::Clusters::AmbientSensingUnion::Structs::UnionContributorStruct::Type>;
75
    using DecodableType = chip::app::DataModel::DecodableList<
76
        chip::app::Clusters::AmbientSensingUnion::Structs::UnionContributorStruct::DecodableType>;
77
    using DecodableArgType = const chip::app::DataModel::DecodableList<
78
        chip::app::Clusters::AmbientSensingUnion::Structs::UnionContributorStruct::DecodableType> &;
79
80
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
81
0
    static constexpr AttributeId GetAttributeId() { return Attributes::UnionContributorList::Id; }
82
0
    static constexpr bool MustUseTimedWrite() { return false; }
83
};
84
} // namespace UnionContributorList
85
namespace GeneratedCommandList {
86
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
87
{
88
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
89
};
90
} // namespace GeneratedCommandList
91
namespace AcceptedCommandList {
92
struct TypeInfo : public Clusters::Globals::Attributes::AcceptedCommandList::TypeInfo
93
{
94
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
95
};
96
} // namespace AcceptedCommandList
97
namespace AttributeList {
98
struct TypeInfo : public Clusters::Globals::Attributes::AttributeList::TypeInfo
99
{
100
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
101
};
102
} // namespace AttributeList
103
namespace FeatureMap {
104
struct TypeInfo : public Clusters::Globals::Attributes::FeatureMap::TypeInfo
105
{
106
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
107
};
108
} // namespace FeatureMap
109
namespace ClusterRevision {
110
struct TypeInfo : public Clusters::Globals::Attributes::ClusterRevision::TypeInfo
111
{
112
0
    static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
113
};
114
} // namespace ClusterRevision
115
116
struct TypeInfo
117
{
118
    struct DecodableType
119
    {
120
0
        static constexpr ClusterId GetClusterId() { return Clusters::AmbientSensingUnion::Id; }
121
122
        CHIP_ERROR Decode(TLV::TLVReader & reader, const ConcreteAttributePath & path);
123
124
        Attributes::UnionName::TypeInfo::DecodableType unionName;
125
        Attributes::UnionHealth::TypeInfo::DecodableType unionHealth =
126
            static_cast<chip::app::Clusters::AmbientSensingUnion::UnionHealthEnum>(0);
127
        Attributes::UnionContributorList::TypeInfo::DecodableType unionContributorList;
128
        Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
129
        Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
130
        Attributes::AttributeList::TypeInfo::DecodableType attributeList;
131
        Attributes::FeatureMap::TypeInfo::DecodableType featureMap           = static_cast<uint32_t>(0);
132
        Attributes::ClusterRevision::TypeInfo::DecodableType clusterRevision = static_cast<uint16_t>(0);
133
    };
134
};
135
} // namespace Attributes
136
} // namespace AmbientSensingUnion
137
} // namespace Clusters
138
} // namespace app
139
} // namespace chip