YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
8
9void 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
39
44
45void yarp::os::NullConnectionWriter::appendText(const std::string& str, const char terminate)
46{
47 YARP_UNUSED(str);
48 YARP_UNUSED(terminate);
49}
50
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
77
82
87
89{
90 return false;
91}
92
94{
95 return true;
96}
97
99{
100 return true;
101}
102
106
108{
109 return true;
110}
111
116
118{
119 return nullptr;
120}
A mini-server for performing network communication in the background.
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.
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:24
This is a base class for objects that can be both read from and be written to the YARP network.
Definition Portable.h:25
Minimal requirements for an efficient Writer.
Definition SizedWriter.h:32
#define YARP_UNUSED(var)
Definition api.h:162