00001 #ifndef CALENDAR_H
00002 #define CALENDAR_H
00003
00004 #include <fstream>
00005 #include <vector>
00006 #include <string>
00007 #include "event.h"
00008
00009 using namespace std;
00010
00021 class Calendar
00022 {
00023 public:
00024 Calendar();
00025 bool read( string filename );
00026 bool read( istream &in );
00027 bool write( string filename );
00028 bool write( ostream &out = cout );
00029 void print( ostream &out = cout );
00030 void synchronize( Calendar &e );
00031
00032 private:
00034 vector<Event> events;
00035
00036 void synchronize( vector<Event> &e1, vector<Event> &e2 );
00037
00038 };
00039
00040 #endif