Class lsl::continuous_resolver
ClassList > lsl > continuous_resolver
#include <lsl_cpp.h>
Public Functions
| Type | Name |
|---|---|
| continuous_resolver (double forget_after=5.0) |
|
| continuous_resolver (const std::string & prop, const std::string & value, double forget_after=5.0) |
|
| continuous_resolver (const std::string & pred, double forget_after=5.0) |
|
| continuous_resolver (continuous_resolver && rhs) noexcept Move constructor for stream_inlet . |
|
| continuous_resolver & | operator= (continuous_resolver && rhs) noexcept |
| std::vector< stream_info > | results () |
Detailed Description
A convenience class that resolves streams continuously in the background throughout its lifetime and which can be queried at any time for the set of streams that are currently visible on the network.
Public Functions Documentation
function continuous_resolver [1/4]
Construct a new continuous_resolver that resolves all streams on the network.
This is analogous to the functionality offered by the free function resolve_streams().
Parameters:
forget_afterWhen a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.
function continuous_resolver [2/4]
inline lsl::continuous_resolver::continuous_resolver (
const std::string & prop,
const std::string & value,
double forget_after=5.0
)
Construct a new continuous_resolver that resolves all streams with a specific value for a given property.
This is analogous to the functionality provided by the free function resolve_stream(prop,value).
Parameters:
propThe stream_info property that should have a specific value (e.g., "name", "type", "source_id", or "desc/manufaturer").valueThe string value that the property should have (e.g., "EEG" as the type property).forget_afterWhen a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.
function continuous_resolver [3/4]
inline lsl::continuous_resolver::continuous_resolver (
const std::string & pred,
double forget_after=5.0
)
Construct a new continuous_resolver that resolves all streams that match a given XPath 1.0 predicate.
This is analogous to the functionality provided by the free function resolve_stream(pred).
Parameters:
predThe predicate string, e.g. name='BioSemiortype='EEG' and starts-with(name,'BioSemi') and count(info/desc/channel)=32`forget_afterWhen a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.
function continuous_resolver [4/4]
Move constructor for stream_inlet .
function operator=
function results
Obtain the set of currently present streams on the network (i.e. resolve result).
Returns:
A vector of matching stream info objects (excluding their meta-data), any of which can subsequently be used to open an inlet.
The documentation for this class was generated from the following file liblsl/include/lsl_cpp.h