CARMA C++
AntennaParameters.h
1 #ifndef CARMA_PHASEMONITOR_ANTENNA_PARAMETERS_H
2 #define CARMA_PHASEMONITOR_ANTENNA_PARAMETERS_H
3 
4 /*
5  * $Id: AntennaParameters.h,v 1.4 2013/02/06 20:07:29 abeard Exp $
6  */
7 #include <iosfwd>
8 #include <string>
9 #include <vector>
10 
11 namespace carma
12 {
13  namespace phasemonitor
14  {
15 
16  class AntennaParameters
17  {
18  public:
19  AntennaParameters( std::string filename );
20  std::string getFilename();
21  void load( std::string filename );
22  void getParameters( float* offVs, float* cosses, float* sins, float* scales );
23  std::vector< float > getVoltageOffsets( ) const;
24  std::vector< float > getCosTerms( ) const;
25  std::vector< float > getSinTerms( ) const;
26  std::vector< float > getScales( ) const;
27  static const unsigned int channels = 4;
28 
29  private:
30  std::string _filename;
31  bool _loaded;
32  float _offV[4];
33  float _rotCos[4];
34  float _rotSin[4];
35  float _scale[4];
36  };
37 
38  } // phasemonitor
39 } // carma
40 
41 ::std::ostream& operator<<( ::std::ostream& os,
42  ::carma::phasemonitor::AntennaParameters& ap );
43 
44 #endif // CARMA_PHASEMONITOR_ANTENNA_PARAMETERS_H
std::ostream & operator<<(::std::ostream &os, const carma::dbms::Table &table)