22 (options.
find(
"sender_side").
asBool()) ?
"sender side" :
"receiver side");
66 m_s2.
add_marker(
"SND_MARKER_START" + std::to_string(marker_counter), 0);
void trig() override
This will be called when one of the peer connections to the same import port receives data.
bool setparam(const yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
void destroy() override
This will be called when the portmonitor object destroyes.
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
bool getparam(yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
Base class for generic things.
void setPortWriter(yarp::os::PortWriter *writer)
Set the reference to a PortWriter object.
virtual bool asBool() const
Get boolean value.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
size_t getMarkersCount() const
Gets the number of markers contained in the sound.
void remove_all_markers()
Removes all the markers contained in the sound.
void add_marker(const std::string &marker_label, size_t sample_id, int channel=-1)
Adds a marker to the sound, identified by a label, a sample id and an optional channel number (if not...
size_t getSamples() const
Get the number of samples contained in the sound.
#define yCWarning(component,...)
#define yCDebug(component,...)
#define YARP_LOG_COMPONENT(name,...)
An interface to the operating system, including Port based communication.