YARP
Yet Another Robot Platform
NullConnectionReader.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7
8
10{
11 YARP_UNUSED(data);
12 YARP_UNUSED(len);
13 return false;
14}
15
16std::string yarp::os::NullConnectionReader::expectText(const char terminatingChar)
17{
18 YARP_UNUSED(terminatingChar);
19 return {};
20}
21
23{
24 return 0;
25}
26
28{
29 return 0;
30}
31
33{
34 return 0;
35}
36
38{
39 return 0;
40}
41
43{
44 return 0.0f;
45}
46
48{
49 return 0.0;
50}
51
53{
54 YARP_UNUSED(x);
55 return false;
56}
58{
59 return false;
60}
61
63{
64 return false;
65}
66
68{
69 return 0;
70}
71
73{
74 return nullptr;
75}
76
78{
79 return {nullptr, 0};
80}
81
83{
84 return nullptr;
85}
86
88{
89 return Contact();
90}
91
93{
94 return Contact();
95}
96
98{
99 return false;
100}
101
103{
104 return false;
105}
106
108{
109 return true;
110}
111
113{
114}
115
117{
118 return blank;
119}
A simple abstraction for a block of bytes.
Definition: Bytes.h:24
An interface for writing to a network connection.
Represents how to reach a part of a YARP network.
Definition: Contact.h:33
Portable * getReference() const override
Get a direct pointer to the object being sent, if possible.
size_t getSize() const override
Checks how much data is available.
bool isTextMode() const override
Check if the connection is text mode.
const Searchable & getConnectionModifiers() const override
Access modifiers associated with the connection, if any.
bool convertTextMode() override
Reads in a standard description in text mode, and converts it to a standard description in binary.
Contact getLocalContact() const override
Gets information about who is receiving the data, if that information is available.
std::int8_t expectInt8() override
Read a 8-bit integer from the network connection.
std::string expectText(const char terminatingChar='\n') override
Read some text from the network connection.
std::int64_t expectInt64() override
Read a 64-bit integer from the network connection.
std::int16_t expectInt16() override
Read a 16-bit integer from the network connection.
Bytes readEnvelope() override
Read a message envelope, if available.
yarp::conf::float32_t expectFloat32() override
Read a 32-bit floating point number from the network connection.
Contact getRemoteContact() const override
Gets information about who is supplying the data being read, if that information is available.
void requestDrop() override
Tag the connection to be dropped after the current message.
yarp::conf::float64_t expectFloat64() override
Read a 64-bit floating point number from the network connection.
bool expectBlock(char *data, size_t len) override
Read a block of data from the network connection.
ConnectionWriter * getWriter() override
Gets a way to reply to the message, if possible.
std::int32_t expectInt32() override
Read a 32-bit integer from the network connection.
bool pushInt(int x) override
Store an integer to return on the next call to expectInt()
This is a base class for objects that can be both read from and be written to the YARP network.
Definition: Portable.h:25
A base class for nested structures that can be searched.
Definition: Searchable.h:56
double float64_t
Definition: numeric.h:77
float float32_t
Definition: numeric.h:76
#define YARP_UNUSED(var)
Definition: api.h:162