YARP
Yet Another Robot Platform
NullConnectionWriter.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 #include <yarp/os/PortReader.h>
8 
9 void yarp::os::NullConnectionWriter::appendBlock(const char* data, size_t len)
10 {
11  YARP_UNUSED(data);
12  YARP_UNUSED(len);
13 }
14 
16 {
17  YARP_UNUSED(data);
18 }
19 
21 {
22  YARP_UNUSED(data);
23 }
24 
26 {
27  YARP_UNUSED(data);
28 }
29 
31 {
32  YARP_UNUSED(data);
33 }
34 
36 {
37  YARP_UNUSED(data);
38 }
39 
41 {
42  YARP_UNUSED(data);
43 }
44 
45 void yarp::os::NullConnectionWriter::appendText(const std::string& str, const char terminate)
46 {
47  YARP_UNUSED(str);
48  YARP_UNUSED(terminate);
49 }
50 
51 void yarp::os::NullConnectionWriter::appendExternalBlock(const char* data, size_t len)
52 {
53  YARP_UNUSED(data);
54  YARP_UNUSED(len);
55 }
56 
58 {
59  return false;
60 }
61 
63 {
64  return false;
65 }
66 
68 {
69  YARP_UNUSED(argc);
70  YARP_UNUSED(argv);
71 }
72 
74 {
75  YARP_UNUSED(reader);
76 }
77 
79 {
80  YARP_UNUSED(obj);
81 }
82 
84 {
85  return false;
86 }
87 
89 {
90  return false;
91 }
92 
94 {
95  return true;
96 }
97 
99 {
100  return true;
101 }
102 
104 {
105 }
106 
108 {
109  return true;
110 }
111 
113 {
114  return nullptr;
115 }
void appendText(const std::string &str, const char terminate='\n') override
Send a terminated string to the network connection.
bool isBareMode() const override
Check if the connection is bare mode.
void appendFloat32(yarp::conf::float32_t data) override
Send a representation of a 32-bit floating point number to the network connection.
void setReference(Portable *obj) override
Stores a direct pointer to the object being sent.
void requestDrop() override
Tag the connection to be dropped after the current message.
void appendInt8(std::int8_t data) override
Send a representation of a 8-bit integer to the network connection.
void appendInt32(std::int32_t data) override
Send a representation of a 32-bit integer to the network connection.
bool isTextMode() const override
Check if the connection is text mode.
void appendInt16(std::int16_t data) override
Send a representation of a 16-bit integer to the network connection.
void appendInt64(std::int64_t data) override
Send a representation of a 64-bit integer to the network connection.
void appendBlock(const char *data, size_t len) override
Send a block of data to the network connection.
void appendExternalBlock(const char *data, size_t len) override
Send a block of data to the network connection, without making a copy.
void setReplyHandler(PortReader &reader) override
This sets a handler to deal with replies to the message.
SizedWriter * getBuffer() const override
void appendFloat64(yarp::conf::float64_t data) override
Send a representation of a 64-bit floating point number to the network connection.
void declareSizes(int argc, int *argv) override
If you can easily determine how many blocks there are in a message, call this first,...
bool convertTextMode() override
Converts a standard description in binary into a textual description, if the connection is in text-mo...
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
This is a base class for objects that can be both read from and be written to the YARP network.
Definition: Portable.h:26
Minimal requirements for an efficient Writer.
Definition: SizedWriter.h:33
double float64_t
Definition: numeric.h:77
float float32_t
Definition: numeric.h:76
#define YARP_UNUSED(var)
Definition: api.h:162