YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
Contactable.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
#include <
yarp/os/Contactable.h
>
8
9
#include <
yarp/os/AbstractContactable.h
>
10
11
12
yarp::os::Contactable::~Contactable
() =
default
;
13
14
std::string
yarp::os::Contactable::getName
()
const
15
{
16
return
where
().
getName
();
17
}
18
19
void
yarp::os::Contactable::setReadOnly
()
20
{
21
setInputMode(
true
);
22
setOutputMode(
false
);
23
setRpcMode(
false
);
24
}
25
26
void
yarp::os::Contactable::setWriteOnly
()
27
{
28
setInputMode(
false
);
29
setOutputMode(
true
);
30
setRpcMode(
false
);
31
}
32
33
void
yarp::os::Contactable::setRpcServer
()
34
{
35
setInputMode(
true
);
36
setOutputMode(
false
);
37
setRpcMode(
true
);
38
}
39
40
void
yarp::os::Contactable::setRpcClient
()
41
{
42
setInputMode(
false
);
43
setOutputMode(
true
);
44
setRpcMode(
true
);
45
}
AbstractContactable.h
Contactable.h
yarp::os::BufferedPort::getName
std::string getName() const override
Get name of port.
Definition
BufferedPort-inl.h:105
yarp::os::Contactable::getName
virtual std::string getName() const
Get name of port.
Definition
Contactable.cpp:14
yarp::os::Contactable::where
virtual Contact where() const =0
Returns information about how this port can be reached.
yarp::os::Contactable::setWriteOnly
void setWriteOnly()
Shorthand for setInputMode(false), setOutputMode(true), setRpcMode(false)
Definition
Contactable.cpp:26
yarp::os::Contactable::setReadOnly
void setReadOnly()
Shorthand for setInputMode(true), setOutputMode(false), setRpcMode(false)
Definition
Contactable.cpp:19
yarp::os::Contactable::setRpcServer
void setRpcServer()
Shorthand for setInputMode(true), setOutputMode(false), setRpcMode(true)
Definition
Contactable.cpp:33
yarp::os::Contactable::setRpcClient
void setRpcClient()
Shorthand for setInputMode(false), setOutputMode(true), setRpcMode(true)
Definition
Contactable.cpp:40
yarp::os::Contactable::~Contactable
virtual ~Contactable()
Destructor.
YARP
3.11.100+20250603.4+gitaa77f8b5c
src
libYARP_os
src
yarp
os
Contactable.cpp
Generated on Wed Jun 4 2025 02:40:11 for YARP by
1.9.8