bes Updated for version 3.20.13
FONcShort.h
1// FONcShort.h
2
3// This file is part of BES Netcdf File Out Module
4
5// Copyright (c) 2004,2005 University Corporation for Atmospheric Research
6// Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
7//
8// This library is free software; you can redistribute it and/or
9// modify it under the terms of the GNU Lesser General Public
10// License as published by the Free Software Foundation; either
11// version 2.1 of the License, or (at your option) any later version.
12//
13// This library is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16// Lesser General Public License for more details.
17//
18// You should have received a copy of the GNU Lesser General Public
19// License along with this library; if not, write to the Free Software
20// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21//
22// You can contact University Corporation for Atmospheric Research at
23// 3080 Center Green Drive, Boulder, CO 80301
24
25// (c) COPYRIGHT University Corporation for Atmospheric Research 2004-2005
26// Please read the full copyright statement in the file COPYRIGHT_UCAR.
27//
28// Authors:
29// pwest Patrick West <pwest@ucar.edu>
30// jgarcia Jose Garcia <jgarcia@ucar.edu>
31
32#ifndef FONcShort_h_
33#define FONcShort_h_ 1
34
35#include <libdap/BaseType.h>
36
37using namespace libdap ;
38
39#include "FONcBaseType.h"
40
47class FONcShort : public FONcBaseType
48{
49private:
50 BaseType * _bt ;
51 bool _unsigned_int8;
52public:
53 FONcShort( BaseType *b ) ;
54 FONcShort( BaseType *b ,bool unsigned_int8) ;
55 virtual ~FONcShort() ;
56
57 virtual void define( int ncid ) ;
58 virtual void write( int ncid ) ;
59
60 virtual string name() ;
61 virtual nc_type type() ;
62
63 virtual void dump( ostream &strm ) const ;
64} ;
65
66#endif // FONcShort_h_
67
A DAP BaseType with file out netcdf information included.
Definition: FONcBaseType.h:60
A DAP Int16 and UInt16 with file out netcdf information included.
Definition: FONcShort.h:48
virtual string name()
returns the name of the DAP Int16 or UInt16
Definition: FONcShort.cc:175
virtual void define(int ncid)
define the DAP Int16 or UInt16 in the netcdf file
Definition: FONcShort.cc:102
virtual nc_type type()
returns the netcdf type of the DAP object
Definition: FONcShort.cc:185
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
Definition: FONcShort.cc:197
virtual ~FONcShort()
Destructor that cleans up the short.
Definition: FONcShort.cc:87
virtual void write(int ncid)
Write the short out to the netcdf file.
Definition: FONcShort.cc:137