YARP
Yet Another Robot Platform
NullConnectionWriter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_OS_NULLCONNECTIONWRITER_H
10 #define YARP_OS_NULLCONNECTIONWRITER_H
11 
12 #include <yarp/os/api.h>
13 
15 
16 namespace yarp {
17 namespace os {
18 
25 {
26 public:
27  void appendBlock(const char* data, size_t len) override;
28  void appendInt8(std::int8_t data) override;
29  void appendInt16(std::int16_t data) override;
30  void appendInt32(std::int32_t data) override;
31  void appendInt64(std::int64_t data) override;
32  void appendFloat32(yarp::conf::float32_t data) override;
33  void appendFloat64(yarp::conf::float64_t data) override;
34  void appendText(const std::string& str, const char terminate = '\n') override;
35  void appendExternalBlock(const char* data, size_t len) override;
36  bool isTextMode() const override;
37  bool isBareMode() const override;
38  void declareSizes(int argc, int* argv) override;
39  void setReplyHandler(PortReader& reader) override;
40  void setReference(Portable* obj) override;
41  bool convertTextMode() override;
42  bool isValid() const override;
43  bool isActive() const override;
44  bool isError() const override;
45  void requestDrop() override;
46  bool isNull() const override;
47  SizedWriter* getBuffer() const override;
48 };
49 
50 } // namespace os
51 } // namespace yarp
52 
53 #endif // YARP_OS_NULLCONNECTIONWRITER_H
yarp::os::Portable
This is a base class for objects that can be both read from and be written to the YARP network.
Definition: Portable.h:29
ConnectionWriter.h
yarp::os::Time::isValid
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:317
api.h
YARP_os_API
#define YARP_os_API
Definition: api.h:19
yarp::os::PortReader
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:28
yarp::os::ConnectionWriter
An interface for writing to a network connection.
Definition: ConnectionWriter.h:40
yarp::os::NullConnectionWriter
A dummy ConnectionWriter that consumes data without effect.
Definition: NullConnectionWriter.h:25
yarp::conf::float32_t
float float32_t
Definition: numeric.h:50
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::conf::float64_t
double float64_t
Definition: numeric.h:51
yarp::os::SizedWriter
Minimal requirements for an efficient Writer.
Definition: SizedWriter.h:36