32 #ifndef FONcBaseType_h_
33 #define FONcBaseType_h_ 1
43 #define RETURNAS_NETCDF "netcdf"
44 #define RETURNAS_NETCDF4 "netcdf-4"
45 #define NC4_CLASSIC_MODEL "NC4_CLASSIC_MODEL"
46 #define NC4_ENHANCED "NC4_ENHANCED"
65 std::string _orig_varname;
66 std::vector<std::string> _embed;
68 std::string _ncVersion;
69 std::string _nc4_datamodel;
75 FONcBaseType() : _varid(0), _defined(
false),is_dap4(
false),is_dap4_group(
false){ }
80 virtual void convert(std::vector<std::string> embed,
bool is_dap4_group=
false);
81 virtual void define(
int ncid);
82 virtual void write(
int ) { }
84 virtual std::string name() = 0;
85 virtual nc_type
type();
87 virtual int varid()
const {
return _varid; }
89 virtual void dump(std::ostream &strm)
const = 0;
94 virtual bool isNetCDF4_ENHANCED();
95 virtual void set_is_dap4(
bool set_dap4) {is_dap4 = set_dap4;}
top level BES object to house generic methods
A DAP BaseType with file out netcdf information included.
virtual void setVersion(std::string version)
Identifies variable with use of NetCDF4 features.
virtual void setNC4DataModel(std::string nc4_datamodel)
Identifies the netCDF4 data model (CLASSIC or ENHANCED)
virtual void define(int ncid)
Define the variable in the netcdf file.
virtual bool isNetCDF4()
Returns true if NetCDF4 features will be required.
virtual nc_type type()
Returns the type of data of this variable.
virtual void clear_embedded()
Clears the list of embedded variable names.
virtual void dump(std::ostream &strm) const =0
dump the contents of this object to the specified ostream