00001 #include "BasicObject.h"
00002 #include <sstream>
00003
00004 using namespace std;
00005
00006 string
00007 BasicObject::toString() {
00008 stringstream stream;
00009 stream << *this;
00010 return stream.str();
00011 }
00012
00013
00014 void
00015 BasicObject::toStream(std::ostream& out) {
00016 out << "\n(Please override BasicObject.toStream)\n";
00017 }
00018
00019
00020 ostream& operator<<(std::ostream& out, BasicObject& bo) {
00021 bo.toStream(out);
00022 return out;
00023 }
00024
00025