GCC Code Coverage Report


Directory: ./
File: channeloutput/DebugOutput.h
Date: 2026-10-29 08:11:58
Exec Total Coverage
Lines: 0 3 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2 /*
3 * This file is part of the Falcon Player (FPP) and is Copyright (C)
4 * 2013-2022 by the Falcon Player Developers.
5 *
6 * The Falcon Player (FPP) is free software, and is covered under
7 * multiple Open Source licenses. Please see the included 'LICENSES'
8 * file for descriptions of what files are covered by each license.
9 *
10 * This source file is covered under the GPL v2 as described in the
11 * included LICENSE.GPL file.
12 */
13
14 #include "ChannelOutput.h"
15 #include "fpp-json-fwd.h"
16
17 /*
18 * This DebugOutput Channel Output driver is provided for debugging
19 * purposes and as a template which can be used when creating new
20 * Channel Output drivers for FPP. It reimpliments the minimal
21 * methods necessary from the ChannelOutput class which is is
22 * derived from.
23 */
24
25 class DebugOutput : public ChannelOutput {
26 public:
27 DebugOutput(unsigned int startChannel, unsigned int channelCount);
28 virtual ~DebugOutput();
29
30 virtual int Init(Json::Value config) override;
31
32 // Close the derived class. This method must also call the
33 // base class Close() method.
34 virtual int Close(void) override;
35
36 // Main routine to send channel data out
37 virtual int SendData(unsigned char* channelData) override;
38
39 // Dump the config variables for debugging. This method must
40 // also call the base class DumpConfig() method.
41 virtual void DumpConfig(void) override;
42
43 ✗ virtual void GetRequiredChannelRanges(const std::function<void(int, int)>& addRange) override {
44 ✗ addRange(m_startChannel, m_startChannel + m_channelCount - 1);
45 ✗ }
46 };
47