srs-control
0.2.2
Toggle main menu visibility
Loading...
Searching...
No Matches
Connections.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ConnectionBase.hpp
"
4
#include "
srs/connections/ConnectionTypeDef.hpp
"
5
#include "
srs/utils/CommonAlias.hpp
"
6
#include <array>
7
#include <gsl/gsl-lite.hpp>
8
#include <span>
9
#include <spdlog/spdlog.h>
10
#include <string_view>
11
12
namespace
srs::workflow
13
{
14
class
AnalysisHandle
;
15
}
16
17
namespace
srs::connection
18
{
19
class
FecCommandSocket
;
20
class
Starter
:
public
CommandBase
21
{
22
public
:
23
explicit
Starter
(std::string_view name);
24
Starter
();
25
void
close
();
26
static
auto
get_send_suffix
() ->
const
auto
& {
return
send_suffix_
; }
27
static
auto
get_suffix
() -> std::span<const CommunicateEntryType>
28
{
29
return
std::span{
send_suffix_
.cbegin(),
send_suffix_
.cend() };
30
}
31
static
constexpr
auto
tag
= std::string_view{
"on"
};
32
33
private
:
34
static
constexpr
std::array<CommunicateEntryType, 3>
send_suffix_
= { 0, 15, 1 };
35
};
36
37
class
Stopper
:
public
CommandBase
38
{
39
public
:
43
Stopper
(
const
Stopper
&) =
delete
;
44
48
Stopper
(
Stopper
&&) =
delete
;
49
53
Stopper
&
operator=
(
const
Stopper
&) =
delete
;
54
58
Stopper
&
operator=
(
Stopper
&&) =
delete
;
59
65
explicit
Stopper
(std::string_view name);
66
67
Stopper
();
68
75
~Stopper
() =
default
;
76
77
static
constexpr
auto
tag
= std::string_view{
"off"
};
78
static
auto
get_send_suffix
() ->
const
auto
& {
return
send_suffix_
; }
79
static
auto
get_suffix
() -> std::span<const CommunicateEntryType>
80
{
81
return
std::span{
send_suffix_
.cbegin(),
send_suffix_
.cend() };
82
}
83
84
private
:
85
static
constexpr
std::array<CommunicateEntryType, 3>
send_suffix_
= { 0, 15, 0 };
86
};
87
}
// namespace srs::connection
CommonAlias.hpp
ConnectionBase.hpp
ConnectionTypeDef.hpp
srs::connection::CommandBase::CommandBase
CommandBase(const std::string_view name)
Definition
ConnectionBase.hpp:29
srs::connection::FecCommandSocket
Definition
FecSwitchSocket.hpp:29
srs::connection::Starter::Starter
Starter()
Definition
Connections.cpp:18
srs::connection::Starter::Starter
Starter(std::string_view name)
Definition
Connections.cpp:11
srs::connection::Starter::get_suffix
static auto get_suffix() -> std::span< const CommunicateEntryType >
Definition
Connections.hpp:27
srs::connection::Starter::send_suffix_
static constexpr std::array< CommunicateEntryType, 3 > send_suffix_
Definition
Connections.hpp:34
srs::connection::Starter::get_send_suffix
static auto get_send_suffix() -> const auto &
Definition
Connections.hpp:26
srs::connection::Starter::close
void close()
srs::connection::Starter::tag
static constexpr auto tag
Definition
Connections.hpp:31
srs::connection::Stopper::~Stopper
~Stopper()=default
Destructor for Stopper connection class.
srs::connection::Stopper::tag
static constexpr auto tag
Definition
Connections.hpp:77
srs::connection::Stopper::send_suffix_
static constexpr std::array< CommunicateEntryType, 3 > send_suffix_
Definition
Connections.hpp:85
srs::connection::Stopper::Stopper
Stopper(Stopper &&)=delete
Deleted move constructor (rule of 5).
srs::connection::Stopper::operator=
Stopper & operator=(const Stopper &)=delete
Deleted copy assignment operator (rule of 5).
srs::connection::Stopper::Stopper
Stopper()
Definition
Connections.cpp:30
srs::connection::Stopper::Stopper
Stopper(const Stopper &)=delete
Deleted copy constructor (rule of 5).
srs::connection::Stopper::operator=
Stopper & operator=(Stopper &&)=delete
Deleted move assignment operator (rule of 5).
srs::connection::Stopper::get_send_suffix
static auto get_send_suffix() -> const auto &
Definition
Connections.hpp:78
srs::connection::Stopper::get_suffix
static auto get_suffix() -> std::span< const CommunicateEntryType >
Definition
Connections.hpp:79
srs::workflow::AnalysisHandle
Definition
AnalysisHandle.hpp:30
srs::connection
Definition
Application.hpp:34
srs::workflow
Definition
Application.hpp:29
backend
srs
connections
Connections.hpp
Impressum
Datenschutzerklärung
Generated by
1.17.0