35#ifndef LSL_STREAM_INFO_H
36#define LSL_STREAM_INFO_H
102 const std::string&
type,
125 std::string
name()
const;
128 std::string
type()
const;
149 std::string
uid()
const;
190 double m_nominal_srate;
192 std::string m_source_id;
194 std::string m_hostname;
197 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
std::string to_string() const
Serialize stream_info into a string for network transport.
stream_info(const stream_info &other)=default
std::string type() const
Content type of the stream.
std::string hostname() const
Hostname of the machine from which the stream originates.
void set_data_host(const std::string &host)
Set the data host (used internally during discovery).
int channel_count() const
Number of channels.
double nominal_srate() const
Nominal sampling rate in Hz. 0.0 means irregular.
void set_data_port(int port)
Set the TCP data port (used internally during discovery / outlet creation).
std::string name() const
Name of the stream.
std::string data_host() const
Host address of the outlet (IP, set from UDP sender address during discovery).
std::string uid() const
A unique identifier for this particular stream instance (auto-generated).
std::string source_id() const
Unique source identifier.
channel_format_t channel_format() const
Data format of a channel.
static stream_info from_string(const std::string &data)
Deserialize a stream_info from a network transport string.
int data_port() const
TCP data port of the outlet.