5 #ifndef CARMA_SDP_AHW_PROCESSOR_H
6 #define CARMA_SDP_AHW_PROCESSOR_H
9 #include <carma/sdp/AHW_Output.h>
10 #include <carma/sdp/AHW_Utils.h>
17 #include <carma/monitor/DataflowSubsystem.h>
27 #include <boost/shared_ptr.hpp>
35 typedef std::map<carma::dbms::MonitorAggregateType, std::string> MonitorAggregateMap;
45 bool isComplete()
const;
46 void rename(
const std::string &suffix);
47 std::string print()
const;
48 std::vector<std::string> getNames()
const;
49 MonitorAggregateMap getMap()
const;
52 MonitorAggregateMap map_;
55 typedef std::map<carma::util::frameType, InputFileSet> InputFileSetMap;
72 const carma::util::CorrelatorType &corlType,
73 const std::string &inputDir,
74 const std::string &outputDir,
75 const std::string &recycleDir,
76 const std::vector<AHW_Output> &outputs,
77 const carma::monitor::DataflowSubsystem::Correlator *monitor);
110 InputFileSetMap scan_input_files();
111 MPValueMap read_mpdat_set(
const InputFileSet &fileSet)
const;
114 void close_current_obsblock();
116 const carma::util::CorrelatorType corlType_;
117 const std::string inputDir_;
118 const std::string outputDir_;
119 const std::string recycleDir_;
120 const std::vector<AHW_Output> outputs_;
121 const carma::monitor::DataflowSubsystem::Correlator *monitor_;
127 const int obsBlockLen_;
132 const MPWantedMap mpWanted_;
137 std::string currentAstroHdrFile_;
142 std::string currentObsBlockId_;
147 typedef boost::shared_ptr<LineBuffer> LineBufferPtr;
148 LineBufferPtr currentLineBuffer_;
158 std::vector<InputFileSet> currentInputRead_;
void reset()
Reset the AHW input and output directories.
Holds basic info on a monitor point value.
std::string getCorrelatorType() const
Get a string representation of the correlator type.
MonitorAggregateType
aggregate data type of the monitor[point,data file, table]
A class to create Astronomical Header files for a single type of integrated monitor data...
unsigned int frameType
Half second frames since Jan 1, 2000.
unsigned int run_single_iteration(const double elapsedTime, const double lastSleepTime)
Run a single iteration of the AstroHeaderWriter.
relationships between the monitor and dbms systems