GCC Code Coverage Report


Directory: ./
File: playlist/PlaylistEntryBranch.h
Date: 2026-10-29 08:11:58
Exec Total Coverage
Lines: 3 4 75.0%
Functions: 3 4 75.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 LGPL v2.1 as described in the
11 * included LICENSE.LGPL file.
12 */
13
14 #include <string>
15 #include "fpp-json-fwd.h"
16
17 #include "Playlist.h"
18 #include "PlaylistEntryBase.h"
19
20 class PlaylistEntryBranch : public PlaylistEntryBase {
21 public:
22 PlaylistEntryBranch(Playlist* playlist, PlaylistEntryBase* parent = NULL);
23 virtual ~PlaylistEntryBranch();
24
25 virtual int Init(Json::Value& config) override;
26
27 virtual int StartPlaying(void) override;
28 virtual int Process(void) override;
29
30 void SetNext(int isTrue);
31
32 virtual void Dump(void) override;
33
34 virtual Json::Value GetConfig(void) override;
35
36 44 virtual PlaylistBranchType GetNextBranchType() override { return m_nextBranchType; }
37 44 virtual std::string GetNextSection(void) override { return m_nextSection; }
38 13 virtual int GetNextItem(void) override { return m_nextItem; }
39 ✗ virtual std::string GetNextData(void) override { return m_nextBranchPlaylist; }
40
41 private:
42 std::string m_branchTest;
43
44 // Time comparison
45 std::string m_startTime;
46 std::string m_endTime;
47 int m_sHour;
48 int m_sMinute;
49 int m_sSecond;
50 int m_sDaySecond;
51 int m_sHourSecond;
52 int m_eHour;
53 int m_eMinute;
54 int m_eSecond;
55 int m_eDaySecond;
56 int m_eHourSecond;
57
58 // Loop Number
59 int m_iterationStart;
60 int m_iterationCount;
61
62 // MQTT Topic Message
63 std::string m_mqttTopic;
64 std::string m_mqttMessage;
65
66 PlaylistBranchType m_trueNextBranchType;
67 std::string m_trueNextSection;
68 int m_trueNextItem;
69 std::string m_trueBranchPlaylist;
70
71 PlaylistBranchType m_falseNextBranchType;
72 std::string m_falseNextSection;
73 int m_falseNextItem;
74 std::string m_falseBranchPlaylist;
75
76 PlaylistBranchType m_nextBranchType;
77 std::string m_nextSection;
78 int m_nextItem;
79 std::string m_nextBranchPlaylist;
80 };
81