35#ifndef LSL_STREAM_INFO_H
36#define LSL_STREAM_INFO_H
103 const std::string&
type,
126 [[nodiscard]] std::string
name() const noexcept;
129 [[nodiscard]] std::
string type() const noexcept;
141 [[nodiscard]] std::
string source_id() const noexcept;
150 [[nodiscard]] std::
string uid() const noexcept;
153 [[nodiscard]] std::
string hostname() const noexcept;
162 [[nodiscard]]
int data_port() const noexcept;
165 [[nodiscard]] std::
string data_host() const noexcept;
180 [[nodiscard]] std::
string to_string() const;
191 double m_nominal_srate;
193 std::
string m_source_id;
195 std::
string m_hostname;
198 std::
string m_data_host;
lsl library export/import macros.
Lab Streaming Layer (LSL) integration for real-time data exchange.
stream_info & operator=(const stream_info &other)=default
int channel_count() const noexcept
Number of channels.
int data_port() const noexcept
TCP data port of the outlet.
double nominal_srate() const noexcept
Nominal sampling rate in Hz. 0.0 means irregular.
std::string to_string() const
Serialize stream_info into a string for network transport.
std::string hostname() const noexcept
Hostname of the machine from which the stream originates.
stream_info(const stream_info &other)=default
void set_data_host(const std::string &host)
Set the data host (used internally during discovery).
std::string source_id() const noexcept
Unique source identifier.
void set_data_port(int port)
Set the TCP data port (used internally during discovery / outlet creation).
ChannelFormat channel_format() const noexcept
Data format of a channel.
std::string uid() const noexcept
A unique identifier for this particular stream instance (auto-generated).
std::string name() const noexcept
Name of the stream.
std::string type() const noexcept
Content type of the stream.
static stream_info from_string(const std::string &data)
Deserialize a stream_info from a network transport string.
std::string data_host() const noexcept
Host address of the outlet (IP, set from UDP sender address during discovery).