YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PortInfo.h
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#ifndef YARP_OS_PORTINFO_H
8#define YARP_OS_PORTINFO_H
9
10#include <yarp/os/api.h>
11
12#include <yarp/os/Vocab.h>
13
14#include <string>
15
16
17namespace yarp::os {
18
25{
26public:
30 explicit PortInfo();
31
33 enum
34 {
36 PORTINFO_NULL = 0,
37
39 PORTINFO_CONNECTION = yarp::os::createVocab32('c', 'o', 'n', 'n'),
40
42 PORTINFO_MISC = yarp::os::createVocab32('m', 'i', 's', 'c')
43 };
44
47 int tag;
48
51
53 bool created;
54
57
60
63
66
69};
70
71} // namespace yarp::os
72
73#endif // YARP_OS_PORTINFO_H
Information about a port connection or event.
Definition PortInfo.h:25
std::string targetName
Name of connection target, if any.
Definition PortInfo.h:62
std::string carrierName
Name of protocol type, if releveant.
Definition PortInfo.h:65
bool incoming
True if a connection is incoming, false if outgoing.
Definition PortInfo.h:50
std::string message
A human-readable description of contents.
Definition PortInfo.h:68
bool created
True if a connection is created, false if destroyed.
Definition PortInfo.h:53
std::string portName
Name of port.
Definition PortInfo.h:56
int tag
Type of information.
Definition PortInfo.h:47
std::string sourceName
Name of connection source, if any.
Definition PortInfo.h:59
An interface to the operating system, including Port based communication.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
Definition Vocab.h:27
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
Definition system.h:338
#define YARP_os_API
Definition api.h:18