YARP
Yet Another Robot Platform
Wire.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_WIRE_H
7 #define YARP_OS_WIRE_H
8 
9 #include <yarp/os/PortReader.h>
10 #include <yarp/os/WireLink.h>
11 
12 namespace yarp::os {
13 
17 class Wire : public PortReader
18 {
19 private:
20  yarp::os::WireLink _yarp_link;
21 
22 public:
29  {
30  return _yarp_link;
31  }
32 
38  const yarp::os::WireLink& yarp() const
39  {
40  return _yarp_link;
41  }
42 };
43 
44 } // namespace yarp::os
45 
46 #endif // YARP_OS_WIRE_H
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:24
Base class for IDL client/server.
Definition: Wire.h:18
const yarp::os::WireLink & yarp() const
Get YARP state associated with this object (const version).
Definition: Wire.h:38
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
Definition: Wire.h:28
An interface to the operating system, including Port based communication.