YARP
Yet Another Robot Platform
ConnectManager.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
8
9#include <list>
10#include <mutex>
11
12namespace yarp::serversql::impl {
13
14#ifndef YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
15#define YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
16
18{
19private:
20 std::list<ConnectThread*> con;
21 std::mutex mutex;
22public:
23
25
26 virtual ~ConnectManager();
27
28 void clear();
29
30 void disconnect(const std::string& src,
31 const std::string& dest,
32 bool srcDrop);
33
34 void connect(const std::string& src,
35 const std::string& dest,
36 bool positive = true);
37};
38
39} // namespace yarp::serversql::impl
40
41
42#endif // YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
void connect(const std::string &src, const std::string &dest, bool positive=true)
void disconnect(const std::string &src, const std::string &dest, bool srcDrop)