event.cc File Reference

#include "event.h"

Functions

ostream & operator<< (ostream &out, const Event &e)
istream & operator>> (istream &in, Event &e) throw ( invalid_argument )

Function Documentation

ostream& operator<< ( ostream &  out,
const Event e 
)

Inserts an Event object in the internal format into the output stream, and returns the modified output stream.

Parameters:
out the output stream for insertion
e the Event for insertion
Returns:
the modified output stream
istream& operator>> ( istream &  in,
Event e 
) throw ( invalid_argument )

Extracts an Event object in an internal format from the input stream and returns the modified input stream. The internal format of an object consists of its status, unique identifier, name, location, start date and time, end date and time, and the date and time of the event's last modification.

Parameters:
in the input stream for extraction
e the Event for storing the extracted information
Returns:
the modified input stream
Exceptions:
invalid_argument if an argument's value is invalid
Generated on Thu Jan 24 09:03:33 2013 by  doxygen 1.6.3