srs-control 0.2.2
Loading...
Searching...
No Matches
srs::sink::UDP Class Reference

#include <UDPWriter.hpp>

Collaboration diagram for srs::sink::UDP:

Public Member Functions

 UDP (io_context_type &io_context, asio::ip::udp::endpoint remote_endpoint, std::size_t n_lines, process::DataConvertOptions deser_mode=process::DataConvertOptions::none)
 ~UDP () noexcept
 UDP (const UDP &)=delete
 UDP (UDP &&)=default
UDP & operator= (const UDP &)=delete
UDP & operator= (UDP &&)=default
auto run (const OutputTo< InputType > auto &prev_data_converter, std::size_t line_number=0) -> RunResult
auto is_deserialize_valid () const
auto operator() (std::size_t line_number=0) const -> OutputType
Public Member Functions inherited from srs::process::SinkTask< DataWriterOption::udp, std::string_view, std::size_t >
 SinkTask (std::string_view name, DataConvertOptions prev_convert, std::size_t n_lines=1)
Public Member Functions inherited from srs::process::BaseTask< std::string_view, std::size_t >
 BaseTask (std::string_view name, DataConvertOptions prev_convert, std::size_t n_lines=1)
 ~BaseTask ()
auto get_n_lines () const -> std::size_t
auto get_required_conversion () const -> DataConvertOptions
auto get_name () const -> std::string_view
auto get_name_str () const -> std::string
void set_report (AppReport *task_report)
auto run_once (this auto &&self, const OutputTo< InputType > auto &prev_data_converter, std::size_t line_number=0) -> RunResult

Static Public Attributes

static constexpr auto IsStructType = false
Static Public Attributes inherited from srs::process::SinkTask< DataWriterOption::udp, std::string_view, std::size_t >
static constexpr auto writer_type

Private Attributes

std::vector< OutputType > output_data_
std::vector< std::unique_ptr< connection::UDPWriterConnection > > connections_

Additional Inherited Members

Public Types inherited from srs::process::BaseTask< std::string_view, std::size_t >
using InputType
using OutputType
using RunResult
Protected Member Functions inherited from srs::process::BaseTask< std::string_view, std::size_t >
auto get_report () -> AppReport *

Detailed Description

Definition at line 69 of file UDPWriter.hpp.

Constructor & Destructor Documentation

◆ UDP() [1/3]

srs::sink::UDP::UDP ( io_context_type & io_context,
asio::ip::udp::endpoint remote_endpoint,
std::size_t n_lines,
process::DataConvertOptions deser_mode = process::DataConvertOptions::none )

Definition at line 15 of file UDPWriter.cpp.

◆ ~UDP()

srs::sink::UDP::~UDP ( )
noexcept

Definition at line 29 of file UDPWriter.cpp.

◆ UDP() [2/3]

srs::sink::UDP::UDP ( const UDP & )
delete

◆ UDP() [3/3]

srs::sink::UDP::UDP ( UDP && )
default

Member Function Documentation

◆ is_deserialize_valid()

auto srs::sink::UDP::is_deserialize_valid ( ) const
inlinenodiscard

Definition at line 91 of file UDPWriter.hpp.

◆ operator()()

auto srs::sink::UDP::operator() ( std::size_t line_number = 0) const -> OutputType
inlinenodiscard

Definition at line 95 of file UDPWriter.hpp.

◆ operator=() [1/2]

UDP & srs::sink::UDP::operator= ( const UDP & )
delete

◆ operator=() [2/2]

UDP & srs::sink::UDP::operator= ( UDP && )
default

◆ run()

auto srs::sink::UDP::run ( const OutputTo< InputType > auto & prev_data_converter,
std::size_t line_number = 0 ) -> RunResult
inline

Definition at line 84 of file UDPWriter.hpp.

Member Data Documentation

◆ connections_

std::vector<std::unique_ptr<connection::UDPWriterConnection> > srs::sink::UDP::connections_
private

Definition at line 102 of file UDPWriter.hpp.

◆ IsStructType

auto srs::sink::UDP::IsStructType = false
staticconstexpr

Definition at line 76 of file UDPWriter.hpp.

◆ output_data_

std::vector<OutputType> srs::sink::UDP::output_data_
private

Definition at line 101 of file UDPWriter.hpp.


The documentation for this class was generated from the following files: