/* This file contains the interface for class Temperature.
 * ...
 ***********************************************************/

#ifndef TEMPERATURE
#define TEMPERATURE

#include <iostream.h>                  // istream, ostream

class Temperature
{
 public:                               // The class interface
   Temperature();
   Temperature(double initialDegrees, char initialScale);

	double Degrees() const;
	char Scale() const;

   Temperature Fahrenheit() const;
   Temperature Celsius() const;
   Temperature Kelvin() const;

   void Print(ostream & out) const;
   void Read(istream & in);

	bool operator==(const Temperature & rightOperand) const;
	bool operator!=(const Temperature & rightOperand) const;
   bool operator<(const Temperature & rightOperand) const;
   bool operator>(const Temperature & rightOperand) const;
   bool operator<=(const Temperature & rightOperand) const;
   bool operator>=(const Temperature & rightOperand) const;

   Temperature operator+(int rightOperand) const;
   Temperature operator-(int rightOperand) const;

 private:                           // The hidden details
   double myDegrees;
   char myScale;                    // 'F', 'C' or 'K'
};

// ... Definitions of inline functions, operator<<, and
       operator>> go here ...

#endif

