//***************************************************************** // SPECIFICATION FILE (Entry.h) // This file contains the specification of the Entry ADT, // which has two contained classes, Name and Time //***************************************************************** #include "Time.h" #include "Name.h" #include #include // ostringstream class Entry { public: string NameStr() const; // Returns a string made up of first name, blank, last name // Postcondition: // Return value is first name of Name object, blank, // and last name of Name object string TimeStr() const; // Returns a string made up of hour, colon, minutes // Post condition: // Return value is minutes from Time object, colon, and // seconds of Time object Entry(); // Default constructor // Postcondition: // Entry object has been constructed Entry( /* in */ string firstName, // First name /* in */ string middleName, // Middle name /* in */ string lastName, // Last name /* in */ int initHours, // Hours /* in */ int initMinutes, // Minutes /* in */ int initSeconds ); // Seconds // Parameterized constructor // Postcondtion: // Entry object has been constructed with firstName, // middleName, and lastName as arguments to Name // parameterized constructor; Time object // initHours, initMinutes, and initSeconds as arguments // to Time paraeterized constructor private: Name name; Time time; };