Functions
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
outthe output stream for insertion
ethe 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
inthe input stream for extraction
ethe Event for storing the extracted information
Returns
the modified input stream
Exceptions
invalid_argumentif an argument's value is invalid