HOPS
HOPS class reference
MHO_DiFXInputProcessor.hh
Go to the documentation of this file.
1 #ifndef MHO_DiFXInputProcessor_HH__
2 #define MHO_DiFXInputProcessor_HH__
3 
5 #include "MHO_Message.hh"
6 
7 #include "difxio/difx_input.h"
8 
9 namespace hops
10 {
11 
24 {
25  public:
27  virtual ~MHO_DiFXInputProcessor();
28 
34  void LoadDiFXInputFile(std::string filename);
40  void ConvertToJSON(mho_json& input);
41 
42  private:
48  void ExtractBaseStructQuantities(mho_json& input);
49 
56  mho_json ExtractConfigQuantities(int n);
57 
64  mho_json ExtractFreqQuantities(int n);
65 
72  mho_json ExtractAntennaQuantities(int n);
73 
80  mho_json ExtractScanQuantities(int n);
81 
88  mho_json ExtractSourceQuantities(int n);
89 
96  mho_json ExtractEOPQuantities(int n);
97 
104  mho_json ExtractDatastreamQuantities(int n);
105 
112  mho_json ExtractBaselineQuantities(int n);
113 
120  mho_json ExtractDifxPolyModel(DifxPolyModel* m);
121 
128  std::string GetAntennaMountTypeString(AntennaMountType type);
129 
136  std::string GetAntennaSiteTypeString(AntennaSiteType type);
137 
138  DifxInput* fD;
139  std::string fFilename;
140 };
141 
142 } // namespace hops
143 
144 #endif
nlohmann::json mho_json
Definition: MHO_JSONHeaderWrapper.hh:5
Class MHO_DiFXInputProcessor.
Definition: MHO_DiFXInputProcessor.hh:24
MHO_DiFXInputProcessor()
Definition: MHO_DiFXInputProcessor.cc:7
void ConvertToJSON(mho_json &input)
Converts DiFX input data to JSON format and populates the provided mho_json object.
Definition: MHO_DiFXInputProcessor.cc:34
virtual ~MHO_DiFXInputProcessor()
Definition: MHO_DiFXInputProcessor.cc:9
void LoadDiFXInputFile(std::string filename)
Loads DiFX .input file and stores it in member variable (fD)
Definition: MHO_DiFXInputProcessor.cc:17
Definition: MHO_ChannelLabeler.hh:17