Coverage Report

Created: 2025-10-10 06:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/opendnp3/cpp/lib/src/app/AnalogOutput.cpp
Line
Count
Source
1
/*
2
 * Copyright 2013-2022 Step Function I/O, LLC
3
 *
4
 * Licensed to Green Energy Corp (www.greenenergycorp.com) and Step Function I/O
5
 * LLC (https://stepfunc.io) under one or more contributor license agreements.
6
 * See the NOTICE file distributed with this work for additional information
7
 * regarding copyright ownership. Green Energy Corp and Step Function I/O LLC license
8
 * this file to you under the Apache License, Version 2.0 (the "License"); you
9
 * may not use this file except in compliance with the License. You may obtain
10
 * a copy of the License at:
11
 *
12
 * http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 */
20
#include "opendnp3/app/AnalogOutput.h"
21
22
namespace opendnp3
23
{
24
25
0
AnalogOutputInt16::AnalogOutputInt16(int16_t aValue) : AnalogOutput<int16_t>(aValue) {}
26
27
25.3k
AnalogOutputInt16::AnalogOutputInt16(int16_t aValue, CommandStatus aStatus) : AnalogOutput<int16_t>(aValue, aStatus) {}
28
29
25.3k
AnalogOutputInt16::AnalogOutputInt16() : AnalogOutput<int16_t>(0) {}
30
31
bool AnalogOutputInt16::operator==(const AnalogOutputInt16& arRHS) const
32
0
{
33
0
    return this->ValuesEqual(arRHS) && status == arRHS.status;
34
0
}
35
36
0
AnalogOutputInt32::AnalogOutputInt32(int32_t aValue) : AnalogOutput<int32_t>(aValue) {}
37
38
8.54k
AnalogOutputInt32::AnalogOutputInt32(int32_t aValue, CommandStatus aStatus) : AnalogOutput<int32_t>(aValue, aStatus) {}
39
40
8.54k
AnalogOutputInt32::AnalogOutputInt32() : AnalogOutput<int32_t>(0) {}
41
42
bool AnalogOutputInt32::operator==(const AnalogOutputInt32& arRHS) const
43
0
{
44
0
    return this->ValuesEqual(arRHS) && status == arRHS.status;
45
0
}
46
47
0
AnalogOutputFloat32::AnalogOutputFloat32(float aValue) : AnalogOutput<float>(aValue) {}
48
49
9.09k
AnalogOutputFloat32::AnalogOutputFloat32(float aValue, CommandStatus aStatus) : AnalogOutput<float>(aValue, aStatus) {}
50
51
9.09k
AnalogOutputFloat32::AnalogOutputFloat32() : AnalogOutput<float>(0) {}
52
53
bool AnalogOutputFloat32::operator==(const AnalogOutputFloat32& arRHS) const
54
0
{
55
0
    return this->ValuesEqual(arRHS) && status == arRHS.status;
56
0
}
57
58
0
AnalogOutputDouble64::AnalogOutputDouble64(double aValue) : AnalogOutput<double>(aValue) {}
59
60
7.49k
AnalogOutputDouble64::AnalogOutputDouble64(double aValue, CommandStatus aStatus) : AnalogOutput<double>(aValue, aStatus)
61
7.49k
{
62
7.49k
}
63
64
7.49k
AnalogOutputDouble64::AnalogOutputDouble64() : AnalogOutput<double>(0) {}
65
66
bool AnalogOutputDouble64::operator==(const AnalogOutputDouble64& arRHS) const
67
0
{
68
0
    return this->ValuesEqual(arRHS) && status == arRHS.status;
69
0
}
70
71
} // namespace opendnp3