00001 #ifndef PETS_H
00002 #define PETS_H
00003
00004 #include <iostream>
00005 #include <vector>
00006 #include <string>
00007 #include <typeinfo>
00008 #include <cmath>
00009 #include "filenotfound.h"
00010 #include "pet.h"
00011 #include "dog.h"
00012 #include "cat.h"
00013
00014 using namespace std;
00015
00026 class Pets
00027 {
00028
00029 public:
00030 Pets();
00031 Pets( string filename ) throw ( out_of_range, FileNotFound );
00032 void print( ostream &out = cout );
00033 void read( string filename ) throw ( out_of_range, FileNotFound );
00034 double getTotalAge();
00035 ~Pets();
00036
00037 private:
00038 vector<Pet *> pets;
00039
00040 };
00041
00042 #endif // PETS_H
00043