#ifndef STUDENT_H #define STUDENT_H #include #include #include #include #include using namespace std; class student{ private: bool emailAvailable; //Was the students e-mail deleted ? bool nameAvailable; //Did student provide name ? bool address1Available; //Is the address listed ? bool address2Available; bool phoneAvailable; bool cityAvailable; //Was city listed ? State listed ? Zipcode? bool stateAvailable; //Is the state availble bool zipcodeAvailable; //Is the zipcode available ? bool miscAvailable; //Is there any miscellaneous information bool resetPrev; //Was the information reset previously string email; //E-mail address of student string addyLine1; //1st line of address holding road the student lives on string addyLine2; //2nd line of address holding apartment/house number string city; //City student lives in string state; //State student lives in string other; //Miscellaneous information string studentName; //Student's name unsigned int phoneNumber1; //Student's first half of phone number unsigned int areaCode; //Student's area code unsigned int phoneNumber2; //Student's second half of ph one number unsigned int zipcode; //Zipcode of student public: student(); //Constructor string getAddyLine1()const; //Returns the address on Line 1 string getAddyLine2()const; //Returns the address on line 2 string getCity()const; //Returns the city string getState() const; //Returns the state string getOther() const; //Returns miscellaneous information string getName() const; //Returns the name of the student string getEmail() const; //Returns a string value of the e-mail address unsigned int getNumber1(); //Returns the first half of the phone number unsigned int getNumber2(); //Returns the second half of the phone number unsigned int getAreaCode(); //Returns the area code unsigned int getZipcode(); //Returns the zipcode bool deleteEmail(ofstream&, ifstream&); //Used to delete student bool setPhoneNumberAvailable(bool); bool setEmailAvailable(bool); //Was the students e-mail deleted ? bool setNameAvailable(bool); //Did student provide name ? bool setAddress1Available(bool);//Is the address listed ? bool setAddress2Available(bool result); bool setCityAvailable(bool); //Was city listed ? State listed ? Zipcode? bool setStateAvailable(bool); //Is the state availble bool setZipcodeAvailable(bool); //Is the zipcode available ? bool setMiscAvailable(bool); //Is there any miscellaneous information bool setName(string); //Set the name bool setNumber(unsigned int, ifstream&); //Set the number bool setEmail(string); //Set the e-mail bool setAddyLn1(string); //Set the first line of the address bool setAddyLn2(string); //Set the second line of the adderss bool setCity(string); //Set the city bool setState(string); //Set the state bool setZipcode(unsigned int); //Set the zipcode bool setOther(string); //Set the "other" information bool phonePresent() const; //Reporter function to check phone bool emailPresent()const; //Reporter function to check e-mail bool namePresent()const; //Reporter function to check name bool address1Present() const; //Reporter function to check address bool address2Present() const; bool cityPresent()const; //Reporter function to check city bool statePresent()const; //Reporter function to check state bool zipcodePresent()const; //Reporter function to check zipcode bool miscPresent()const; //Reporter function to check miscellaneous info void resetInfo(); //Reset the values for the student to their intial state void setReset(bool); // Set the reset variable bool returnReset(); //Returns the value of resetPrev ~student(); }; #endif