YARP
Yet Another Robot Platform
ConnectManager.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* Copyright (C) 2006-2010 RobotCub Consortium
4
* All rights reserved.
5
*
6
* This software may be modified and distributed under the terms of the
7
* BSD-3-Clause license. See the accompanying LICENSE file for details.
8
*/
9
10
#include <
yarp/serversql/impl/ConnectThread.h
>
11
12
#include <list>
13
#include <mutex>
14
15
namespace
yarp
{
16
namespace
serversql {
17
namespace
impl {
18
19
#ifndef YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
20
#define YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
21
22
class
ConnectManager
23
{
24
private
:
25
std::list<ConnectThread*> con;
26
std::mutex mutex;
27
public
:
28
29
ConnectManager
();
30
31
virtual
~ConnectManager
();
32
33
void
clear
();
34
35
void
disconnect
(
const
std::string& src,
36
const
std::string& dest,
37
bool
srcDrop);
38
39
void
connect
(
const
std::string& src,
40
const
std::string& dest,
41
bool
positive =
true
);
42
};
43
44
}
// namespace impl
45
}
// namespace serversql
46
}
// namespace yarp
47
48
49
#endif // YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
yarp::serversql::impl::ConnectManager::clear
void clear()
Definition:
ConnectManager.cpp:26
ConnectThread.h
yarp::serversql::impl::ConnectManager::disconnect
void disconnect(const std::string &src, const std::string &dest, bool srcDrop)
Definition:
ConnectManager.cpp:36
yarp::serversql::impl::ConnectManager::~ConnectManager
virtual ~ConnectManager()
Definition:
ConnectManager.cpp:21
yarp::serversql::impl::ConnectManager::ConnectManager
ConnectManager()
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::serversql::impl::ConnectManager::connect
void connect(const std::string &src, const std::string &dest, bool positive=true)
Definition:
ConnectManager.cpp:43
yarp::serversql::impl::ConnectManager
Definition:
ConnectManager.h:23
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_serversql
src
yarp
serversql
impl
ConnectManager.h
Generated on Sun Jan 3 2021 02:46:26 for YARP by
1.8.20