7 #ifndef YARP_OS_IMPL_PORTCOREUNIT_H
8 #define YARP_OS_IMPL_PORTCOREUNIT_H
82 return Route(
"null",
"null",
"null");
131 const std::string& envelope,
132 bool waitAfter =
true,
133 bool waitBefore =
true,
134 bool* gotReply =
nullptr)
188 Name name(
getRoute().getCarrierName() + std::string(
"://test"));
210 if (hasMode !=
nullptr) {
211 *hasMode = this->hasMode;
213 return (this->hasMode) ? mode :
"";
251 this->pupString = pupString;
288 std::string pupString;
Simple abstraction for a YARP port name.
std::string getCarrierModifier(const char *mod, bool *hasModifier=nullptr)
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A class for storing options and configuration information.
Information about a connection between two ports.
This manages a single threaded resource related to a single input or output connection.
PortCoreUnit(PortCore &owner, int index)
Constructor.
std::string getPupString() const
virtual bool interrupt()
Interrupt the connection.
void setPupped(const std::string &pupString)
Tag this connection as having been created by a publisherUpdate message to the port's administrative ...
virtual void * takeTracker()
Reacquire a tracker previously passed via send().
virtual void * send(const yarp::os::PortWriter &writer, yarp::os::PortReader *reader, const yarp::os::PortWriter *callback, void *tracker, const std::string &envelope, bool waitAfter=true, bool waitBefore=true, bool *gotReply=nullptr)
Send a message on the connection.
virtual bool isFinished()
std::string getMode(bool *hasMode=nullptr)
Read the "mode" of the connection - basically, whether it is used for logging or not.
virtual void getCarrierParams(yarp::os::Property ¶ms)
void setMode()
Check the carrier used for the connection, and see if it has a "log" modifier.
virtual ~PortCoreUnit()
Destructor.
void setDoomed()
Request that this connection be shut down as soon as possible.
virtual void setCarrierParams(const yarp::os::Property ¶ms)
Set arbitrary parameters for this connection.
An abstraction for a thread of execution.
The main, catch-all namespace for YARP.