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/Groupcast/Structs.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-Structs.h.zapt
20
21
#pragma once
22
23
#include <app/data-model/DecodableList.h>
24
#include <app/data-model/List.h>
25
#include <app/data-model/Nullable.h>
26
#include <lib/core/DataModelTypes.h>
27
#include <lib/core/Optional.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Structs.h>
32
33
#include <cstdint>
34
35
namespace chip {
36
namespace app {
37
namespace Clusters {
38
namespace Groupcast {
39
namespace Structs {
40
namespace MembershipStruct {
41
enum class Fields : uint8_t
42
{
43
    kGroupID         = 0,
44
    kEndpoints       = 1,
45
    kKeySetID        = 2,
46
    kHasAuxiliaryACL = 3,
47
    kMcastAddrPolicy = 4,
48
    kFabricIndex     = 254,
49
};
50
51
struct Type
52
{
53
public:
54
    chip::GroupId groupID = static_cast<chip::GroupId>(0);
55
    Optional<DataModel::List<const chip::EndpointId>> endpoints;
56
    uint16_t keySetID = static_cast<uint16_t>(0);
57
    Optional<bool> hasAuxiliaryACL;
58
    MulticastAddrPolicyEnum mcastAddrPolicy = static_cast<MulticastAddrPolicyEnum>(0);
59
    chip::FabricIndex fabricIndex           = static_cast<chip::FabricIndex>(0);
60
61
    static constexpr bool kIsFabricScoped = true;
62
63
0
    auto GetFabricIndex() const { return fabricIndex; }
64
65
0
    void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; }
66
67
    CHIP_ERROR EncodeForWrite(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
68
    CHIP_ERROR EncodeForRead(TLV::TLVWriter & aWriter, TLV::Tag aTag, FabricIndex aAccessingFabricIndex) const;
69
70
private:
71
    CHIP_ERROR DoEncode(TLV::TLVWriter & aWriter, TLV::Tag aTag, const Optional<FabricIndex> & aAccessingFabricIndex) const;
72
};
73
74
struct DecodableType
75
{
76
public:
77
    chip::GroupId groupID = static_cast<chip::GroupId>(0);
78
    Optional<DataModel::DecodableList<chip::EndpointId>> endpoints;
79
    uint16_t keySetID = static_cast<uint16_t>(0);
80
    Optional<bool> hasAuxiliaryACL;
81
    MulticastAddrPolicyEnum mcastAddrPolicy = static_cast<MulticastAddrPolicyEnum>(0);
82
    chip::FabricIndex fabricIndex           = static_cast<chip::FabricIndex>(0);
83
84
    CHIP_ERROR Decode(TLV::TLVReader & reader);
85
86
    static constexpr bool kIsFabricScoped = true;
87
88
0
    auto GetFabricIndex() const { return fabricIndex; }
89
90
0
    void SetFabricIndex(chip::FabricIndex fabricIndex_) { fabricIndex = fabricIndex_; }
91
};
92
93
} // namespace MembershipStruct
94
} // namespace Structs
95
} // namespace Groupcast
96
} // namespace Clusters
97
} // namespace app
98
} // namespace chip