Bayeux
3.4.1
Core Foundation library for SuperNEMO
bayeux
datatools
range_tools.h
Go to the documentation of this file.
1
/* Author(s): Francois Mauger <mauger@lpccaen.in2p3.fr>
3
* Creation date: 2011-09-25
4
* Last modified: 2011-09-25
5
*
6
* License:
7
*
8
* Copyright (C) 2011 Francois Mauger <mauger@lpccaen.in2p3.fr>
9
*
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 3 of the License, or (at
13
* your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful, but
16
* WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
* General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
23
* Boston, MA 02110-1301, USA.
24
*
25
* Description:
26
*
27
* Range tools
28
*
29
*/
30
31
#ifndef DATATOOLS_RANGE_TOOLS_H
32
#define DATATOOLS_RANGE_TOOLS_H
33
34
// This project:
35
#include <
datatools/bit_mask.h
>
36
37
namespace
datatools
{
38
39
enum
range_bound_info_type
{
40
range_bound_undefined
= -1,
41
range_bound_unbounded
= 0,
42
range_bound_included
= 1,
43
range_bound_excluded
= 2
44
};
45
47
struct
range_tools
{
48
static
const
char
token_open_included
=
'['
;
49
static
const
char
token_close_included
=
']'
;
50
static
const
char
token_open_excluded
=
'('
;
51
static
const
char
token_open_excluded_alt
=
']'
;
52
static
const
char
token_close_excluded
=
')'
;
53
static
const
char
token_close_excluded_alt
=
'['
;
54
static
const
char
token_separator
=
','
;
// Should not be favored
55
static
const
char
token_separator2
=
';'
;
// Favored separator
56
static
const
char
token_invalid
=
'!'
;
57
};
58
59
}
// end of namespace datatools
60
61
#endif // DATATOOLS_RANGE_TOOLS_H
62
63
// Local Variables: --
64
// mode: c++ --
65
// c-file-style: "gnu" --
66
// tab-width: 2 --
67
// End: --
datatools::range_tools::token_separator2
static const char token_separator2
Definition:
range_tools.h:55
datatools::range_tools
Utility that hosts constants relative to range and interval objects.
Definition:
range_tools.h:47
datatools::range_bound_info_type
range_bound_info_type
Definition:
range_tools.h:39
datatools::range_tools::token_invalid
static const char token_invalid
Definition:
range_tools.h:56
datatools::range_tools::token_open_excluded
static const char token_open_excluded
Definition:
range_tools.h:50
datatools::range_tools::token_separator
static const char token_separator
Definition:
range_tools.h:54
datatools::range_tools::token_close_excluded
static const char token_close_excluded
Definition:
range_tools.h:52
datatools::range_tools::token_close_included
static const char token_close_included
Definition:
range_tools.h:49
datatools::range_tools::token_open_included
static const char token_open_included
Definition:
range_tools.h:48
datatools
The Bayeux/datatools library top-level namespace.
Definition:
algo.h:13
bit_mask.h
datatools::range_bound_unbounded
Bound is not set.
Definition:
range_tools.h:41
datatools::range_bound_included
Bound is set and included in the interval.
Definition:
range_tools.h:42
datatools::range_tools::token_open_excluded_alt
static const char token_open_excluded_alt
Definition:
range_tools.h:51
datatools::range_bound_undefined
Undefined bound status.
Definition:
range_tools.h:40
datatools::range_bound_excluded
Bound is set and excluded from the interval.
Definition:
range_tools.h:43
datatools::range_tools::token_close_excluded_alt
static const char token_close_excluded_alt
Definition:
range_tools.h:53
Generated by
1.8.15