/*
 * Copyright (c) 2010 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#include <Swiften/EventLoop/Event.h>

#include <typeinfo>
#include <iostream>

std::ostream& operator<<(std::ostream& os, const Swift::Event& e) {
	os << "Event(" << e.id << ",";
	if (e.owner) {
		os << typeid(*e.owner.get()).name();
	}
	else {
		os << "null";
	}
	os << ")";
	return os;
}