33#ifndef LSL_STREAM_INFO_H
34#define LSL_STREAM_INFO_H
95 const std::string&
type,
118 [[nodiscard]] std::string
name() const noexcept;
121 [[nodiscard]] std::
string type() const noexcept;
133 [[nodiscard]] std::
string source_id() const noexcept;
142 [[nodiscard]] std::
string uid() const noexcept;
145 [[nodiscard]] std::
string hostname() const noexcept;
154 [[nodiscard]]
int data_port() const noexcept;
157 [[nodiscard]] std::
string data_host() const noexcept;
172 [[nodiscard]] std::
string to_string() const;
183 double m_nominal_srate;
185 std::
string m_source_id;
187 std::
string m_hostname;
190 std::
string m_data_host;
LSLLIB shared-library export macro and build-stamp accessors used by every public LSL symbol.
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).