YARP
Yet Another Robot Platform
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 
13 namespace yarp {
14 namespace os {
15 
22 {
23 public:
24  void appendBlock(const char* data, size_t len) override;
25  void appendInt8(std::int8_t data) override;
26  void appendInt16(std::int16_t data) override;
27  void appendInt32(std::int32_t data) override;
28  void appendInt64(std::int64_t data) override;
29  void appendFloat32(yarp::conf::float32_t data) override;
30  void appendFloat64(yarp::conf::float64_t data) override;
31  void appendText(const std::string& str, const char terminate = '\n') override;
32  void appendExternalBlock(const char* data, size_t len) override;
33  bool isTextMode() const override;
34  bool isBareMode() const override;
35  void declareSizes(int argc, int* argv) override;
36  void setReplyHandler(PortReader& reader) override;
37  void setReference(Portable* obj) override;
38  bool convertTextMode() override;
39  bool isValid() const override;
40  bool isActive() const override;
41  bool isError() const override;
42  void requestDrop() override;
43  bool isNull() const override;
44  SizedWriter* getBuffer() const override;
45 };
46 
47 } // namespace os
48 } // namespace yarp
49 
50 #endif // YARP_OS_NULLCONNECTIONWRITER_H
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: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
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:314
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18