bes  Updated for version 3.20.10
FONcUShort.h
1 // FONcUShort.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 //
23 // Authors:
24 // kyang Kent Yang <myang6@hdfgroup.org>
25 // Note: The code follows FONcShort.h.
26 
27 #ifndef FONcUShort_h_
28 #define FONcUShort_h_ 1
29 
30 #include <libdap/BaseType.h>
31 
32 namespace libdap {
33  class BaseType;
34 }
35 
36 #include "FONcBaseType.h"
37 
44 class FONcUShort : public FONcBaseType
45 {
46 private:
47  libdap::BaseType * _bt ;
48 public:
49  FONcUShort( libdap::BaseType *b ) ;
50  virtual ~FONcUShort() ;
51 
52  virtual void define( int ncid ) ;
53  virtual void write( int ncid ) ;
54 
55  virtual string name() ;
56  virtual nc_type type() ;
57 
58  virtual void dump( ostream &strm ) const ;
59 } ;
60 
61 #endif // FONcUShort_h_
62 
A DAP BaseType with file out netcdf information included.
Definition: FONcBaseType.h:64
A DAP UInt16 with file out netcdf information included.
Definition: FONcUShort.h:45
virtual void define(int ncid)
define the DAP Int16 or UInt16 in the netcdf file
Definition: FONcUShort.cc:76
virtual nc_type type()
returns the netcdf type of the DAP object
Definition: FONcUShort.cc:149
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
Definition: FONcUShort.cc:161
virtual string name()
returns the name of the DAP Int16 or UInt16
Definition: FONcUShort.cc:139
FONcUShort(libdap::BaseType *b)
Constructor for FOncShort that takes a DAP UInt16.
Definition: FONcUShort.cc:44
virtual ~FONcUShort()
Destructor that cleans up the short.
Definition: FONcUShort.cc:61
virtual void write(int ncid)
Write the ushort out to the netcdf file.
Definition: FONcUShort.cc:110