Simple Readable and Writable object representing a command to a YARP port.
More...
#include <yarp/os/impl/PortCommand.h>
Simple Readable and Writable object representing a command to a YARP port.
Definition at line 27 of file PortCommand.h.
◆ PortCommand() [1/2]
yarp::os::impl::PortCommand::PortCommand |
( |
| ) |
|
|
inline |
◆ PortCommand() [2/2]
yarp::os::impl::PortCommand::PortCommand |
( |
char |
ch, |
|
|
const std::string & |
str |
|
) |
| |
|
inline |
◆ getKey()
char yarp::os::impl::PortCommand::getKey |
( |
| ) |
|
|
inline |
◆ getText()
std::string yarp::os::impl::PortCommand::getText |
( |
| ) |
|
|
inline |
◆ read()
Read this object from a network connection.
Override this for your particular class.
- Parameters
-
reader | an interface to the network connection for reading |
- Returns
- true iff the object is successfully read
Implements yarp::os::Portable.
Definition at line 23 of file PortCommand.cpp.
◆ write()
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
- Parameters
-
writer | an interface to the network connection for writing |
- Returns
- true iff the object is successfully written
Implements yarp::os::Portable.
Definition at line 61 of file PortCommand.cpp.
◆ ch
char yarp::os::impl::PortCommand::ch |
◆ header
◆ str
std::string yarp::os::impl::PortCommand::str |
The documentation for this class was generated from the following files: