CARMA C++
AHW_Utils.h
1 /*
2  * AHW Utilities Library
3  */
4 
5 #ifndef AHW_UTILS_H
6 #define AHW_UTILS_H
7 
10 #include <carma/sdp/AHW_Output.h>
11 #include <carma/monitor/types.h>
12 #include <carma/util/types.h>
13 #include <carma/util/CorrelatorType.h>
14 
15 #include <string>
16 #include <vector>
17 #include <map>
18 
19 namespace carma {
20 namespace sdp {
21 
22 typedef std::vector<std::string> StringVector;
23 typedef std::map<std::string, StringVector> StringVectorMap;
24 
25 std::vector<std::string> findAllSubstitutions(const std::string &mp);
26 std::vector<std::string> getValidSubstitutions();
27 
28 typedef std::map<std::string, MonitorPointValuePtr> MPValueMap;
29 typedef std::map<carma::monitor::tagIDType, std::string> MPWantedMap;
30 
31 
32 MPWantedMap createWantedMap(const std::vector<carma::sdp::AHW_Output> &outputs);
33 
34 AstroHeaderElementMap createAstroHeaderRecord(
35  const carma::util::CorrelatorType &corlType,
36  const carma::util::frameType &frameCount,
37  const std::vector<carma::sdp::AHW_Output> &outputs,
38  const MPValueMap &mpValues);
39 
40 // 2011 Jan 26 15:38:20.00 UTC
41 #define NEWAHWVERSIONDATE 698743000
42 // 2011 Mar 11 23:48:20.00 UTC
43 #define SECONDNEWAHWVERSIONDATE 706405000
44 // 2011 Sep 30 17:30:20.00 UTC
45 #define THIRDNEWAHVERSIONDATE 741436000
46 // 2012 Feb 01 20:04:35.00 UTC
47 #define FOURTHNEWAHVERSIONDATE 762883750
48 
49 } // namespace carma::sdp
50 } // namespace carma
51 
52 #endif /* AHW_UTILS_H */
53 
54 /* vim: set ts=4 sts=4 sw=4 noet tw=92: */
Holds basic info on a monitor point value.
unsigned int frameType
Half second frames since Jan 1, 2000.
Definition: types.h:29
type definitions for monitor system
Various type definitions for util classes.
A class to hold the representation of an astronomical header data element.