Coverage Report

Created: 2025-08-28 06:31

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