1// This file is part of the hdf4 data handler for the OPeNDAP data server.
2
3// Copyright (c) 2005 OPeNDAP, Inc.
4// Author: James Gallagher <jgallagher@opendap.org>
5//
6// This is free software; you can redistribute it and/or modify it under the
7// terms of the GNU Lesser General Public License as published by the Free
8// Software Foundation; either version 2.1 of the License, or (at your
9// option) any later version.
10//
11// This software is distributed in the hope that it will be useful, but
12// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14// License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public License
17// along with this software; if not, write to the Free Software Foundation,
18// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
21
23// Copyright 1996, by the California Institute of Technology.
24// ALL RIGHTS RESERVED. United States Government Sponsorship
25// acknowledged. Any commercial use must be negotiated with the
26// Office of Technology Transfer at the California Institute of
27// Technology. This software may be subject to U.S. export control
28// laws and regulations. By accepting this software, the user
29// agrees to comply with all applicable U.S. export laws and
30// regulations. User has the responsibility to obtain export
31// licenses, or other export authority as may be required before
32// exporting such information to foreign countries or providing
33// access to foreign persons.
34
35// U.S. Government Sponsorship under NASA Contract
36// NAS7-1260 is acknowledged.
37//
38// Author: Todd.K.Karakashian@jpl.nasa.gov
39//
40// $rcsfile$ - force g++ to instantiate templates. Does nothing if g++
41// is not being used.
42//
44
45#include "config_hdf.h"
46
47#include <mfhdf.h>
48#ifdef __POWERPC__
49#undef isascii
50#endif
51
52#include <hdfclass.h>
53
54#ifdef __GNUG__ // force instantiation due to G++ bug
55namespace std {
56templateclass vector < hdf_sds >;
57templateclass vector < hdf_attr >;
58templateclass vector < hdf_dim >;
59templateclass vector < hdf_genvec >;
60templateclass vector < hdf_field >;
61templateclass vector < hdf_vdata >;
62templateclass vector < hdf_palette >;
63templateclass vector < hdf_gri >;
64 }
65#endif
66
67// This dummy function is just so the presence of the HDFClass library
68// can be detected using GNU autoconf's AC_CHECK_LIB
69extern"C" {
70void _HAVE_HDFCLASS(void) {
71 }}
72// Changes:// $Log: inst.cc,v $// Revision 1.2.8.1.2.1 2004/02/23 02:08:03 rmorris// There is some incompatibility between the use of isascii() in the hdf library// and its use on OS X. Here we force in the #undef of isascii in the osx case.//// Revision 1.2.8.1 2003/05/21 16:26:58 edavis// Updated/corrected copyright statements.//// Revision 1.2 2000/10/09 19:46:19 jimg// Moved the CVS Log entries to the end of each file.// Added code to catch Error objects thrown by the dap library.// Changed the read() method's definition to match the dap library.//// Revision 1.1 1996/10/31 18:43:05 jimg// Added.//