/src/connectedhomeip/zzz_generated/app-common/clusters/UnitTesting/Events.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-Events.h.zapt |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <app/EventLoggingTypes.h> |
24 | | #include <app/data-model/DecodableList.h> |
25 | | #include <app/data-model/List.h> |
26 | | #include <app/data-model/Nullable.h> |
27 | | #include <lib/core/DataModelTypes.h> |
28 | | #include <lib/core/TLV.h> |
29 | | #include <lib/support/BitMask.h> |
30 | | |
31 | | #include <clusters/shared/Enums.h> |
32 | | #include <clusters/shared/Structs.h> |
33 | | |
34 | | #include <clusters/UnitTesting/ClusterId.h> |
35 | | #include <clusters/UnitTesting/Enums.h> |
36 | | #include <clusters/UnitTesting/EventIds.h> |
37 | | #include <clusters/UnitTesting/Structs.h> |
38 | | |
39 | | #include <cstdint> |
40 | | |
41 | | namespace chip { |
42 | | namespace app { |
43 | | namespace Clusters { |
44 | | namespace UnitTesting { |
45 | | namespace Events { |
46 | | namespace TestEvent { |
47 | | static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; |
48 | | |
49 | | enum class Fields : uint8_t |
50 | | { |
51 | | kArg1 = 1, |
52 | | kArg2 = 2, |
53 | | kArg3 = 3, |
54 | | kArg4 = 4, |
55 | | kArg5 = 5, |
56 | | kArg6 = 6, |
57 | | }; |
58 | | |
59 | | struct Type |
60 | | { |
61 | | public: |
62 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
63 | 0 | static constexpr EventId GetEventId() { return Events::TestEvent::Id; } |
64 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::UnitTesting::Id; } |
65 | | static constexpr bool kIsFabricScoped = false; |
66 | | |
67 | | uint8_t arg1 = static_cast<uint8_t>(0); |
68 | | SimpleEnum arg2 = static_cast<SimpleEnum>(0); |
69 | | bool arg3 = static_cast<bool>(0); |
70 | | Structs::SimpleStruct::Type arg4; |
71 | | DataModel::List<const Structs::SimpleStruct::Type> arg5; |
72 | | DataModel::List<const SimpleEnum> arg6; |
73 | | |
74 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
75 | | }; |
76 | | |
77 | | struct DecodableType |
78 | | { |
79 | | public: |
80 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
81 | 0 | static constexpr EventId GetEventId() { return Events::TestEvent::Id; } |
82 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::UnitTesting::Id; } |
83 | | |
84 | | uint8_t arg1 = static_cast<uint8_t>(0); |
85 | | SimpleEnum arg2 = static_cast<SimpleEnum>(0); |
86 | | bool arg3 = static_cast<bool>(0); |
87 | | Structs::SimpleStruct::DecodableType arg4; |
88 | | DataModel::DecodableList<Structs::SimpleStruct::DecodableType> arg5; |
89 | | DataModel::DecodableList<SimpleEnum> arg6; |
90 | | |
91 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
92 | | }; |
93 | | } // namespace TestEvent |
94 | | namespace TestFabricScopedEvent { |
95 | | static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; |
96 | | |
97 | | enum class Fields : uint8_t |
98 | | { |
99 | | kFabricIndex = 254, |
100 | | }; |
101 | | |
102 | | struct Type |
103 | | { |
104 | | public: |
105 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
106 | 0 | static constexpr EventId GetEventId() { return Events::TestFabricScopedEvent::Id; } |
107 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::UnitTesting::Id; } |
108 | | static constexpr bool kIsFabricScoped = true; |
109 | | |
110 | | chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0); |
111 | | |
112 | 0 | auto GetFabricIndex() const { return fabricIndex; } |
113 | | |
114 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
115 | | }; |
116 | | |
117 | | struct DecodableType |
118 | | { |
119 | | public: |
120 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
121 | 0 | static constexpr EventId GetEventId() { return Events::TestFabricScopedEvent::Id; } |
122 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::UnitTesting::Id; } |
123 | | |
124 | | chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0); |
125 | | |
126 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
127 | | }; |
128 | | } // namespace TestFabricScopedEvent |
129 | | namespace TestDifferentVendorMeiEvent { |
130 | | static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info; |
131 | | |
132 | | enum class Fields : uint8_t |
133 | | { |
134 | | kArg1 = 1, |
135 | | }; |
136 | | |
137 | | struct Type |
138 | | { |
139 | | public: |
140 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
141 | 0 | static constexpr EventId GetEventId() { return Events::TestDifferentVendorMeiEvent::Id; } |
142 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::UnitTesting::Id; } |
143 | | static constexpr bool kIsFabricScoped = false; |
144 | | |
145 | | uint8_t arg1 = static_cast<uint8_t>(0); |
146 | | |
147 | | CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; |
148 | | }; |
149 | | |
150 | | struct DecodableType |
151 | | { |
152 | | public: |
153 | 0 | static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; } |
154 | 0 | static constexpr EventId GetEventId() { return Events::TestDifferentVendorMeiEvent::Id; } |
155 | 0 | static constexpr ClusterId GetClusterId() { return Clusters::UnitTesting::Id; } |
156 | | |
157 | | uint8_t arg1 = static_cast<uint8_t>(0); |
158 | | |
159 | | CHIP_ERROR Decode(TLV::TLVReader & reader); |
160 | | }; |
161 | | } // namespace TestDifferentVendorMeiEvent |
162 | | } // namespace Events |
163 | | } // namespace UnitTesting |
164 | | } // namespace Clusters |
165 | | } // namespace app |
166 | | } // namespace chip |