bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
FONcArrayStructure.h
1// FONcArrayStructure.h
2
3// This file is part of BES Netcdf File Out Module
4
5// // Copyright (c) The HDF Group, Inc. and OPeNDAP, Inc.
6//
7// This is free software; you can redistribute it and/or modify it under the
8// terms of the GNU Lesser General Public License as published by the Free
9// Software Foundation; either version 2.1 of the License, or (at your
10// option) any later version.
11//
12// This software is distributed in the hope that it will be useful, but
13// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15// License for more details.
16//
17// You should have received a copy of the GNU Lesser General Public
18// License along with this library; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20//
21// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
22// You can contact The HDF Group, Inc. at 410 E University Ave,
23// Suite 200, Champaign, IL 61820
24
25
26#ifndef FONcArrayStructure_h_
27#define FONcArrayStructure_h_ 1
28
29#include <libdap/Structure.h>
30#include "FONcBaseType.h"
31#include "FONcArrayStructureField.h"
32
33namespace libdap {
34 class Structure;
35 class BaseType;
36 class Array;
37}
38
39
47class FONcArrayStructure : public FONcBaseType
48{
49private:
50 libdap::Array * _as = nullptr;
52 bool can_handle_str_memb = true;
53public:
54 explicit FONcArrayStructure( libdap::BaseType *b ) ;
55 ~FONcArrayStructure() override;
56
57 void convert(vector<string> embed, bool _dap4=true, bool is_dap4_group=false) override;
58 void define( int ncid ) override;
59 void write( int ncid ) override;
60
61 string name() override;
62
63 void dump( ostream &strm ) const override;
64} ;
65
66#endif // FONcArrayStructure_h_
67
void convert(vector< string > embed, bool _dap4=true, bool is_dap4_group=false) override
Creates the FONc objects for each variable of the DAP array of structure.
~FONcArrayStructure() override
Destructor that cleans up the array of structure.
void define(int ncid) override
Define the members of the array of structure in the netcdf file.
void dump(ostream &strm) const override
dumps information about this object for debugging purposes
string name() override
Returns the name of the structure.
FONcArrayStructure(libdap::BaseType *b)
Constructor for FONcArrayStructure that takes a DAP Array Structure.
void write(int ncid) override
write the member variables of the structure to the netcdf file
STL class.
STL class.