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
7
#include <
yarp/serversql/impl/ConnectThread.h
>
8
9
#include <list>
10
#include <mutex>
11
12
namespace
yarp::serversql::impl
{
13
14
#ifndef YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
15
#define YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
16
17
class
ConnectManager
18
{
19
private
:
20
std::list<ConnectThread*> con;
21
std::mutex mutex;
22
public
:
23
24
ConnectManager
();
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
ConnectThread.h
yarp::serversql::impl::ConnectManager
Definition:
ConnectManager.h:18
yarp::serversql::impl::ConnectManager::~ConnectManager
virtual ~ConnectManager()
Definition:
ConnectManager.cpp:18
yarp::serversql::impl::ConnectManager::clear
void clear()
Definition:
ConnectManager.cpp:23
yarp::serversql::impl::ConnectManager::connect
void connect(const std::string &src, const std::string &dest, bool positive=true)
Definition:
ConnectManager.cpp:40
yarp::serversql::impl::ConnectManager::disconnect
void disconnect(const std::string &src, const std::string &dest, bool srcDrop)
Definition:
ConnectManager.cpp:33
yarp::serversql::impl::ConnectManager::ConnectManager
ConnectManager()
yarp::serversql::impl
Definition:
Allocator.h:13
YARP
3.7.2+72-20221008.2+gitbb7fa68a9
src
libYARP_serversql
src
yarp
serversql
impl
ConnectManager.h
Generated on Thu Oct 27 2022 02:58:52 for YARP by
1.9.4