You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
496 B
24 lines
496 B
#include <ical/IcalObject.h>
|
|
|
|
namespace ical {
|
|
void IcalObject::add_event(ical::Event* event) {
|
|
events.push_back(event);
|
|
}
|
|
|
|
std::vector<ical::Event*> 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;
|
|
}
|
|
}
|