YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
14namespace yarp::os {
15
22{
23private:
24 Value blank;
25
26public:
27 bool expectBlock(char* data, size_t len) override;
28 std::string expectText(const char terminatingChar = '\n') override;
29 std::int8_t expectInt8() override;
30 std::int16_t expectInt16() override;
31 std::int32_t expectInt32() override;
32 std::int64_t expectInt64() override;
33 yarp::conf::float32_t expectFloat32() override;
34 yarp::conf::float64_t expectFloat64() override;
35 bool pushInt(int x) override;
36 bool isTextMode() const override;
37 bool convertTextMode() override;
38 size_t getSize() const override;
39 ConnectionWriter* getWriter() override;
40 Bytes readEnvelope() override;
41 Portable* getReference() const override;
42 Contact getRemoteContact() const override;
43 Contact getLocalContact() const override;
44 bool isValid() const override;
45 bool isActive() const override;
46 bool isError() const override;
47 void requestDrop() override;
48 const Searchable& getConnectionModifiers() const override;
49};
50
51} // namespace yarp::os
52
53#endif // YARP_OS_NULLCONNECTIONREADER_H
A mini-server for performing network communication in the background.
A simple abstraction for a block of bytes.
Definition Bytes.h:24
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:33
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:25
A base class for nested structures that can be searched.
Definition Searchable.h:31
A single value (typically within a Bottle).
Definition Value.h:43
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18