libdap
Updated for version 3.20.11
libdap4 is an implementation of OPeNDAP's DAP protocol.
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
w
x
Functions
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
w
x
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
~
Variables
Typedefs
Enumerations
Related Functions
Files
File List
dods-limits.h
1
2
// -*- mode: c++; c-basic-offset:4 -*-
3
4
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
5
// Access Protocol.
6
7
// Copyright (c) 2002,2003 OPeNDAP, Inc.
8
// Author: James Gallagher <jgallagher@opendap.org>
9
//
10
// This library is free software; you can redistribute it and/or
11
// modify it under the terms of the GNU Lesser General Public
12
// License as published by the Free Software Foundation; either
13
// version 2.1 of the License, or (at your option) any later version.
14
//
15
// This library is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
// Lesser General Public License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public
21
// License along with this library; if not, write to the Free Software
22
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
//
24
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
// (c) COPYRIGHT URI/MIT 1996,1998,1999
27
// Please read the full copyright statement in the file COPYRIGHT_URI.
28
//
29
// Authors:
30
// jhrg,jimg James Gallagher <jgallagher@gso.uri.edu>
31
32
// Limits for DAP2. Use these *instead* of <limits.h> since DAP2 needs to see
33
// the same values on all machines.
34
35
#ifndef _dods_limits_h
36
#define _dods_limits_h
37
38
#if 0
39
// The old values. I switched to hex notation when 64-bit ints were added
40
// to DAP4.
41
#define DODS_CHAR_BIT 8
42
#define DODS_SCHAR_MIN -128
43
#define DODS_SCHAR_MAX 127
44
#define DODS_UCHAR_MAX 255U
45
#define DODS_UCHAR_MIN 0
46
47
#define DODS_SHRT_MIN -32768
48
#define DODS_SHRT_MAX 32767
49
#define DODS_USHRT_MAX 65535U
50
51
#define DODS_INT_MIN -2147483648
52
// was (-2147483647 - 1)
53
#define DODS_INT_MAX 2147483647
54
#define DODS_UINT_MAX 4294967295U
55
56
#define DODS_LONG_MIN -2147483648
57
// was (-2147483647 - 1)
58
#define DODS_LONG_MAX 2147483647
59
#define DODS_ULONG_MAX 4294967295UL
60
#endif
61
62
#define DODS_CHAR_BIT 8
63
#define DODS_SCHAR_MIN (-0x7f-1)
64
#define DODS_SCHAR_MAX 0x7f
65
#define DODS_UCHAR_MAX 0xffU
66
#define DODS_UCHAR_MIN 0
67
68
#define DODS_SHRT_MIN (-0x7fff-1)
69
#define DODS_SHRT_MAX 0x7fff
70
#define DODS_USHRT_MAX 0xffffU
71
72
#define DODS_INT_MIN (-0x7fffffff-1)
73
#define DODS_INT_MAX 0x7fffffff
74
#define DODS_UINT_MAX 0xffffffffUL
75
76
#define DODS_LONG_MIN DODS_INT_MIN
77
#define DODS_LONG_MAX DODS_INT_MAX
78
#define DODS_ULONG_MAX DODS_UINT_MAX
79
80
#define DODS_LLONG_MIN (-0x7fffffffffffffffLL-1)
81
#define DODS_LLONG_MAX 0x7fffffffffffffffLL
82
#define DODS_ULLONG_MAX 0xffffffffffffffffULL
83
84
#define DODS_MAX_ARRAY_INDEX 0x1fffffffffffffffULL
85
86
#define DODS_DBL_DIG 15
/* digits of precision of a "double" */
87
#define DODS_DBL_MAX 1.7976931348623157E+308
/* max decimal value of a */
88
/* "double" */
89
#define DODS_DBL_MIN 2.2250738585072014E-308
/* min decimal value of a */
90
/* "double" */
91
#define DODS_FLT_DIG 6
/* digits of precision of a "float" */
92
#define DODS_FLT_MAX 3.402823466E+38F
/* max decimal value of a "float" */
93
#define DODS_FLT_MIN 1.175494351E-38F
/* min decimal value of a "float" */
94
95
/* This constant should not be used. */
96
#define DODS_MB_LEN_MAX 4
97
98
#endif
// _dods_limits_h
dods-limits.h
Generated by
1.9.4