#ifndef _computer_h_ #define _computer_h_ // Each computer has the capability of adding an MP3 file, printing // its MP3 files, determining if a song MP3 is on the computer, or // finding the songs by a given artist. #include #include #include "mp3.h" class Computer { public: Computer(double speed) : speed_(speed) { } bool add_mp3(const string& artist, const string& title); void print_mp3s() const; bool has_song(const string& artist, const string& title, MP3& requested_song) const; list songs_by_artist(const string& artist) const; double getSpeed() const { return speed_; } private: double speed_; // network connection speed in bytes per second list mp3s_; // the songs on the computer; could be a vector just as easily }; #endif