Dummy ConnectionReader that has no data. More...
#include <yarp/os/NullConnectionReader.h>
Inheritance diagram for yarp::os::NullConnectionReader:Public Member Functions | |
| bool | expectBlock (char *data, size_t len) override |
| Read a block of data from the network connection. More... | |
| std::string | expectText (const char terminatingChar='\n') override |
| Read some text from the network connection. More... | |
| std::int8_t | expectInt8 () override |
| Read a 8-bit integer from the network connection. More... | |
| std::int16_t | expectInt16 () override |
| Read a 16-bit integer from the network connection. More... | |
| std::int32_t | expectInt32 () override |
| Read a 32-bit integer from the network connection. More... | |
| std::int64_t | expectInt64 () override |
| Read a 64-bit integer from the network connection. More... | |
| yarp::conf::float32_t | expectFloat32 () override |
| Read a 32-bit floating point number from the network connection. More... | |
| yarp::conf::float64_t | expectFloat64 () override |
| Read a 64-bit floating point number from the network connection. More... | |
| bool | pushInt (int x) override |
| Store an integer to return on the next call to expectInt() More... | |
| bool | isTextMode () const override |
| Check if the connection is text mode. More... | |
| bool | convertTextMode () override |
| Reads in a standard description in text mode, and converts it to a standard description in binary. More... | |
| size_t | getSize () const override |
| Checks how much data is available. More... | |
| ConnectionWriter * | getWriter () override |
| Gets a way to reply to the message, if possible. More... | |
| Bytes | readEnvelope () override |
| Read a message envelope, if available. More... | |
| Portable * | getReference () const override |
| Get a direct pointer to the object being sent, if possible. More... | |
| Contact | getRemoteContact () const override |
| Gets information about who is supplying the data being read, if that information is available. More... | |
| Contact | getLocalContact () const override |
| Gets information about who is receiving the data, if that information is available. More... | |
| bool | isValid () const override |
| bool | isActive () const override |
| bool | isError () const override |
| void | requestDrop () override |
| Tag the connection to be dropped after the current message. More... | |
| const Searchable & | getConnectionModifiers () const override |
| Access modifiers associated with the connection, if any. More... | |
Public Member Functions inherited from yarp::os::ConnectionReader | |
| virtual | ~ConnectionReader () |
| Destructor. More... | |
| virtual std::string | expectString () |
| Read a string from the network connection. More... | |
| virtual int | expectInt () final |
| Read an integer from the network connection. More... | |
| virtual double | expectDouble () |
| Read a floating point number from the network connection. More... | |
| virtual bool | isBareMode () const =0 |
| Check if the connection is bare mode. More... | |
| virtual bool | setSize (size_t len)=0 |
| virtual void | setParentConnectionReader (ConnectionReader *parentConnectionReader) |
| Set ConnectionReader to be used for reading the envelope. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::ConnectionReader | |
| static ConnectionReader * | createConnectionReader (InputStream &is) |
| Create an instance of YARP's standard connection reader implementation. More... | |
| static bool | readFromStream (PortReader &portable, InputStream &is) |
Dummy ConnectionReader that has no data.
Definition at line 25 of file NullConnectionReader.h.
|
overridevirtual |
Reads in a standard description in text mode, and converts it to a standard description in binary.
Useful if you only operate on the binary description usually, and just want to permit text mode for command-line interaction. If isTextMode would return false, no conversion is done.
Implements yarp::os::ConnectionReader.
Definition at line 65 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a block of data from the network connection.
| data | Start of the block of data |
| len | Length of the block of data |
Implements yarp::os::ConnectionReader.
Definition at line 12 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a 32-bit floating point number from the network connection.
Implements yarp::os::ConnectionReader.
Definition at line 45 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a 64-bit floating point number from the network connection.
Implements yarp::os::ConnectionReader.
Definition at line 50 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a 16-bit integer from the network connection.
Implements yarp::os::ConnectionReader.
Definition at line 30 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a 32-bit integer from the network connection.
Implements yarp::os::ConnectionReader.
Definition at line 35 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a 64-bit integer from the network connection.
Implements yarp::os::ConnectionReader.
Definition at line 40 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a 8-bit integer from the network connection.
Implements yarp::os::ConnectionReader.
Definition at line 25 of file NullConnectionReader.cpp.
|
overridevirtual |
Read some text from the network connection.
| terminatingChar | The marker for the end of the text |
Implements yarp::os::ConnectionReader.
Definition at line 19 of file NullConnectionReader.cpp.
|
overridevirtual |
Access modifiers associated with the connection, if any.
Implements yarp::os::ConnectionReader.
Definition at line 119 of file NullConnectionReader.cpp.
|
overridevirtual |
Gets information about who is receiving the data, if that information is available.
Implements yarp::os::ConnectionReader.
Definition at line 95 of file NullConnectionReader.cpp.
|
overridevirtual |
Get a direct pointer to the object being sent, if possible.
This only makes sense in local operation, when sender and receiver are in the same process; in all other situations this returns nullptr.
Implements yarp::os::ConnectionReader.
Definition at line 85 of file NullConnectionReader.cpp.
|
overridevirtual |
Gets information about who is supplying the data being read, if that information is available.
Implements yarp::os::ConnectionReader.
Definition at line 90 of file NullConnectionReader.cpp.
|
overridevirtual |
Checks how much data is available.
Implements yarp::os::ConnectionReader.
Definition at line 70 of file NullConnectionReader.cpp.
|
overridevirtual |
Gets a way to reply to the message, if possible.
Implements yarp::os::ConnectionReader.
Definition at line 75 of file NullConnectionReader.cpp.
|
overridevirtual |
Implements yarp::os::ConnectionReader.
Definition at line 105 of file NullConnectionReader.cpp.
|
overridevirtual |
Implements yarp::os::ConnectionReader.
Definition at line 110 of file NullConnectionReader.cpp.
|
overridevirtual |
Check if the connection is text mode.
If it is, you are encouraged (but by no means required) to use a human-readable representation of your data structure.
Implements yarp::os::ConnectionReader.
Definition at line 60 of file NullConnectionReader.cpp.
|
overridevirtual |
Implements yarp::os::ConnectionReader.
Definition at line 100 of file NullConnectionReader.cpp.
|
overridevirtual |
Store an integer to return on the next call to expectInt()
| x | the integer to store |
Implements yarp::os::ConnectionReader.
Definition at line 55 of file NullConnectionReader.cpp.
|
overridevirtual |
Read a message envelope, if available.
Reimplemented from yarp::os::ConnectionReader.
Definition at line 80 of file NullConnectionReader.cpp.
|
overridevirtual |
Tag the connection to be dropped after the current message.
Implements yarp::os::ConnectionReader.
Definition at line 115 of file NullConnectionReader.cpp.