YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
Nodes.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_NODES_H
7
#define YARP_OS_NODES_H
8
9
#include <
yarp/os/Contactables.h
>
10
11
// forward declarations:
12
namespace
yarp::os
{
13
class
Node;
14
}
// namespace yarp::os
15
16
namespace
yarp::os
{
17
28
class
YARP_os_API
Nodes
:
public
yarp::os::Contactables
29
{
30
public
:
31
Nodes
();
32
virtual
~Nodes
();
33
41
void
add(
Contactable
& contactable)
override
;
42
47
void
remove
(
Contactable
& contactable)
override
;
48
55
virtual
Contact
query(
const
std::string& name,
56
const
std::string& category =
""
)
override
;
57
62
virtual
void
update(
Contactable
& contactable);
63
70
Contact
getParent(
const
std::string& name);
71
78
Contact
getURI(
const
std::string& name);
79
86
void
prepare(
const
std::string& name);
87
91
void
interrupt();
92
99
bool
enable(
bool
flag
);
100
104
void
clear();
105
110
void
setActiveName(
const
std::string& name);
111
118
void
addExternalNode(
const
std::string& name,
Node
& node);
119
124
void
removeExternalNode(
const
std::string& name);
125
130
std::string getActiveName();
131
136
bool
requireActiveName();
137
138
#ifndef DOXYGEN_SHOULD_SKIP_THIS
139
private
:
140
class
Private
;
141
Private
* mPriv;
142
#endif
// DOXYGEN_SHOULD_SKIP_THIS
143
};
144
145
}
// namespace yarp::os
146
147
148
#endif
// YARP_OS_NODES_H
Contactables.h
yarp::os::BufferedPort
A mini-server for performing network communication in the background.
Definition
BufferedPort.h:60
yarp::os::Contact
Represents how to reach a part of a YARP network.
Definition
Contact.h:33
yarp::os::Contactable
An abstract port.
Definition
Contactable.h:28
yarp::os::Contactables
The yarp::os::Contactables class.
Definition
Contactables.h:20
yarp::os::Node
The Node class.
Definition
Node.h:23
yarp::os::Nodes::Private
Definition
Nodes.cpp:18
yarp::os::Nodes
The Nodes class.
Definition
Nodes.h:29
yarp::os
An interface to the operating system, including Port based communication.
Definition
AbstractCarrier.h:13
YARP_os_API
#define YARP_os_API
Definition
api.h:18
remove
int remove(yarp::os::Bottle &removeArg, folderType fType, bool verbose)
Definition
yarpcontextutils.cpp:752
YARP
3.11.100+20250603.4+gitaa77f8b5c
src
libYARP_os
src
yarp
os
Nodes.h
Generated on Wed Jun 4 2025 02:40:12 for YARP by
1.9.8