#include namespace ical { void IcalObject::add_event(ical::Event* event) { events.push_back(event); } std::vector IcalObject::get_events() { return events; } bool IcalObject::empty() { return events.size() == 0; } std::ostream& operator<<(std::ostream &os, ical::IcalObject const &obj) { os << "Object:" << std::endl; for(auto const& e : obj.events) { os << e->print(); } os << std::endl; return os; } }