YARP
Yet Another Robot Platform
NullConnection.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_NULLCONNECTION_H
10 #define YARP_OS_NULLCONNECTION_H
11 
12 #include <yarp/os/api.h>
13 
14 #include <yarp/os/Connection.h>
15 
16 namespace yarp {
17 namespace os {
18 
20 {
21 public:
22  bool isValid() const override;
23  bool isTextMode() const override;
24  bool canEscape() const override;
25  void handleEnvelope(const std::string& envelope) override;
26  bool requireAck() const override;
27  bool supportReply() const override;
28  bool isLocal() const override;
29  bool isPush() const override;
30  bool isConnectionless() const override;
31  bool isBroadcast() const override;
32  bool isActive() const override;
33  bool modifiesIncomingData() const override;
34  yarp::os::ConnectionReader& modifyIncomingData(yarp::os::ConnectionReader& reader) override;
35  bool acceptIncomingData(yarp::os::ConnectionReader& reader) override;
36  bool modifiesOutgoingData() const override;
37  const PortWriter& modifyOutgoingData(const PortWriter& writer) override;
38  bool acceptOutgoingData(const PortWriter& writer) override;
39  bool modifiesReply() const override;
40  PortReader& modifyReply(PortReader& reader) override;
41  void setCarrierParams(const yarp::os::Property& params) override;
42  void getCarrierParams(yarp::os::Property& params) const override;
43  void getHeader(yarp::os::Bytes& header) const override;
44  void prepareDisconnect() override;
45  std::string getName() const override;
46 };
47 
48 } // namespace os
49 } // namespace yarp
50 
51 
52 #endif // YARP_OS_NULLCONNECTION_H
yarp::os::NullConnection
Definition: NullConnection.h:20
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::PortWriter
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition: PortWriter.h:27
yarp::os::PortReader
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:28
Connection.h
yarp::os::Bytes
A simple abstraction for a block of bytes.
Definition: Bytes.h:28
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::Connection
A controller for an individual connection.
Definition: Connection.h:30
yarp::os::Property
A class for storing options and configuration information.
Definition: Property.h:37