00001 00002 // -*- mode: c++; c-basic-offset:4 -*- 00003 00004 // This file is part of libdap, A C++ implementation of the OPeNDAP Data 00005 // Access Protocol. 00006 00007 // Copyright (c) 2002,2003 OPeNDAP, Inc. 00008 // Author: James Gallagher <jgallagher@opendap.org> 00009 // 00010 // This library is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 // 00024 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112. 00025 00026 // (c) COPYRIGHT URI/MIT 1996,1998,1999 00027 // Please read the full copyright statement in the file COPYRIGHT_URI. 00028 // 00029 // Authors: 00030 // jhrg,jimg James Gallagher <jgallagher@gso.uri.edu> 00031 00032 // Limits for DAP2. Use these *instead* of <limits.h> since DAP2 needs to see 00033 // the same values on all machines. 00034 00035 #ifndef _dods_limits_h 00036 #define _dods_limits_h 00037 00038 #define DODS_CHAR_BIT 8 00039 #define DODS_SCHAR_MIN -128 00040 #define DODS_SCHAR_MAX 127 00041 #define DODS_UCHAR_MAX 255U 00042 #define DODS_UCHAR_MIN 0 00043 00044 #define DODS_SHRT_MIN -32768 00045 #define DODS_SHRT_MAX 32767 00046 #define DODS_USHRT_MAX 65535U 00047 00048 #define DODS_INT_MIN (-2147483647 - 1) 00049 #define DODS_INT_MAX 2147483647 00050 #define DODS_UINT_MAX 4294967295U 00051 00052 #define DODS_LONG_MIN (-2147483647 - 1) 00053 #define DODS_LONG_MAX 2147483647 00054 #define DODS_ULONG_MAX 4294967295UL 00055 00056 #define DODS_DBL_DIG 15 /* digits of precision of a "double" */ 00057 #define DODS_DBL_MAX 1.7976931348623157E+308 /* max decimal value of a */ 00058 /* "double" */ 00059 #define DODS_DBL_MIN 2.2250738585072014E-308 /* min decimal value of a */ 00060 /* "double" */ 00061 #define DODS_FLT_DIG 6 /* digits of precision of a "float" */ 00062 #define DODS_FLT_MAX 3.402823466E+38F /* max decimal value of a "float" */ 00063 #define DODS_FLT_MIN 1.175494351E-38F /* min decimal value of a "float" */ 00064 00065 #define DODS_MB_LEN_MAX 4 00066 00067 #endif // _dods_limits_h