10 #ifndef YARP_OS_IMPL_PORTCOREUNIT_H
11 #define YARP_OS_IMPL_PORTCOREUNIT_H
85 return Route(
"null",
"null",
"null");
134 const std::string& envelope,
135 bool waitAfter =
true,
136 bool waitBefore =
true,
137 bool* gotReply =
nullptr)
191 Name name(
getRoute().getCarrierName() + std::string(
"://test"));
213 if (hasMode !=
nullptr) {
214 *hasMode = this->hasMode;
216 return (this->hasMode) ? mode :
"";
254 this->pupString = pupString;
291 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.