32 lines
733 B
C++
32 lines
733 B
C++
|
|
#include <iostream>
|
|
#include "common/container/ObjectList.h"
|
|
#include "event/DeliverableObject.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Output operator
|
|
* @param out the stream to edit
|
|
* @param l the list to output
|
|
* @returns the outputstream enhanced by the list to output
|
|
*/
|
|
std::ostream&
|
|
operator<<(std::ostream & out, const ObjectList l) {
|
|
out << "[";
|
|
if (!l.empty()) {
|
|
out << *(l.begin());
|
|
for (auto i = (++l.begin()); i != l.end(); i++) {
|
|
out << ", " << *i;
|
|
}
|
|
}
|
|
out << "]";
|
|
return out;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|