Coverage Report

Created: 2026-02-12 06:57

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