Coverage Report

Created: 2025-06-13 06:46

/src/Fast-DDS/src/cpp/rtps/writer/StatelessPersistentWriter.cpp
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
/*
16
 * @file StatelessPersistentWriter.cpp
17
 *
18
 */
19
20
#include "StatelessPersistentWriter.hpp"
21
22
#include <fastdds/rtps/history/WriterHistory.hpp>
23
24
#include <rtps/persistence/PersistenceService.h>
25
26
namespace eprosima {
27
namespace fastdds {
28
namespace rtps {
29
30
StatelessPersistentWriter::StatelessPersistentWriter(
31
        RTPSParticipantImpl* pimpl,
32
        const GUID_t& guid,
33
        const WriterAttributes& att,
34
        fastdds::rtps::FlowController* flow_controller,
35
        WriterHistory* hist,
36
        WriterListener* listen,
37
        IPersistenceService* persistence)
38
0
    : StatelessWriter(pimpl, guid, att, flow_controller, hist, listen)
39
0
    , PersistentWriter(guid, att, hist, persistence)
40
0
{
41
0
}
42
43
StatelessPersistentWriter::~StatelessPersistentWriter()
44
0
{
45
0
}
46
47
/*
48
 *  CHANGE-RELATED METHODS
49
 */
50
51
void StatelessPersistentWriter::unsent_change_added_to_history(
52
        CacheChange_t* cptr,
53
        const std::chrono::time_point<std::chrono::steady_clock>& max_blocking_time)
54
0
{
55
0
    add_persistent_change(cptr);
56
0
    StatelessWriter::unsent_change_added_to_history(cptr, max_blocking_time);
57
0
}
58
59
bool StatelessPersistentWriter::change_removed_by_history(
60
        CacheChange_t* change,
61
        const std::chrono::time_point<std::chrono::steady_clock>& max_blocking_time)
62
0
{
63
0
    remove_persistent_change(change);
64
0
    return StatelessWriter::change_removed_by_history(change, max_blocking_time);
65
0
}
66
67
} // namespace rtps
68
} // namespace fastdds
69
} // namespace eprosima