50 _s =
dynamic_cast<Structure *
>(b) ;
53 string s = (string)
"File out netcdf, write_structure was passed a "
54 +
"variable that is not a structure" ;
69 vector<FONcBaseType *>::iterator i = _vars.begin() ;
70 vector<FONcBaseType *>::iterator e = _vars.end() ;
105 embed.push_back(
name() ) ;
106 Constructor::Vars_iter vi = _s->var_begin() ;
107 Constructor::Vars_iter ve = _s->var_end() ;
108 for( ; vi != ve; vi++ )
113 BESDEBUG(
"fonc",
"FONcStructure::convert - converting "
114 << bt->name() << endl ) ;
116 _vars.push_back( fbt ) ;
117 fbt->convert( embed ) ;
135 BESDEBUG(
"fonc",
"FONcStructure::define - defining "
137 vector<FONcBaseType *>::const_iterator i = _vars.begin() ;
138 vector<FONcBaseType *>::const_iterator e = _vars.end() ;
142 BESDEBUG(
"fonc",
"defining " << fbt->
name() << endl ) ;
148 BESDEBUG(
"fonc",
"FONcStructure::define - done defining "
163 BESDEBUG(
"fonc",
"FONcStructure::write - writing "
165 vector<FONcBaseType *>::const_iterator i = _vars.begin() ;
166 vector<FONcBaseType *>::const_iterator e = _vars.end() ;
172 BESDEBUG(
"fonc",
"FONcStructure::define - done writing "
198 << (
void *)
this <<
")" << endl ;
202 vector<FONcBaseType *>::const_iterator i = _vars.begin() ;
203 vector<FONcBaseType *>::const_iterator e = _vars.end() ;
virtual void define(int ncid)
Define the members of the structure in the netcdf file.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
exception thrown if inernal error encountered
virtual void dump(ostream &strm) const =0
dump the contents of this object to the specified ostream
FONcStructure(BaseType *b)
Constructor for FONcStructure that takes a DAP Structure.
virtual void convert(vector< string > embed)
Creates the FONc objects for each variable of the structure.
virtual void define(int ncid)
Define the variable in the netcdf file.
static ostream & LMarg(ostream &strm)
virtual ~FONcStructure()
Destructor that cleans up the structure.
virtual void write(int ncid)
write the member variables of the structure to the netcdf file
A DAP BaseType with file out netcdf information included.
virtual string name()
Returns the name of the structure.
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
static FONcBaseType * convert(BaseType *v)
creates a FONc object for the given DAP object
virtual void convert(vector< string > embed)