CARMA C++
CorrDesignation.h
1 #ifndef CARMA_MONITOR_CORRDESIGNATION_H
2 #define CARMA_MONITOR_CORRDESIGNATION_H
3 
4 #include "carma/monitor/ControlCorrelEnum.h"
6 //#include "carma/util/ErrorException.h"
7 
8 typedef carma::monitor::CorrelatorDesignationMonitorPointEnum CorrDesignation;
9 typedef enum CorrDesignation::CORRELATORDESIGNATION MonitorCorrelatorDesignation;
10 #define CORRELATOR_DESIGNATION_MP correlatorDesignation
11 
12 
13 namespace carma {
14 namespace monitor {
15 
16 inline
17 carma::util::CorrelatorType
18 corrDesToCorrType( const MonitorCorrelatorDesignation cde )
19 {
20  return static_cast<carma::util::CorrelatorType>(cde);
21 };
22 
23 inline
24 MonitorCorrelatorDesignation
25 corrTypeToCorrDes( const carma::util::CorrelatorType ct )
26 {
27  return static_cast<MonitorCorrelatorDesignation>(ct);
28 };
29 
30 #if 0
31 inline
32 int
33 corrTypeToSubarrayNo( const carma::util::CorrelatorType ct )
34 {
35  ThrowCarmaError("corrTypeToSubarrayNo() is an erroneous construct -- subarrays don't imply any particular correlator");
36  return 0;
37 };
38 
39 inline
40 int
41 corrDesToSubarrayNo( const MonitorCorrelatorDesignation cd )
42 {
43  ThrowCarmaError("corrDesToSubarrayNo() is an erroneous construct -- subarrays don't imply any particular correlator");
44  return 0;
45 }
46 #endif
47 
48 } // namespace carma::monitor
49 } // namespace carma
50 
51 
52 #endif
Class to provide information about CARMA Correlator capabilities.