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
8
10
11
13
15{
16 return where().getName();
17}
18
20{
21 setInputMode(true);
22 setOutputMode(false);
23 setRpcMode(false);
24}
25
27{
28 setInputMode(false);
29 setOutputMode(true);
30 setRpcMode(false);
31}
32
34{
35 setInputMode(true);
36 setOutputMode(false);
37 setRpcMode(true);
38}
39
41{
42 setInputMode(false);
43 setOutputMode(true);
44 setRpcMode(true);
45}
std::string getName() const override
Get name of port.
virtual std::string getName() const
Get name of port.
virtual Contact where() const =0
Returns information about how this port can be reached.
void setWriteOnly()
Shorthand for setInputMode(false), setOutputMode(true), setRpcMode(false)
void setReadOnly()
Shorthand for setInputMode(true), setOutputMode(false), setRpcMode(false)
void setRpcServer()
Shorthand for setInputMode(true), setOutputMode(false), setRpcMode(true)
void setRpcClient()
Shorthand for setInputMode(false), setOutputMode(true), setRpcMode(true)
virtual ~Contactable()
Destructor.