CARMA C++
SimInfo.h
1 #ifndef CARMA_CORRELATOR_OBSRECORD2_SIMINFO_H
2 #define CARMA_CORRELATOR_OBSRECORD2_SIMINFO_H
3 
4 #include <string>
5 
6 #include <cobra/CorrelatorDelayCorrection.h>
7 
8 #include "carma/util/PthreadRWLock.h"
9 
10 
11 namespace carma {
12 namespace correlator {
13 namespace obsRecord2 {
14 
15 
16 class SimInfo {
17  public:
18  SimInfo( const ::std::string & inifile,
19  const ::std::string & bwText,
20  const ::std::string & sourceName,
21  const cobra::CorrelatorInterpolatorSamples & samps,
22  float dcFreq,
23  bool dcSbIsUpper,
24  bool bdcEnabled );
25 
26  virtual ~SimInfo( );
27 
28  ::std::string getInifile( ) const;
29 
30  void setInfo(
31  const ::std::string * bwText,
32  const ::std::string * sourceName,
33  const cobra::CorrelatorInterpolatorSamples * delays,
34  const float * dcFreq,
35  const bool * dcSbIsUpper,
36  const bool * bdcEnabled );
37 
38  void getInfo(
39  ::std::string * bwText,
40  ::std::string * sourceName,
41  cobra::CorrelatorInterpolatorSamples * delays,
42  float * dcFreq,
43  bool * dcSbIsUpper,
44  bool * bdcEnabled ) const;
45 
46  private:
47  const ::std::string inifile_;
48 
49  mutable util::PthreadRWLock guard_;
50  ::std::string bwText_;
51  ::std::string sourceName_;
52  cobra::CorrelatorInterpolatorSamples samps_;
53  float dcFreq_;
54  bool dcSbIsUpper_;
55  bool bdcEnabled_;
56 };
57 
58 
59 } // namespace carma::correlator::obsRecord2
60 } // namespace carma::correlator
61 } // namespace carma
62 
63 
64 #endif