1 // vim: set expandtab tabstop=4 shiftwidth=4:
6 using std::stringstream;
15 Widget::Widget(void) {
17 cerr << "In Widget::Widget();" << endl;
21 Widget::Widget(const Hash& attrs): attrs(attrs) {
23 cerr << "In Widget::Widget(attrs = {" /* TODO << attrs */ << "});" << endl;
27 Widget::~Widget(void) {
29 cerr << "In Widget destructor." << endl;
33 Widget::operator string(void) const {
35 out << string("widget = attributes: [");
36 Hash::const_iterator last = attrs.end();
38 for (Hash::const_iterator i = attrs.begin(); i != attrs.end(); i++) { //last; i++) {
39 out << i->first << ": " << i->second << ", ";
41 out << last->first << ": " << last->second << "]";