CARMA C++
SpectralLine.h
Go to the documentation of this file.
1 
8 #ifndef CARMA_SERVICES_SPECTRALLINE_H
9 #define CARMA_SERVICES_SPECTRALLINE_H
10 
13 
14 namespace carma {
15 namespace services {
16 
21  class SpectralLine : public carma::services::CatalogEntry {
22  public:
23  SpectralLine();
24  virtual ~SpectralLine();
25 
26  void setFrequency(Frequency frequency);
27  void setTransition(std::string transition);
28 
29  Frequency getFrequency() const;
30  std::string getTransition() const;
31 
32  private:
33  Frequency frequency_;
34  std::string transition_;
35  // always include additional one for name
36  static const int NELEMENTS = 2;
37 
38  }; // end class SpectralLine
39 }
40 }
41 
42 #endif // CARMA_SERVICES_SPECTRALLINE_H
carma/services/Frequency.h Representation of Frequency.
SpectralLine is derived from CatalogEntry and is used to hold information for a particular entry from...
Definition: SpectralLine.h:21
The Frequency class can represent any frequency in any units.
Definition: Frequency.h:39