v2.0.0
Loading...
Searching...
No Matches
stream_outlet.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef LSL_STREAM_OUTLET_H
36#define LSL_STREAM_OUTLET_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "lsl_global.h"
43#include "stream_info.h"
44
45//=============================================================================================================
46// STL INCLUDES
47//=============================================================================================================
48
49#include <vector>
50#include <memory>
51
52//=============================================================================================================
53// DEFINE NAMESPACE lsl
54//=============================================================================================================
55
56namespace LSLLIB {
57
58//=============================================================================================================
59// FORWARD DECLARATIONS
60//=============================================================================================================
61
66
67//=============================================================================================================
79{
80public:
81 //=========================================================================================================
89 explicit stream_outlet(const stream_info& info);
90
91 //=========================================================================================================
96
97 //=========================================================================================================
103 void push_sample(const std::vector<float>& sample);
104
105 //=========================================================================================================
111 void push_chunk(const std::vector<std::vector<float>>& chunk);
112
113 //=========================================================================================================
119 stream_info info() const;
120
121 //=========================================================================================================
127 bool have_consumers() const;
128
129private:
131 std::unique_ptr<StreamOutletPrivate> m_pImpl;
132};
133
134} // namespace LSLLIB
135
136#endif // LSL_STREAM_OUTLET_H
Contains the declaration of the stream_info class.
lsl library export/import macros.
#define LSLSHARED_EXPORT
Definition lsl_global.h:55
Lab Streaming Layer (LSL) integration for real-time data exchange.
Describes a particular stream on the network.
Definition stream_info.h:82
void push_sample(const std::vector< float > &sample)
stream_outlet(const stream_info &info)
void push_chunk(const std::vector< std::vector< float > > &chunk)
stream_info info() const