17void split(
const std::string& s,
char delim, std::vector<std::string>& elements)
19 std::istringstream
iss(s);
22 elements.push_back(
item);
31 std::vector<std::string> parameters;
35 for (std::string param : parameters)
47 std::string s = param.substr(
pointPosition + 1, param.length());
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
void trig() override
This will be called when one of the peer connections to the same import port receives data.
bool getparam(yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
void destroy() override
This will be called when the portmonitor object destroyes.
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 setparam(const yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
void getParamsFromCommandLine(std::string carrierString, yarp::os::Property &prop)
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.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
Base class for generic things.
A single value (typically within a Bottle).
virtual std::string asString() const
Get string value.
ContainerT split(const typename ContainerT::value_type &s, std::basic_regex< typename ContainerT::value_type::value_type > regex)
Utility to split a string by a separator, into a vector of strings.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.