00001 #ifndef STUDENT_H 00002 #define STUDENT_H 00003 00004 #include <sstream> 00005 #include "date.h" 00006 00016 class Student 00017 { 00018 00019 friend ostream &operator<<( ostream &out, const Student &student ); 00020 friend istream &operator>>( istream &in, Student &student ); 00021 00022 public: 00023 Student(); 00024 void setName( string name ); 00025 void setMajor( string major ); 00026 void setLevel( string level ); 00027 void setDate( Date date ); 00028 string getName() const; 00029 string getMajor() const; 00030 string getLevel() const; 00031 Date getDate() const; 00032 bool operator<( const Student &student ) const; 00033 bool operator>( const Student &student ) const; 00034 void read( istream &in ); 00035 void write( ostream &out ) const; 00036 00037 private: 00039 string name; 00041 string major; 00043 string level; 00045 Date date; 00046 00047 double getPriority() const; 00048 00049 }; // Student class 00050 00051 #endif 00052