#include "gats/list.h" #include Gats::List::List() { } Gats::List::~List() { } void Gats::List::write( Bu::Stream &rOut ) const { rOut.write("l", 1 ); for( const_iterator i = begin(); i; i++ ) { (*i)->write( rOut ); } rOut.write("e", 1 ); } void Gats::List::read( Bu::Stream &rIn, char cType ) { for(;;) { Gats::Object *pObj = Gats::Object::read( rIn ); if( pObj == NULL ) break; append( pObj ); } }