GCC Code Coverage Report


Directory: src/
File: src/Task.cpp
Date: 2026-09-03 17:04:53
Exec Total Coverage
Lines: 14 14 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*****************************************************************************
2 *
3 * Copyright (C) 2021 Jonathan Grahl <jonathan.grahl@igh.de>
4 * 2021 Florian Pose <florian.pose@igh.de>
5 *
6 * This file is part of the reta library (realtime-automation).
7 *
8 * The reta library is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published
10 * by the Free Software Foundation, either version 3 of the License, or (at
11 * your option) any later version.
12 *
13 * The reta library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with the reta library. If not, see <http://www.gnu.org/licenses/>.
20 *
21 ****************************************************************************/
22
23 #include "reta/Task.h"
24
25 using namespace Reta;
26
27 /****************************************************************************/
28
29 struct RETA_LOCAL Reta::Task::Impl
30 {
31 Impl(pdserv *, pdtask *, double);
32
33 pdserv *server;
34 pdtask *task;
35 double period;
36 };
37
38 /****************************************************************************/
39
40 52 Task::Impl::Impl(pdserv *pdserv, pdtask *task, double period) :
41 52 server {pdserv}, task {task}, period {period}
42 52 {}
43
44 /****************************************************************************/
45
46 52 Task::Task(pdserv *pdserv, pdtask *task, double period) :
47 52 impl {std::make_unique<Impl>(pdserv, task, period)}
48 52 {}
49
50 /****************************************************************************/
51
52 52 Task::~Task()
53 52 {}
54
55 /****************************************************************************/
56
57 306 pdserv *Task::getPdServ() const
58 {
59 306 return impl->server;
60 }
61
62 /****************************************************************************/
63
64 587 pdtask *Task::getPdTask() const
65 {
66 587 return impl->task;
67 }
68
69 /****************************************************************************/
70
71 125 double Task::getPeriod() const
72 {
73 125 return impl->period;
74 }
75
76 /****************************************************************************/
77