#include <yarp/os/ApplicationNetworkProtocolVersion.h>
Public Member Functions | |
ApplicationNetworkProtocolVersion () | |
~ApplicationNetworkProtocolVersion ()=default | |
std::string | toString () |
bool | read (yarp::os::ConnectionReader &connection) override |
Read this object from a network connection. | |
bool | write (yarp::os::ConnectionWriter &connection) const override |
Write this object to a network connection. | |
![]() | |
virtual Type | getType () const |
![]() | |
virtual | ~PortReader () |
Destructor. | |
virtual Type | getReadType () const |
![]() | |
virtual | ~PortWriter () |
Destructor. | |
virtual void | onCompletion () const |
This is called when the port has finished all writing operations. | |
virtual void | onCommencement () const |
This is called when the port is about to begin writing operations. | |
virtual yarp::os::Type | getWriteType () const |
Public Attributes | |
short int | protocol_version = -1 |
short int | yarp_major = -1 |
short int | yarp_minor = -1 |
short int | yarp_patch = -1 |
Additional Inherited Members | |
![]() | |
static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
Copy one portable to another, via writing and reading. | |
Definition at line 15 of file ApplicationNetworkProtocolVersion.h.
ApplicationNetworkProtocolVersion::ApplicationNetworkProtocolVersion | ( | ) |
Definition at line 12 of file ApplicationNetworkProtocolVersion.cpp.
|
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 26 of file ApplicationNetworkProtocolVersion.cpp.
std::string ApplicationNetworkProtocolVersion::toString | ( | ) |
Definition at line 16 of file ApplicationNetworkProtocolVersion.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 36 of file ApplicationNetworkProtocolVersion.cpp.
Definition at line 18 of file ApplicationNetworkProtocolVersion.h.
Definition at line 19 of file ApplicationNetworkProtocolVersion.h.
Definition at line 20 of file ApplicationNetworkProtocolVersion.h.
Definition at line 21 of file ApplicationNetworkProtocolVersion.h.