1 // vim: set expandtab tabstop=4 shiftwidth=4:
6 using std::stringstream;
14 Widget::Widget(void) {
16 cerr << "In Widget::Widget();" << endl;
20 Widget::Widget(Hash attrs): attrs(attrs) {
22 cerr << "In Widget::Widget(attrs = {" /* TODO << attrs */ << "});" << endl;
26 Widget::~Widget(void) {
28 cerr << "In Widget destructor." << endl;
32 Widget::operator string(void) const {
34 out << string("widget = attributes: [");
35 Hash::const_iterator last = attrs.end();
37 for (Hash::const_iterator i = attrs.begin(); i != attrs.end(); i++) { //last; i++) {
38 out << i->first << ": " << i->second << ", ";
40 out << last->first << ": " << last->second << "]";