Coverage Report

Created: 2026-01-10 06:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/opendnp3/cpp/lib/src/outstation/ApplicationIIN.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/outstation/ApplicationIIN.h"
21
22
namespace opendnp3
23
{
24
25
IINField ApplicationIIN::ToIIN() const
26
8.42k
{
27
8.42k
    IINField ret;
28
8.42k
    ret.SetBitToValue(IINBit::NEED_TIME, needTime);
29
8.42k
    ret.SetBitToValue(IINBit::LOCAL_CONTROL, localControl);
30
8.42k
    ret.SetBitToValue(IINBit::CONFIG_CORRUPT, configCorrupt);
31
8.42k
    ret.SetBitToValue(IINBit::DEVICE_TROUBLE, deviceTrouble);
32
8.42k
    ret.SetBitToValue(IINBit::EVENT_BUFFER_OVERFLOW, eventBufferOverflow);
33
8.42k
    return ret;
34
8.42k
}
35
36
} // namespace opendnp3