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 {
13 namespace os {
14 
18 class Wire : public PortReader
19 {
20 private:
21  yarp::os::WireLink _yarp_link;
22 
23 public:
30  {
31  return _yarp_link;
32  }
33 
39  const yarp::os::WireLink& yarp() const
40  {
41  return _yarp_link;
42  }
43 };
44 
45 } // namespace os
46 } // namespace yarp
47 
48 #endif // YARP_OS_WIRE_H
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
Base class for IDL client/server.
Definition: Wire.h:19
const yarp::os::WireLink & yarp() const
Get YARP state associated with this object (const version).
Definition: Wire.h:39
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
Definition: Wire.h:29
The main, catch-all namespace for YARP.
Definition: dirs.h:16