#include <yarp/os/CommandBottle.h>
Inheritance diagram for yarp::os::CommandBottle:Public Member Functions | |
| CommandBottle ()=default | |
| CommandBottle (const std::string &text) | |
| CommandBottle (std::initializer_list< yarp::os::Value > values) | |
| CommandBottle (const CommandBottle &rhs)=default | |
| CommandBottle (CommandBottle &&rhs) noexcept=default | |
| CommandBottle & | operator= (const CommandBottle &rhs)=default |
| CommandBottle & | operator= (CommandBottle &&rhs) noexcept=default |
| ~CommandBottle () override=default | |
| bool | write (yarp::os::ConnectionWriter &connection) const override |
| Write this object to a network connection. More... | |
| bool | read (yarp::os::ConnectionReader &connection) override |
| Read this object from a network connection. More... | |
Public Member Functions inherited from yarp::os::Portable | |
| bool | read (ConnectionReader &reader) override=0 |
| Read this object from a network connection. More... | |
| bool | write (ConnectionWriter &writer) const override=0 |
| Write this object to a network connection. More... | |
| virtual Type | getType () const |
Public Member Functions inherited from yarp::os::PortReader | |
| virtual | ~PortReader () |
| Destructor. More... | |
| virtual bool | read (ConnectionReader &reader)=0 |
| Read this object from a network connection. More... | |
| virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
| virtual | ~PortWriter () |
| Destructor. More... | |
| virtual bool | write (ConnectionWriter &writer) const =0 |
| Write this object to a network connection. More... | |
| virtual void | onCompletion () const |
| This is called when the port has finished all writing operations. More... | |
| virtual void | onCommencement () const |
| This is called when the port is about to begin writing operations. More... | |
| virtual yarp::os::Type | getWriteType () const |
Public Attributes | |
| yarp::os::Bottle | cmd |
| yarp::os::Bottle | reply |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::Portable | |
| static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
| Copy one portable to another, via writing and reading. More... | |
Definition at line 21 of file CommandBottle.h.
|
default |
|
explicit |
Definition at line 10 of file CommandBottle.cpp.
|
explicit |
Definition at line 15 of file CommandBottle.cpp.
|
default |
|
defaultnoexcept |
|
overridedefault |
|
defaultnoexcept |
|
default |
|
overridevirtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
Definition at line 25 of file CommandBottle.cpp.
|
overridevirtual |
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
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
Definition at line 20 of file CommandBottle.cpp.
| yarp::os::Bottle yarp::os::CommandBottle::cmd |
Definition at line 39 of file CommandBottle.h.
| yarp::os::Bottle yarp::os::CommandBottle::reply |
Definition at line 40 of file CommandBottle.h.