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