YARP
Yet Another Robot Platform
Node.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_NODE_H
7 #define YARP_OS_NODE_H
8 
9 #include <yarp/conf/compiler.h>
10 
11 #include <yarp/os/Contactables.h>
12 
13 namespace yarp {
14 namespace os {
15 
24 {
25 public:
26  Node();
27  Node(const std::string& name);
28  virtual ~Node();
29 
35  void add(Contactable& contactable) override;
36 
42  void remove(Contactable& contactable) override;
43 
52  virtual Contact query(const std::string& name,
53  const std::string& category = "") override;
54 
59  void update(Contactable& contactable);
60 
65  void prepare(const std::string& name);
66 
70  void interrupt();
71 
76  Contact where();
77 
78 private:
79  class Helper;
80  Helper* const mPriv;
81 };
82 
83 } // namespace os
84 } // namespace yarp
85 
86 #endif // YARP_OS_NODE_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
An abstract port.
Definition: Contactable.h:35
The yarp::os::Contactables class.
Definition: Contactables.h:21
The Node class.
Definition: Node.h:24
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18