• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenLightingProject / ola / 20179851591

12 Dec 2025 09:05PM UTC coverage: 45.048% (-0.7%) from 45.72%
20179851591

Pull #2027

github

web-flow
Bump actions/upload-artifact from 4 to 6

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #2027: Bump actions/upload-artifact from 4 to 6

8554 of 19812 branches covered (43.18%)

22094 of 49046 relevant lines covered (45.05%)

50.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

44.44
/plugins/sandnet/SandNetPort.h
1
/*
2
 * This program is free software; you can redistribute it and/or modify
3
 * it under the terms of the GNU General Public License as published by
4
 * the Free Software Foundation; either version 2 of the License, or
5
 * (at your option) any later version.
6
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 * GNU Library General Public License for more details.
11
 *
12
 * You should have received a copy of the GNU General Public License
13
 * along with this program; if not, write to the Free Software
14
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15
 *
16
 * SandNetPort.h
17
 * The SandNet plugin for ola
18
 * Copyright (C) 2005 Simon Newton
19
 */
20

21
#ifndef PLUGINS_SANDNET_SANDNETPORT_H_
22
#define PLUGINS_SANDNET_SANDNETPORT_H_
23

24
#include <string>
25
#include "ola/DmxBuffer.h"
26
#include "olad/Port.h"
27
#include "plugins/sandnet/SandNetDevice.h"
28

29
namespace ola {
30
namespace plugin {
31
namespace sandnet {
32

33
class SandNetPortHelper {
34
 public:
35
  SandNetPortHelper() {}
10✔
36
  bool PreSetUniverse(Universe *old_universe, Universe *new_universe);
37
  std::string Description(const Universe *universe) const;
38

39
  /**
40
   * @brief Return the SandNet group that corresponds to a OLA Universe.
41
   * @param universe the OLA universe
42
   * @return the SandNet group number
43
   */
44
  uint8_t SandnetGroup(const Universe* universe) const;
45

46
  /**
47
   * @brief Return the SandNet universe that corresponds to a OLA Universe.
48
   *
49
   * Sandnet universes range from 0 to 255 (represented as 1 to 256 in the packets).
50
   * @param universe the OLA universe
51
   * @return the sandnet universe number
52
   */
53
  uint8_t SandnetUniverse(const Universe *universe) const;
54
};
55

56

57
class SandNetInputPort: public BasicInputPort {
58
 public:
59
  SandNetInputPort(SandNetDevice *parent,
8✔
60
                   unsigned int id,
61
                   class PluginAdaptor *plugin_adaptor,
62
                   SandNetNode *node)
63
    : BasicInputPort(parent, id, plugin_adaptor),
8✔
64
      m_node(node) {}
8✔
65
  ~SandNetInputPort() {}
8✔
66

67
  std::string Description() const {
×
68
    return m_helper.Description(GetUniverse());
×
69
  }
70
  const DmxBuffer &ReadDMX() const { return m_buffer; }
×
71
  bool PreSetUniverse(Universe *old_universe, Universe *new_universe) {
×
72
    return m_helper.PreSetUniverse(old_universe, new_universe);
×
73
  }
74
  void PostSetUniverse(Universe *old_universe, Universe *new_universe);
75

76
 private:
77
  SandNetPortHelper m_helper;
78
  SandNetNode *m_node;
79
  DmxBuffer m_buffer;
80
};
81

82

83
class SandNetOutputPort: public BasicOutputPort {
84
 public:
85
  SandNetOutputPort(SandNetDevice *parent,
2✔
86
                    unsigned int id,
87
                    SandNetNode *node)
88
    : BasicOutputPort(parent, id),
2✔
89
      m_node(node) {}
2✔
90
  ~SandNetOutputPort() {}
×
91

92
  std::string Description() const {
×
93
    return m_helper.Description(GetUniverse());
×
94
  }
95
  bool WriteDMX(const DmxBuffer &buffer, uint8_t priority);
96
  bool PreSetUniverse(Universe *old_universe, Universe *new_universe) {
×
97
    return m_helper.PreSetUniverse(old_universe, new_universe);
×
98
  }
99
  void PostSetUniverse(Universe *old_universe, Universe *new_universe);
100

101
 private:
102
  SandNetPortHelper m_helper;
103
  SandNetNode *m_node;
104
};
105
}  // namespace sandnet
106
}  // namespace plugin
107
}  // namespace ola
108
#endif  // PLUGINS_SANDNET_SANDNETPORT_H_
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc