HOPS
HOPS class reference
MHO_FringeData.hh
Go to the documentation of this file.
1 #ifndef MHO_FringeData_HH__
2 #define MHO_FringeData_HH__
3 
4 //global messaging util
5 #include "MHO_Message.hh"
6 
7 //data/config passing classes
8 #include "MHO_ContainerStore.hh"
9 #include "MHO_ParameterStore.hh"
10 //needed to read hops files and extract objects from scan dir
11 #include "MHO_ScanDataStore.hh"
12 
13 #include "MHO_JSONHeaderWrapper.hh"
14 
15 namespace hops
16 {
17 
30 {
31  public:
33  virtual ~MHO_FringeData(){};
34 
41 
48 
55 
61  mho_json GetVex() const { return fScanStore.GetRootFileData(); }
62 
69 
76 
77  //TODO remove this hack in favor of 'plotting'/'output' visitors
84 
90  int WriteOutput();
91 
92  protected:
99  int WriteDataObjects(std::string filename);
100 
114  std::string ConstructFrngFileName(const std::string directory, const std::string& baseline,
115  const std::string& ref_station, const std::string& rem_station,
116  const std::string& frequency_group, const std::string& polprod,
117  const std::string& root_code, int seq_no);
118 
132  std::string ConstructTempFileName(const std::string directory, const std::string& baseline,
133  const std::string& ref_station, const std::string& rem_station,
134  const std::string& frequency_group, const std::string& polprod,
135  const std::string& root_code, const std::string& temp_id);
136 
137  //data objects
138  MHO_ParameterStore fParameterStore; //stores various parameters using string keys
139  MHO_ScanDataStore fScanStore; //provides access to data associated with this scan
140  MHO_ContainerStore fContainerStore; //stores data containers for in-use data
141 
142  // mho_json fVexInfo;
145 
146  //plot data storage
148 };
149 
150 } // namespace hops
151 
152 #endif
nlohmann::json mho_json
Definition: MHO_JSONHeaderWrapper.hh:5
Class MHO_ContainerStore.
Definition: MHO_ContainerStore.hh:32
Class MHO_FringeData.
Definition: MHO_FringeData.hh:30
MHO_ParameterStore * GetParameterStore()
Getter for parameter store.
Definition: MHO_FringeData.hh:40
MHO_ScanDataStore fScanStore
Definition: MHO_FringeData.hh:139
mho_json & GetControlFormat()
access to the control format and parsed control statements (as json object)
Definition: MHO_FringeData.hh:68
mho_json fPlotData
Definition: MHO_FringeData.hh:147
mho_json fControlStatements
Definition: MHO_FringeData.hh:144
mho_json fControlFormat
Definition: MHO_FringeData.hh:143
MHO_ContainerStore fContainerStore
Definition: MHO_FringeData.hh:140
MHO_ScanDataStore * GetScanDataStore()
Getter for scan data store.
Definition: MHO_FringeData.hh:54
mho_json & GetControlStatements()
Getter for parsed control statements.
Definition: MHO_FringeData.hh:75
mho_json & GetPlotData()
Getter for plot data.
Definition: MHO_FringeData.hh:83
MHO_ContainerStore * GetContainerStore()
Getter for container store.
Definition: MHO_FringeData.hh:47
virtual ~MHO_FringeData()
Definition: MHO_FringeData.hh:33
int WriteDataObjects(std::string filename)
Writes data objects to a file with given filename.
Definition: MHO_FringeData.cc:106
MHO_ParameterStore fParameterStore
Definition: MHO_FringeData.hh:138
MHO_FringeData()
Definition: MHO_FringeData.hh:32
std::string ConstructFrngFileName(const std::string directory, const std::string &baseline, const std::string &ref_station, const std::string &rem_station, const std::string &frequency_group, const std::string &polprod, const std::string &root_code, int seq_no)
Constructs a fringe file name string from given parameters.
Definition: MHO_FringeData.cc:206
mho_json GetVex() const
Getter for vex data (as json object)
Definition: MHO_FringeData.hh:61
int WriteOutput()
Writes output data to disk with a temporary unique name and renames it afterwards.
Definition: MHO_FringeData.cc:13
std::string ConstructTempFileName(const std::string directory, const std::string &baseline, const std::string &ref_station, const std::string &rem_station, const std::string &frequency_group, const std::string &polprod, const std::string &root_code, const std::string &temp_id)
Constructs a temporary file name using provided parameters and concatenation.
Definition: MHO_FringeData.cc:219
Class MHO_ParameterStore.
Definition: MHO_ParameterStore.hh:52
Class to catalog and organize data files that are associated with a single scan, and handle retrieval...
Definition: MHO_ScanDataStore.hh:28
mho_json GetRootFileData() const
Getter for root file data (as json)
Definition: MHO_ScanDataStore.cc:181
int baseline
Definition: fourfit3.c:62
Definition: MHO_ChannelLabeler.hh:17