YARP
Yet Another Robot Platform
NullConnectionReader.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_NULLCONNECTIONREADER_H
7 #define YARP_OS_NULLCONNECTIONREADER_H
8 
9 #include <yarp/os/api.h>
10 
12 #include <yarp/os/Value.h>
13 
14 namespace yarp {
15 namespace os {
16 
23 {
24 private:
25  Value blank;
26 
27 public:
28  bool expectBlock(char* data, size_t len) override;
29  std::string expectText(const char terminatingChar = '\n') override;
30  std::int8_t expectInt8() override;
31  std::int16_t expectInt16() override;
32  std::int32_t expectInt32() override;
33  std::int64_t expectInt64() override;
34  yarp::conf::float32_t expectFloat32() override;
35  yarp::conf::float64_t expectFloat64() override;
36  bool pushInt(int x) override;
37  bool isTextMode() const override;
38  bool convertTextMode() override;
39  size_t getSize() const override;
40  ConnectionWriter* getWriter() override;
41  Bytes readEnvelope() override;
42  Portable* getReference() const override;
43  Contact getRemoteContact() const override;
44  Contact getLocalContact() const override;
45  bool isValid() const override;
46  bool isActive() const override;
47  bool isError() const override;
48  void requestDrop() override;
49  const Searchable& getConnectionModifiers() const override;
50 };
51 
52 } // namespace os
53 } // namespace yarp
54 
55 #endif // YARP_OS_NULLCONNECTIONREADER_H
A simple abstraction for a block of bytes.
Definition: Bytes.h:25
An interface for reading from a network connection.
An interface for writing to a network connection.
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
Dummy ConnectionReader that has no data.
This is a base class for objects that can be both read from and be written to the YARP network.
Definition: Portable.h:26
A base class for nested structures that can be searched.
Definition: Searchable.h:66
A single value (typically within a Bottle).
Definition: Value.h:45
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