YARP
Yet Another Robot Platform
Allocator.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
#ifndef YARP_SERVERSQL_IMPL_ALLOCATOR_H
11
#define YARP_SERVERSQL_IMPL_ALLOCATOR_H
12
13
#include <
yarp/os/Contact.h
>
14
15
16
namespace
yarp
{
17
namespace
serversql {
18
namespace
impl {
19
23
class
AllocatorConfig
24
{
25
public
:
26
int
minPortNumber
;
27
int
maxPortNumber
;
28
29
AllocatorConfig
()
30
{
31
minPortNumber
=
maxPortNumber
= -1;
32
}
33
};
34
35
41
class
Allocator
42
{
43
public
:
44
virtual
~Allocator
() =
default
;
45
46
virtual
yarp::os::Contact
completePortName
(
const
yarp::os::Contact
& c) = 0;
47
48
virtual
yarp::os::Contact
completeSocket
(
const
yarp::os::Contact
& c) = 0;
49
50
virtual
bool
freePortResources
(
const
yarp::os::Contact
& c) = 0;
51
};
52
53
}
// namespace impl
54
}
// namespace serversql
55
}
// namespace yarp
56
57
#endif // YARP_SERVERSQL_IMPL_ALLOCATOR_H
yarp::serversql::impl::Allocator
Abstract interface for allocating network resources.
Definition:
Allocator.h:42
yarp::serversql::impl::AllocatorConfig::minPortNumber
int minPortNumber
Definition:
Allocator.h:26
yarp::serversql::impl::Allocator::completePortName
virtual yarp::os::Contact completePortName(const yarp::os::Contact &c)=0
yarp::serversql::impl::Allocator::completeSocket
virtual yarp::os::Contact completeSocket(const yarp::os::Contact &c)=0
yarp::serversql::impl::Allocator::freePortResources
virtual bool freePortResources(const yarp::os::Contact &c)=0
yarp::serversql::impl::AllocatorConfig::AllocatorConfig
AllocatorConfig()
Definition:
Allocator.h:29
yarp::serversql::impl::AllocatorConfig
Upper and lower bounds on port numbers etc for allocation.
Definition:
Allocator.h:24
yarp::serversql::impl::AllocatorConfig::maxPortNumber
int maxPortNumber
Definition:
Allocator.h:27
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::os::Contact
Represents how to reach a part of a YARP network.
Definition:
Contact.h:39
Contact.h
yarp::serversql::impl::Allocator::~Allocator
virtual ~Allocator()=default
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_serversql
src
yarp
serversql
impl
Allocator.h
Generated on Sun Jan 3 2021 02:46:26 for YARP by
1.8.20