Coverage Report

Created: 2026-01-17 06:53

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/opendnp3/cpp/lib/src/gen/objects/Group30.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_GROUP30_H
33
#define OPENDNP3_GROUP30_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
// Analog Input - Any Variation
44
struct Group30Var0
45
{
46
0
  static GroupVariationID ID() { return GroupVariationID(30,0); }
47
};
48
49
// Analog Input - 32-bit With Flag
50
struct Group30Var1
51
{
52
414
  static GroupVariationID ID() { return GroupVariationID(30,1); }
53
54
  Group30Var1();
55
56
3.18k
  static size_t Size() { return 5; }
57
  static bool Read(ser4cpp::rseq_t&, Group30Var1&);
58
  static bool Write(const Group30Var1&, ser4cpp::wseq_t&);
59
60
  typedef int32_t ValueType;
61
  uint8_t flags;
62
  int32_t value;
63
64
  typedef Analog Target;
65
  typedef AnalogSpec Spec;
66
  static bool ReadTarget(ser4cpp::rseq_t&, Analog&);
67
  static bool WriteTarget(const Analog&, ser4cpp::wseq_t&);
68
414
  static DNP3Serializer<Analog> Inst() { return DNP3Serializer<Analog>(ID(), Size(), &ReadTarget, &WriteTarget); }
69
  static const StaticAnalogVariation svariation = StaticAnalogVariation::Group30Var1;
70
};
71
72
// Analog Input - 16-bit With Flag
73
struct Group30Var2
74
{
75
109
  static GroupVariationID ID() { return GroupVariationID(30,2); }
76
77
  Group30Var2();
78
79
2.03k
  static size_t Size() { return 3; }
80
  static bool Read(ser4cpp::rseq_t&, Group30Var2&);
81
  static bool Write(const Group30Var2&, ser4cpp::wseq_t&);
82
83
  typedef int16_t ValueType;
84
  uint8_t flags;
85
  int16_t value;
86
87
  typedef Analog Target;
88
  typedef AnalogSpec Spec;
89
  static bool ReadTarget(ser4cpp::rseq_t&, Analog&);
90
  static bool WriteTarget(const Analog&, ser4cpp::wseq_t&);
91
109
  static DNP3Serializer<Analog> Inst() { return DNP3Serializer<Analog>(ID(), Size(), &ReadTarget, &WriteTarget); }
92
  static const StaticAnalogVariation svariation = StaticAnalogVariation::Group30Var2;
93
};
94
95
// Analog Input - 32-bit Without Flag
96
struct Group30Var3
97
{
98
116
  static GroupVariationID ID() { return GroupVariationID(30,3); }
99
100
  Group30Var3();
101
102
1.91k
  static size_t Size() { return 4; }
103
  static bool Read(ser4cpp::rseq_t&, Group30Var3&);
104
  static bool Write(const Group30Var3&, ser4cpp::wseq_t&);
105
106
  typedef int32_t ValueType;
107
  int32_t value;
108
109
  typedef Analog Target;
110
  typedef AnalogSpec Spec;
111
  static bool ReadTarget(ser4cpp::rseq_t&, Analog&);
112
  static bool WriteTarget(const Analog&, ser4cpp::wseq_t&);
113
116
  static DNP3Serializer<Analog> Inst() { return DNP3Serializer<Analog>(ID(), Size(), &ReadTarget, &WriteTarget); }
114
  static const StaticAnalogVariation svariation = StaticAnalogVariation::Group30Var3;
115
};
116
117
// Analog Input - 16-bit Without Flag
118
struct Group30Var4
119
{
120
121
  static GroupVariationID ID() { return GroupVariationID(30,4); }
121
122
  Group30Var4();
123
124
2.68k
  static size_t Size() { return 2; }
125
  static bool Read(ser4cpp::rseq_t&, Group30Var4&);
126
  static bool Write(const Group30Var4&, ser4cpp::wseq_t&);
127
128
  typedef int16_t ValueType;
129
  int16_t value;
130
131
  typedef Analog Target;
132
  typedef AnalogSpec Spec;
133
  static bool ReadTarget(ser4cpp::rseq_t&, Analog&);
134
  static bool WriteTarget(const Analog&, ser4cpp::wseq_t&);
135
121
  static DNP3Serializer<Analog> Inst() { return DNP3Serializer<Analog>(ID(), Size(), &ReadTarget, &WriteTarget); }
136
  static const StaticAnalogVariation svariation = StaticAnalogVariation::Group30Var4;
137
};
138
139
// Analog Input - Single-precision With Flag
140
struct Group30Var5
141
{
142
111
  static GroupVariationID ID() { return GroupVariationID(30,5); }
143
144
  Group30Var5();
145
146
2.04k
  static size_t Size() { return 5; }
147
  static bool Read(ser4cpp::rseq_t&, Group30Var5&);
148
  static bool Write(const Group30Var5&, ser4cpp::wseq_t&);
149
150
  typedef float ValueType;
151
  uint8_t flags;
152
  float value;
153
154
  typedef Analog Target;
155
  typedef AnalogSpec Spec;
156
  static bool ReadTarget(ser4cpp::rseq_t&, Analog&);
157
  static bool WriteTarget(const Analog&, ser4cpp::wseq_t&);
158
111
  static DNP3Serializer<Analog> Inst() { return DNP3Serializer<Analog>(ID(), Size(), &ReadTarget, &WriteTarget); }
159
  static const StaticAnalogVariation svariation = StaticAnalogVariation::Group30Var5;
160
};
161
162
// Analog Input - Double-precision With Flag
163
struct Group30Var6
164
{
165
170
  static GroupVariationID ID() { return GroupVariationID(30,6); }
166
167
  Group30Var6();
168
169
2.32k
  static size_t Size() { return 9; }
170
  static bool Read(ser4cpp::rseq_t&, Group30Var6&);
171
  static bool Write(const Group30Var6&, ser4cpp::wseq_t&);
172
173
  typedef double ValueType;
174
  uint8_t flags;
175
  double value;
176
177
  typedef Analog Target;
178
  typedef AnalogSpec Spec;
179
  static bool ReadTarget(ser4cpp::rseq_t&, Analog&);
180
  static bool WriteTarget(const Analog&, ser4cpp::wseq_t&);
181
170
  static DNP3Serializer<Analog> Inst() { return DNP3Serializer<Analog>(ID(), Size(), &ReadTarget, &WriteTarget); }
182
  static const StaticAnalogVariation svariation = StaticAnalogVariation::Group30Var6;
183
};
184
185
186
}
187
188
#endif