CARMA C++
AngularRate.h
Go to the documentation of this file.
1 // $Id: AngularRate.h,v 1.3 2005/06/06 20:37:52 mpound Exp $
2 
13 #ifndef CARMA_SERVICES_ANGULARRATE_H
14 #define CARMA_SERVICES_ANGULARRATE_H
15 
17 #include <iostream>
18 #include <string>
19 
20 namespace carma {
21  namespace services {
22 
38  public:
39 
45  AngularRate(double value,
46  const std::string& units);
47 
48 
50  virtual ~AngularRate();
51 
58  const AngularRate operator+(const AngularRate& ar) const;
59 
66  const AngularRate operator-(const AngularRate& ar) const;
67 
73 
79 
80  };
81 
85 std::ostream& operator<<(std::ostream& os,
87  }
88 }
89 
90 
91 #endif //CARMA_SERVICES_ANGULARRATE_H
The ConformableQuantity class can represent any quantity that can be expressed in many units...
AngularRate & operator+=(const AngularRate &ar)
Increment AngularRate.
virtual ~AngularRate()
Destructor.
const AngularRate operator-(const AngularRate &ar) const
Subtract two Angular rates.
The AngularRate class can represent an angular rate in any units.
Definition: AngularRate.h:37
const AngularRate operator+(const AngularRate &ar) const
Add two Angular rates.
AngularRate & operator-=(const AngularRate &ar)
Decrement AngularRate.
AngularRate(double value, const std::string &units)
Construct an AngularRate given a value and units.
Parent class for representations of quantities that can have conformable units, e.g.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the &lt;&lt; operator to allow, e.g.