YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
NullConnectionWriter.h
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
6#ifndef YARP_OS_NULLCONNECTIONWRITER_H
7#define YARP_OS_NULLCONNECTIONWRITER_H
8
9#include <yarp/os/api.h>
10
12
13namespace yarp::os {
14
21{
22public:
23 void appendBlock(const char* data, size_t len) override;
24 void appendInt8(std::int8_t data) override;
25 void appendInt16(std::int16_t data) override;
26 void appendInt32(std::int32_t data) override;
27 void appendInt64(std::int64_t data) override;
28 void appendFloat32(yarp::conf::float32_t data) override;
29 void appendFloat64(yarp::conf::float64_t data) override;
30 void appendText(const std::string& str, const char terminate = '\n') override;
31 void appendExternalBlock(const char* data, size_t len) override;
32 bool isTextMode() const override;
33 bool isBareMode() const override;
34 void declareSizes(int argc, int* argv) override;
35 void setReplyHandler(PortReader& reader) override;
36 void setReference(Portable* obj) override;
37 bool convertTextMode() override;
38 bool isValid() const override;
39 bool isActive() const override;
40 bool isError() const override;
41 void requestDrop() override;
42 bool isNull() const override;
43 SizedWriter* getBuffer() override;
44 const SizedWriter* getBuffer() const override;
45};
46
47} // namespace yarp::os
48
49#endif // YARP_OS_NULLCONNECTIONWRITER_H
A mini-server for performing network communication in the background.
An interface for writing to a network connection.
A dummy ConnectionWriter that consumes data without effect.
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
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18