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 
12 namespace yarp {
13 namespace serversql {
14 namespace impl {
15 
16 #ifndef YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
17 #define YARP_SERVERSQL_IMPL_CONNECTMANAGER_H
18 
20 {
21 private:
22  std::list<ConnectThread*> con;
23  std::mutex mutex;
24 public:
25 
27 
28  virtual ~ConnectManager();
29 
30  void clear();
31 
32  void disconnect(const std::string& src,
33  const std::string& dest,
34  bool srcDrop);
35 
36  void connect(const std::string& src,
37  const std::string& dest,
38  bool positive = true);
39 };
40 
41 } // namespace impl
42 } // namespace serversql
43 } // namespace yarp
44 
45 
46 #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)
The main, catch-all namespace for YARP.
Definition: dirs.h:16