11 #include <vapor/Metadata.h>
12 #include <vapor/MyBase.h>
13 #include <vapor/common.h>
68 virtual int OpenVariableRead(
69 size_t timestep,
string varname,
int reflevel=0,
int lod=0
76 virtual int CloseVariable() = 0;
100 virtual int ReadSlice(
float *slice) = 0;
122 size_t ts,
string varname,
int reflevel=0,
int lod=0)
const {
123 std::vector <string> v = GetVariableNames();
124 return((find(v.begin(), v.end(), varname)!=v.end())&&ts<GetNumTimeSteps());
141 virtual void GetLatLonExtents(
142 size_t ts,
double lon_exts[2],
double lat_exts[2]
145 virtual std::vector <string> GetVariables2DExcluded()
const = 0;
146 virtual std::vector <string> GetVariables3DExcluded()
const = 0;
151 #endif // _DCReader_h_
virtual bool VariableExists(size_t ts, string varname, int reflevel=0, int lod=0) const