// Organizer.h #ifndef ORGANIZER_H #define ORGANIZER_H //////////////////////////////////////////////////////////////// // this class stores Student information as a student object. // it stores the name, phone #, email address, address, apartment // city, state, and zip code, and also other information. Each object // is then stored in the organizer class in the Student array. // This class contains funcions to return the data and to update the // data as necessary // class Student{ private: string name; // private data members string phone; string email; string address1; string address2; string city; string state; string zip; string other; public: Student(); // constructor void update_name( string name1 ); string access_name(Student std); void update_phone( string phone1 ); string access_phone( Student std ); void update_email( string email1 ); string access_email(Student std); void update_address1( string address1a ); string access_address1(Student std); void update_address2( string address2a ); string access_address2(Student std); void update_city( string city1 ); string access_city(Student std); void update_state( string state1 ); string access_state(Student std); void update_zip( string zip1 ); string access_zip(Student std); void update_other( string other1 ); string access_other(Student std); }; //////////////////////////////////////////////////////////////// // This class stores item information as Multimedia objects. // The objects are then stored in teh Organizer class so taht they // can be accessed later. The class contains data members to store // strings of items, media, by, owner, price, and availability // class Multimedia{ private: string item; // data members string media; string by; string owner; string price; string avail; public: Multimedia(); void update_item( string item1 ); string access_item(Multimedia multi); void update_media( string media1 ); string access_media(Multimedia multi); void update_by( string by1 ); string access_by(Multimedia multi); void update_owner( string owner1 ); string access_owner(Multimedia multi); void update_price( string price1 ); string access_price(Multimedia multi); void update_avail( string avail1 ); string access_avail(Multimedia multi); }; //////////////////////////////////////////////////////////////// // this class contains two arrays to store student and multimedia // objects. The class also contain data members to help keep track // of the position of teh objects added and number of objects added // to each of teh arrays. When an object is deleted from teh array // a position is left blank and then filled in later by objects added // to the arrays. // class Organizer{ public: Organizer(); // constructor void update_array(); void update_array1(); //void push_array( int i ); //void push_array1( int i ); bool delete1( string email ); bool print_email( string email, ofstream &outfile ); bool print_students( ofstream &outfile ); bool print_items( ofstream &outfile ); bool add_student( Student std ); bool add_item( Multimedia multi ); private: Student array[100]; // array of student objects Multimedia array1[100]; // array of multimedia objects int count; // keeps track of objects in array int count1; // keeps track of objects in array1 int deleted; // keeps track of the # of objects deleted int deleted1; int add; int add1; }; #endif