32#ifndef FONcAttributes_h_
33#define FONcAttributes_h_ 1
39#include <libdap/BaseType.h>
40#include <libdap/D4Attributes.h>
57 static void add_variable_attributes_worker(
int ncid,
int varid, BaseType *b,
string &emb_name,
bool is_netCDF_enhanced ,
bool is_dap4) ;
59 static void add_attributes_worker(
int ncid,
int varid,
const string &var_name, AttrTable &attrs, AttrTable::Attr_iter &attr,
const string &prepend_attri,
bool is_netCDF_enhanced ) ;
61 static void add_dap4_attributes_worker(
int ncid,
int varid,
const string &var_name, D4Attribute *attr,
const string &prepend_attri,
bool is_netCDF_enhanced ) ;
63 static void add_attributes(
int ncid,
int varid, AttrTable &attrs,
const string &var_name,
const string &prepend_attr ,
bool is_netCDF_enhanced) ;
64 static void add_dap4_attributes(
int ncid,
int varid, D4Attributes *d4_attrs,
const string &var_name,
const string &prepend_attr ,
bool is_netCDF_enhanced) ;
67 static void add_original_name(
int ncid,
int varid,
const string &var_name,
const string &orig ) ;
68 static void write_attrs_for_nc4_types(
int ncid,
int varid,
const string &var_name,
const string&global_attr_name,
const string & var_attr_name,AttrTable attrs, AttrTable::Attr_iter &attr,
bool is_nc_enhanced);
71 static void write_dap4_attrs_for_nc4_types(
int ncid,
int varid,
const string &var_name,
const string&global_attr_name,
const string & var_attr_name, D4Attribute* attr,
bool is_nc_enhanced);
A class that provides static methods to help write out attributes for a given variable.
static void add_dap4_attributes(int ncid, int varid, D4Attributes *d4_attrs, const string &var_name, const string &prepend_attr, bool is_netCDF_enhanced)
add_dap4_attributes
static void write_dap4_attrs_for_nc4_types(int ncid, int varid, const string &var_name, const string &global_attr_name, const string &var_attr_name, D4Attribute *attr, bool is_nc_enhanced)
writes out a single attribute that maps the dap4 datatype to netCDF-4
static void add_original_name(int ncid, int varid, const string &var_name, const string &orig)
Adds an attribute for the variable if the variable name had to be modified in any way.
static void add_attributes(int ncid, int varid, AttrTable &attrs, const string &var_name, const string &prepend_attr, bool is_netCDF_enhanced)
helper function for add_attributes
static void write_attrs_for_nc4_types(int ncid, int varid, const string &var_name, const string &global_attr_name, const string &var_attr_name, AttrTable attrs, AttrTable::Attr_iter &attr, bool is_nc_enhanced)
writes out a single attribute that maps the datatype to netCDF-4
static void add_variable_attributes(int ncid, int varid, BaseType *b, bool is_netCDF_enhanced, bool is_dap4)
Add the attributes for an OPeNDAP variable to the netcdf file.
A DAP BaseType with file out netcdf information included.