Coverage Report

Created: 2026-02-26 06:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/opendnp3/cpp/lib/src/gen/objects/Group21.h
Line
Count
Source
1
//
2
//  _   _         ______    _ _ _   _             _ _ _
3
// | \ | |       |  ____|  | (_) | (_)           | | | |
4
// |  \| | ___   | |__   __| |_| |_ _ _ __   __ _| | | |
5
// | . ` |/ _ \  |  __| / _` | | __| | '_ \ / _` | | | |
6
// | |\  | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_|
7
// |_| \_|\___/  |______\__,_|_|\__|_|_| |_|\__, (_|_|_)
8
//                                           __/ |
9
//                                          |___/
10
// 
11
// This file is auto-generated. Do not edit manually
12
// 
13
// Copyright 2013-2022 Step Function I/O, LLC
14
// 
15
// Licensed to Green Energy Corp (www.greenenergycorp.com) and Step Function I/O
16
// LLC (https://stepfunc.io) under one or more contributor license agreements.
17
// See the NOTICE file distributed with this work for additional information
18
// regarding copyright ownership. Green Energy Corp and Step Function I/O LLC license
19
// this file to you under the Apache License, Version 2.0 (the "License"); you
20
// may not use this file except in compliance with the License. You may obtain
21
// a copy of the License at:
22
// 
23
//   http://www.apache.org/licenses/LICENSE-2.0
24
// 
25
// Unless required by applicable law or agreed to in writing, software
26
// distributed under the License is distributed on an "AS IS" BASIS,
27
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
// See the License for the specific language governing permissions and
29
// limitations under the License.
30
//
31
32
#ifndef OPENDNP3_GROUP21_H
33
#define OPENDNP3_GROUP21_H
34
35
#include "opendnp3/app/GroupVariationID.h"
36
#include <ser4cpp/container/SequenceTypes.h>
37
#include "opendnp3/app/DNPTime.h"
38
#include "app/DNP3Serializer.h"
39
#include "app/MeasurementTypeSpecs.h"
40
41
namespace opendnp3 {
42
43
// Frozen Counter - Any Variation
44
struct Group21Var0
45
{
46
0
  static GroupVariationID ID() { return GroupVariationID(21,0); }
47
};
48
49
// Frozen Counter - 32-bit With Flag
50
struct Group21Var1
51
{
52
379
  static GroupVariationID ID() { return GroupVariationID(21,1); }
53
54
  Group21Var1();
55
56
2.34k
  static size_t Size() { return 5; }
57
  static bool Read(ser4cpp::rseq_t&, Group21Var1&);
58
  static bool Write(const Group21Var1&, ser4cpp::wseq_t&);
59
60
  typedef uint32_t ValueType;
61
  uint8_t flags;
62
  uint32_t value;
63
64
  typedef FrozenCounter Target;
65
  typedef FrozenCounterSpec Spec;
66
  static bool ReadTarget(ser4cpp::rseq_t&, FrozenCounter&);
67
  static bool WriteTarget(const FrozenCounter&, ser4cpp::wseq_t&);
68
379
  static DNP3Serializer<FrozenCounter> Inst() { return DNP3Serializer<FrozenCounter>(ID(), Size(), &ReadTarget, &WriteTarget); }
69
  static const StaticFrozenCounterVariation svariation = StaticFrozenCounterVariation::Group21Var1;
70
};
71
72
// Frozen Counter - 16-bit With Flag
73
struct Group21Var2
74
{
75
128
  static GroupVariationID ID() { return GroupVariationID(21,2); }
76
77
  Group21Var2();
78
79
2.25k
  static size_t Size() { return 3; }
80
  static bool Read(ser4cpp::rseq_t&, Group21Var2&);
81
  static bool Write(const Group21Var2&, ser4cpp::wseq_t&);
82
83
  typedef uint16_t ValueType;
84
  uint8_t flags;
85
  uint16_t value;
86
87
  typedef FrozenCounter Target;
88
  typedef FrozenCounterSpec Spec;
89
  static bool ReadTarget(ser4cpp::rseq_t&, FrozenCounter&);
90
  static bool WriteTarget(const FrozenCounter&, ser4cpp::wseq_t&);
91
128
  static DNP3Serializer<FrozenCounter> Inst() { return DNP3Serializer<FrozenCounter>(ID(), Size(), &ReadTarget, &WriteTarget); }
92
  static const StaticFrozenCounterVariation svariation = StaticFrozenCounterVariation::Group21Var2;
93
};
94
95
// Frozen Counter - 32-bit With Flag and Time
96
struct Group21Var5
97
{
98
145
  static GroupVariationID ID() { return GroupVariationID(21,5); }
99
100
  Group21Var5();
101
102
2.73k
  static size_t Size() { return 11; }
103
  static bool Read(ser4cpp::rseq_t&, Group21Var5&);
104
  static bool Write(const Group21Var5&, ser4cpp::wseq_t&);
105
106
  typedef uint32_t ValueType;
107
  uint8_t flags;
108
  uint32_t value;
109
  DNPTime time;
110
111
  typedef FrozenCounter Target;
112
  typedef FrozenCounterSpec Spec;
113
  static bool ReadTarget(ser4cpp::rseq_t&, FrozenCounter&);
114
  static bool WriteTarget(const FrozenCounter&, ser4cpp::wseq_t&);
115
145
  static DNP3Serializer<FrozenCounter> Inst() { return DNP3Serializer<FrozenCounter>(ID(), Size(), &ReadTarget, &WriteTarget); }
116
  static const StaticFrozenCounterVariation svariation = StaticFrozenCounterVariation::Group21Var5;
117
};
118
119
// Frozen Counter - 16-bit With Flag and Time
120
struct Group21Var6
121
{
122
131
  static GroupVariationID ID() { return GroupVariationID(21,6); }
123
124
  Group21Var6();
125
126
2.13k
  static size_t Size() { return 9; }
127
  static bool Read(ser4cpp::rseq_t&, Group21Var6&);
128
  static bool Write(const Group21Var6&, ser4cpp::wseq_t&);
129
130
  typedef uint16_t ValueType;
131
  uint8_t flags;
132
  uint16_t value;
133
  DNPTime time;
134
135
  typedef FrozenCounter Target;
136
  typedef FrozenCounterSpec Spec;
137
  static bool ReadTarget(ser4cpp::rseq_t&, FrozenCounter&);
138
  static bool WriteTarget(const FrozenCounter&, ser4cpp::wseq_t&);
139
131
  static DNP3Serializer<FrozenCounter> Inst() { return DNP3Serializer<FrozenCounter>(ID(), Size(), &ReadTarget, &WriteTarget); }
140
  static const StaticFrozenCounterVariation svariation = StaticFrozenCounterVariation::Group21Var6;
141
};
142
143
// Frozen Counter - 32-bit Without Flag
144
struct Group21Var9
145
{
146
104
  static GroupVariationID ID() { return GroupVariationID(21,9); }
147
148
  Group21Var9();
149
150
2.35k
  static size_t Size() { return 4; }
151
  static bool Read(ser4cpp::rseq_t&, Group21Var9&);
152
  static bool Write(const Group21Var9&, ser4cpp::wseq_t&);
153
154
  typedef uint32_t ValueType;
155
  uint32_t value;
156
157
  typedef FrozenCounter Target;
158
  typedef FrozenCounterSpec Spec;
159
  static bool ReadTarget(ser4cpp::rseq_t&, FrozenCounter&);
160
  static bool WriteTarget(const FrozenCounter&, ser4cpp::wseq_t&);
161
104
  static DNP3Serializer<FrozenCounter> Inst() { return DNP3Serializer<FrozenCounter>(ID(), Size(), &ReadTarget, &WriteTarget); }
162
  static const StaticFrozenCounterVariation svariation = StaticFrozenCounterVariation::Group21Var9;
163
};
164
165
// Frozen Counter - 16-bit Without Flag
166
struct Group21Var10
167
{
168
115
  static GroupVariationID ID() { return GroupVariationID(21,10); }
169
170
  Group21Var10();
171
172
2.01k
  static size_t Size() { return 2; }
173
  static bool Read(ser4cpp::rseq_t&, Group21Var10&);
174
  static bool Write(const Group21Var10&, ser4cpp::wseq_t&);
175
176
  typedef uint16_t ValueType;
177
  uint16_t value;
178
179
  typedef FrozenCounter Target;
180
  typedef FrozenCounterSpec Spec;
181
  static bool ReadTarget(ser4cpp::rseq_t&, FrozenCounter&);
182
  static bool WriteTarget(const FrozenCounter&, ser4cpp::wseq_t&);
183
115
  static DNP3Serializer<FrozenCounter> Inst() { return DNP3Serializer<FrozenCounter>(ID(), Size(), &ReadTarget, &WriteTarget); }
184
  static const StaticFrozenCounterVariation svariation = StaticFrozenCounterVariation::Group21Var10;
185
};
186
187
188
}
189
190
#endif