// includes #include "StudentInfo.h" // Default constructor StudentInfo::StudentInfo() { // initialize all string variables to blank space name = phoneNumber = email = addressLine1 = addressLine2 = city = state= zipcode = other = ""; } //////////////////////////////////////////////////////////////// // Set the name of the student // // Parameters: // const string newName: the new name of the student // // Pre: no new name has been set // // Post: new name set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetName(const string newName) { name = newName; } //////////////////////////////////////////////////////////////// // Set the Phone Number of the student // // Parameters: // const string newPhone: the new Phone Number of the student // // Pre: no new Phone Number has been set // // Post: new Phone Number set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetPhoneNumber(const string newPhone){ phoneNumber = newPhone; } //////////////////////////////////////////////////////////////// // Set the Email of the student // // Parameters: // const string newEmail: the new Email of the student // // Pre: no new Email has been set // // Post: new Email set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetEmail(const string newEmail){ email = newEmail; } //////////////////////////////////////////////////////////////// // Set the AddL1 of the student // // Parameters: // const string newAddL1: the new AddL1 of the student // // Pre: no new AddL1 has been set // // Post: new AddL1 set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetAddL1(const string newAddL1){ addressLine1=newAddL1; } //////////////////////////////////////////////////////////////// // Set the AddL2 of the student // // Parameters: // const string newAddL2: the new AddL2 of the student // // Pre: no new AddL2 has been set // // Post: new AddL2 set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetAddL2(const string newAddL2){ addressLine2 = newAddL2; } //////////////////////////////////////////////////////////////// // Set the City of the student // // Parameters: // const string newCity: the new City of the student // // Pre: no new City has been set // // Post: new City set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetCity(const string newCity) { city = newCity; } //////////////////////////////////////////////////////////////// // Set the State of the student // // Parameters: // const string newState: the new State of the student // // Pre: no new State has been set // // Post: new State set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetState(const string newState) { state = newState; } //////////////////////////////////////////////////////////////// // Set the Zipcode of the student // // Parameters: // const string newZipcode: the new Zipcode of the student // // Pre: no new Zipcode has been set // // Post: new Zipcode set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetZipcode(const string newZip) { zipcode = newZip; } //////////////////////////////////////////////////////////////// // Set the Other information of the student // // Parameters: // const string newOther: the new Other of the student // // Pre: no new Other has been set // // Post: new Other set // // Returns: none // // Called by: Controller // Calls: none // void StudentInfo::SetOther(const string newOther) { other = newOther; } //////////////////////////////////////////////////////////////// // Get the other information // // Parameters: // none // // Pre: no other has been returned // // Post: other returned // // Returns: other // // Called by: Controller // Calls: none // string StudentInfo::GetOther() const { return other; } //////////////////////////////////////////////////////////////// // Get the zipcode of the student // // Parameters: // none // // Pre: no zipcode has been returned // // Post: zipcode returned // // Returns: zipcode // // Called by: Controller // Calls: none // string StudentInfo::GetZipcode() const { return zipcode; } //////////////////////////////////////////////////////////////// // Get the state of the student // // Parameters: // none // // Pre: no state has been returned // // Post: state returned // // Returns: state // // Called by: Controller // Calls: none // string StudentInfo::GetState() const { return state; } //////////////////////////////////////////////////////////////// // Get the city of the student // // Parameters: // none // // Pre: no city has been returned // // Post: city returned // // Returns: city // // Called by: Controller // Calls: none // string StudentInfo::GetCity() const { return city; } //////////////////////////////////////////////////////////////// // Get the AddL2 of the student // // Parameters: // none // // Pre: no AddL2 has been returned // // Post: AddL2 returned // // Returns: AddL2 // // Called by: Controller // Calls: none // string StudentInfo::GetAddL2() const { return addressLine2; } //////////////////////////////////////////////////////////////// // Get the AddL1 of the student // // Parameters: // none // // Pre: no AddL1 has been returned // // Post: AddL1 returned // // Returns: AddL1 // // Called by: Controller // Calls: none // string StudentInfo::GetAddL1() const { return addressLine1; } //////////////////////////////////////////////////////////////// // Get the Email of the student // // Parameters: // none // // Pre: no Email has been returned // // Post: Email returned // // Returns: Email // // Called by: Controller // Calls: none // string StudentInfo::GetEmail() const { return email; } //////////////////////////////////////////////////////////////// // Get the PhoneNumber of the student // // Parameters: // none // // Pre: no PhoneNumber has been returned // // Post: PhoneNumber returned // // Returns: PhoneNumber // // Called by: Controller // Calls: none // string StudentInfo::GetPhoneNumber() const { return phoneNumber; } //////////////////////////////////////////////////////////////// // Get the Name of the student // // Parameters: // none // // Pre: no Name has been returned // // Post: Name returned // // Returns: Name // // Called by: Controller // Calls: none // string StudentInfo::GetName() const { return name; }