VAPoR  0.1
WrfVDFcreator.h
Go to the documentation of this file.
1 #ifndef WRFVDFCREATE_H
2 #define WRFVDFCREATE_H
3 
4 #include <iostream>
5 #include <cstdio>
6 #include <vapor/OptionParser.h>
7 #include <vapor/MetadataVDC.h>
8 #include <vapor/DCReaderWRF.h>
9 #include <vapor/VDCFactory.h>
10 
11 
12 namespace VAPoR {
13 
15 public:
16  wrfvdfcreate();
17  virtual ~wrfvdfcreate();
18 int launchVdfCreate(int argc, char **argv);
19 
20 private:
21  string _progname;
22 
23  //
24  // command line options passed to launchVdfCreate
25  //
26  vector <string> _vars;
27  vector <string> _dervars;
33 
34 
35  void Usage(VetsUtil::OptionParser &op, const char * msg);
36  void populateVariables(std::vector<std::string> &vars,
37  std::vector<std::string> candidate_vars,
38  MetadataVDC *file,
39  int (MetadataVDC::*SetVarFunction)(const std::vector<std::string>&)
40  );
41  char ** argv_merge(
42  int argc1, char **argv1, int argc2, char **argv2,
43  int &newargc
44  );
45 
46  void writeToScreen(DCReaderWRF *DCdata, MetadataVDC *file);
47  MetadataVDC *CreateMetadataVDC(const VDCFactory &vdcf,
48  const DCReaderWRF *DCdata);
49 
50 
51 };
52 };
53 
54 #endif
#define VDF_API
Definition: common.h:61
Creates a MetadaVDC object.
Definition: VDCFactory.h:26
A class for managing data set metadata.
Definition: MetadataVDC.h:92
VetsUtil base class.
Definition: MyBase.h:68