Bayeux  3.4.1
Core Foundation library for SuperNEMO
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 
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: --
static const char token_separator2
Definition: range_tools.h:55
Utility that hosts constants relative to range and interval objects.
Definition: range_tools.h:47
range_bound_info_type
Definition: range_tools.h:39
static const char token_invalid
Definition: range_tools.h:56
static const char token_open_excluded
Definition: range_tools.h:50
static const char token_separator
Definition: range_tools.h:54
static const char token_close_excluded
Definition: range_tools.h:52
static const char token_close_included
Definition: range_tools.h:49
static const char token_open_included
Definition: range_tools.h:48
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13
Bound is not set.
Definition: range_tools.h:41
Bound is set and included in the interval.
Definition: range_tools.h:42
static const char token_open_excluded_alt
Definition: range_tools.h:51
Undefined bound status.
Definition: range_tools.h:40
Bound is set and excluded from the interval.
Definition: range_tools.h:43
static const char token_close_excluded_alt
Definition: range_tools.h:53