YARP
Yet Another Robot Platform
NestedContact.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_NESTEDCONTACT_H
8#define YARP_OS_NESTEDCONTACT_H
9
10#include <yarp/os/api.h>
11
12#include <string>
13
14namespace yarp::os {
15
23{
24public:
31
37 NestedContact(const std::string& fullName);
38
44 NestedContact(const NestedContact& rhs);
45
51 NestedContact(NestedContact&& rhs) noexcept;
52
57
64 NestedContact& operator=(const NestedContact& rhs);
65
72 NestedContact& operator=(NestedContact&& rhs) noexcept;
73
77 bool fromString(const std::string& nFullName);
78
79 void setTypeName(const std::string& nWireType);
80
81 void setCategoryWrite();
82
83 void setCategoryRead();
84
85 std::string getFullName() const;
86
87 std::string getNodeName() const;
88
89 std::string getNestedName() const;
90
91 std::string getCategory() const;
92
93 std::string getTypeName() const;
94
95 std::string getTypeNameStar() const;
96
97 bool isNested() const;
98
99 std::string toString() const;
100
103#ifndef DOXYGEN_SHOULD_SKIP_THIS
104private:
105 class Private;
106 Private* mPriv;
107#endif // DOXYGEN_SHOULD_SKIP_THIS
108};
109
110} // namespace yarp::os
111
112#endif // YARP_OS_NESTEDCONTACT_H
A placeholder for rich contact information.
Definition: NestedContact.h:23
std::string toString(const T &value)
convert an arbitrary type to string.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition: api.h:18