/***************************************************************************** File: Range.hpp Author: Keith Alcock Comment: Describes a(n) Range ****************************************************************************** Include guard *****************************************************************************/ #if !defined(RANGE_INCLUDED) # define RANGE_INCLUDED 1 /***************************************************************************** Revision control system *****************************************************************************/ #define PVCS_RANGE_H \ "@(#)$Workfile: Range.h$\n" \ "@(#)$Revision: 1$\n" \ "@(#) $Date: 01/31/07 18:02:14$\n" \ "@(#)---------:" /***************************************************************************** Defines *****************************************************************************/ #define TEST_RANGE_OFF 0 #define TEST_RANGE_ON 1 #if !defined(TEST_RANGE) # define TEST_RANGE TEST_RANGE_OFF #endif /***************************************************************************** Includes *****************************************************************************/ #include // ostream /***************************************************************************** Range *****************************************************************************/ class Range { protected: int _min; int _max; public: Range(int min,int max); int min() const; int max() const; bool operator==(const Range &range); }; ostream &operator<<(ostream &os,const Range &range); /***************************************************************************** Cleanup *****************************************************************************/ #endif /****************************************************************************/