VAPoR  0.1
WaveletBlock3DBufWriter.h
Go to the documentation of this file.
1 //
2 // $Id$
3 //
4 
5 
6 #ifndef _WavletBlock3DBufWriter_h_
7 #define _WavletBlock3DBufWriter_h_
8 
9 #include <vapor/WaveletBlock3DWriter.h>
10 #include <vapor/WaveletBlock3DRegionWriter.h>
11 
12 namespace VAPoR {
13 
14 //
23 //
25 
26 public:
27 
35  //
37  const MetadataVDC &metadata
38  );
39 
47  //
49  const string &metafile
50  );
51 
52  virtual ~WaveletBlock3DBufWriter();
53 
54 
77  virtual int OpenVariableWrite(
78  size_t timestep,
79  const char *varname,
80  int reflevel = -1,
81  int lod = -1
82  );
83 
84  virtual int CloseVariable();
85 
106  int WriteSlice(const float *slice);
107 
108  virtual const float *GetDataRange() const { return (_dataRange); }
109 
110 protected:
111 
112 private:
113 
114  int slice_cntr_c;
115 
116  float *buf_c;
117  float *bufptr_c;
118 
119  int is_open_c;
120 
121  void _WaveletBlock3DBufWriter();
122 
123  //
124  // Need this stuff to support writing 2D data. It's a hideous hack
125  //
126  int _OpenVariableWrite2D(size_t timestep, const char *varname, int reflevel);
127  int _CloseVariable2D();
128  int _WriteSlice2D(const float *slice);
129  WaveletBlock3DRegionWriter *_writer2D;
130  VarType_T _vartype;
131 
132 
133 
134 };
135 
136 }
137 
138 #endif // WaveletBlock3DBufWriter
#define VDF_API
Definition: common.h:61
virtual const float * GetDataRange() const
A class for managing data set metadata.
Definition: MetadataVDC.h:92
A slab writer for VDF files.
A subregion write for VDC files.
A slice-based reader for VDF files.