VAPoR  0.1
VDCFactory.h
Go to the documentation of this file.
1 //
2 // $Id$
3 //
4 
5 
6 #ifndef _VDCFactory_h_
7 #define _VDCFactory_h_
8 
9 #include <vector>
10 
11 #include <cstdio>
12 #include <vapor/MyBase.h>
13 #include <vapor/MetadataVDC.h>
14 
15 namespace VAPoR {
16 
17 //
24 //
25 
27 public:
28 
29  VDCFactory(bool vdc2 = true);
30  int Parse(int *argc, char **argv);
31  void RemoveOptions(std::vector <string> options) {
32  _removeOptions = options;
33  }
34  MetadataVDC *New(const size_t dims[3]) const;
35  void Usage (FILE *fp) ;
36 
37 private:
39  bool _vdc2;
40 
42  int _level;
43  int _nfilter;
44  int _nlifting;
45  std::vector <int> _cratios;
46  string _wname;
47  std::vector <string> _vars3d;
48  std::vector <string> _vars2dxy;
49  std::vector <string> _vars2dxz;
50  std::vector <string> _vars2dyz;
51  float _missing;
52  string _comment;
53  std::vector <int> _order;
54  std::vector <int> _periodic;
55  int _numts;
56  double _startt;
57  double _deltat;
58  string _gridtype;
59  std::string _usertimes;
60  std::string _xcoords;
61  std::string _ycoords;
62  std::string _zcoords;
63  std::string _mapprojection;
64  std::string _coordsystem;
65  std::vector <float> _extents;
66  std::vector <string> _removeOptions;
67 
68  int _ReadDblVec(string path, vector <double> &vec) const;
69 
70 };
71 };
72 
73 #endif
#define VDF_API
Definition: common.h:61
Creates a MetadaVDC object.
Definition: VDCFactory.h:26
void RemoveOptions(std::vector< string > options)
Definition: VDCFactory.h:31
A class for managing data set metadata.
Definition: MetadataVDC.h:92
VetsUtil base class.
Definition: MyBase.h:68