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
14
19{
20public:
23
25 {
27 }
28};
29
30
37{
38public:
39 virtual ~Allocator() = default;
40
42
44
45 virtual bool freePortResources(const yarp::os::Contact& c) = 0;
46};
47
48} // namespace yarp::serversql::impl
49
50#endif // YARP_SERVERSQL_IMPL_ALLOCATOR_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:33
Upper and lower bounds on port numbers etc for allocation.
Definition: Allocator.h:19
Abstract interface for allocating network resources.
Definition: Allocator.h:37
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