Coverage Report

Created: 2025-07-23 06:09

/src/opendnp3/cpp/lib/src/app/AnalogCommandEvent.cpp
Line
Count
Source (jump to first uncovered line)
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
21
#include "opendnp3/app/AnalogCommandEvent.h"
22
23
namespace opendnp3
24
{
25
26
16.8k
AnalogCommandEvent::AnalogCommandEvent() : value(0), status(CommandStatus::SUCCESS) {}
27
28
8.54k
AnalogCommandEvent::AnalogCommandEvent(double value_, CommandStatus status_) : value(value_), status(status_) {}
29
30
AnalogCommandEvent::AnalogCommandEvent(double value_, CommandStatus status_, DNPTime time_)
31
3.83k
    : value(value_), status(status_), time(time_)
32
3.83k
{
33
3.83k
}
34
35
bool AnalogCommandEvent::operator==(const AnalogCommandEvent& rhs) const
36
0
{
37
0
    return (value == rhs.value) && (status == rhs.status) && (time == rhs.time);
38
0
}
39
40
} // namespace opendnp3