YARP
Yet Another Robot Platform
Allocator.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_SERVERSQL_IMPL_ALLOCATOR_H
8 #define YARP_SERVERSQL_IMPL_ALLOCATOR_H
9 
10 #include <yarp/os/Contact.h>
11 
12 
13 namespace yarp {
14 namespace serversql {
15 namespace impl {
16 
21 {
22 public:
25 
27  {
29  }
30 };
31 
32 
38 class Allocator
39 {
40 public:
41  virtual ~Allocator() = default;
42 
44 
46 
47  virtual bool freePortResources(const yarp::os::Contact& c) = 0;
48 };
49 
50 } // namespace impl
51 } // namespace serversql
52 } // namespace yarp
53 
54 #endif // YARP_SERVERSQL_IMPL_ALLOCATOR_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
Upper and lower bounds on port numbers etc for allocation.
Definition: Allocator.h:21
Abstract interface for allocating network resources.
Definition: Allocator.h:39
virtual yarp::os::Contact completePortName(const yarp::os::Contact &c)=0
virtual yarp::os::Contact completeSocket(const yarp::os::Contact &c)=0
virtual bool freePortResources(const yarp::os::Contact &c)=0
The main, catch-all namespace for YARP.
Definition: dirs.h:16