bes  Updated for version 3.20.6
FONcStr.h
1 // FONcStr.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 FONcStr_h_
33 #define FONcStr_h_ 1
34 
35 #include "FONcBaseType.h"
36 
37 namespace libdap {
38 class BaseType;
39 class Str;
40 }
41 
50 class FONcStr: public FONcBaseType {
51 private:
52  libdap::Str *_str;
53  int _dimid;
54  string *_data;
55 public:
56  FONcStr(libdap::BaseType *b);
57  virtual ~FONcStr();
58 
59  virtual void define(int ncid);
60  virtual void write(int ncid);
61 
62  virtual string name();
63  virtual nc_type type();
64 
65  virtual void dump(ostream &strm) const;
66 };
67 
68 #endif // FONcStr_h_
69 
FONcStr::~FONcStr
virtual ~FONcStr()
Destructor that cleans up the str.
Definition: FONcStr.cc:66
FONcStr::define
virtual void define(int ncid)
Define the string variable in the netcdf file.
Definition: FONcStr.cc:79
FONcStr::write
virtual void write(int ncid)
Write the str out to the netcdf file.
Definition: FONcStr.cc:122
libdap
Definition: BESDapFunctionResponseCache.h:35
FONcStr::dump
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
Definition: FONcStr.cc:168
FONcStr::type
virtual nc_type type()
returns the netcdf type of the DAP Str
Definition: FONcStr.cc:157
FONcStr
A class representing the DAP Str class for file out netcdf.
Definition: FONcStr.h:50
FONcStr::name
virtual string name()
returns the name of the DAP Str
Definition: FONcStr.cc:148
Str
FONcBaseType
A DAP BaseType with file out netcdf information included.
Definition: FONcBaseType.h:58
FONcStr::FONcStr
FONcStr(libdap::BaseType *b)
Constructor for FONcStr that takes a DAP Str.
Definition: FONcStr.cc:51