48 _s =
dynamic_cast<Sequence *
>(b) ;
51 string s = (string)
"File out netcdf, FONcSequence was passed a "
52 +
"variable that is not a DAP Sequence" ;
98 string val = (string)
"The sequence " +
_varname
99 +
" is a member of this dataset and has been elided." ;
100 int stax = nc_put_att_text( ncid, NC_GLOBAL,
_varname.c_str(),
101 val.length(), val.c_str() ) ;
102 if( stax != NC_NOERR )
104 string err = (string)
"File out netcdf, "
105 +
"failed to write string attribute for sequence "
141 << (
void *)
this <<
")" << endl ;
exception thrown if inernal error encountered
virtual void define(int ncid)
define the DAP Sequence in the netcdf file
virtual void convert(vector< string > embed)
convert the Sequence to something that can be stored in a netcdf file
virtual void write(int ncid)
Write the sequence data out to the netcdf file.
static ostream & LMarg(ostream &strm)
virtual ~FONcSequence()
Destructor that cleans up the sequence.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
static void handle_error(int stax, string &err, const string &file, int line)
handle any netcdf errors
A DAP BaseType with file out netcdf information included.
FONcSequence(BaseType *b)
Constructor for FONcSequence that takes a DAP Sequence.
static string gen_name(const vector< string > &embed, const string &name, string &original)
generate a new name for the embedded variable
virtual void convert(vector< string > embed)