Project 1
Functions
event.cc File Reference
#include "event.h"

Functions

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

Function Documentation

◆ operator<<()

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

◆ operator>>()

istream& operator>> ( istream &  in,
Event e 
)

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. Indirectly throws an exception if the input stream contains an invalid value.

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