YARP
Yet Another Robot Platform
ContactStyle.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_CONTACTSTYLE_H
8#define YARP_OS_CONTACTSTYLE_H
9
10#include <yarp/os/api.h>
11
12#include <string>
13
14namespace yarp::os {
15
23{
24public:
30 bool admin;
31
35 bool quiet;
36
41
46 double timeout;
47
53
58
63
69 {
70 OPENENDED = 0,
71 END_WITH_FROM_PORT = 1,
72 END_WITH_TO_PORT = 2,
73 NO_PERSISTENCE = 3
74 };
75
81
85 explicit ContactStyle();
86};
87
88} // namespace yarp::os
89
90#endif // YARP_OS_CONTACTSTYLE_H
Preferences for how to communicate with a contact.
Definition: ContactStyle.h:23
double timeout
Set a timeout for communication (in units of seconds, fractional seconds allowed).
Definition: ContactStyle.h:46
PersistenceType persistenceType
Specify kind of persistence to use.
Definition: ContactStyle.h:80
bool quiet
Suppress all outputs and warnings.
Definition: ContactStyle.h:35
std::string carrier
Request that communication be made using a particular carrier.
Definition: ContactStyle.h:52
bool verboseOnSuccess
Allow output on success.
Definition: ContactStyle.h:40
bool expectReply
Specify whether you expect a reply to a message.
Definition: ContactStyle.h:57
bool admin
Ask recipient to treat message as administrative.
Definition: ContactStyle.h:30
PersistenceType
Persistence types, controlling the lifetime of a persistent connection.
Definition: ContactStyle.h:69
bool persistent
Specify whether a requested connection should be persistent.
Definition: ContactStyle.h:62
An interface to the operating system, including Port based communication.
#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