CARMA C++
Star.h
Go to the documentation of this file.
1 
9 #ifndef CARMA_SERVICES_STAR_H
10 #define CARMA_SERVICES_STAR_H
11 
13 
14 namespace carma {
15 namespace services {
16 
21  class Star : public carma::services::CatalogEntry {
22  public:
23 
25  Star();
26 
28  virtual ~Star();
29 
33  double getMagnitude() const {
34  return magnitude_;
35  }
36 
41  void setMagnitude(double magnitude ) {
42  magnitude_ = magnitude;
43  }
44 
45  private:
46  double magnitude_;
47 
48  };
49 
50 } // end namespace services
51 } // end namespace carma
52 
53 #endif // CARMA_SERVICES_STAR_H
double getMagnitude() const
Definition: Star.h:33
Star()
Default constructor.
virtual ~Star()
Destructor.
void setMagnitude(double magnitude)
Set the magnitude of this star.
Definition: Star.h:41
Star holds the name and magnitude of a star.
Definition: Star.h:21