void run() { // initialise the LCD and then the network initialiseLcd(); initialiseNetwork(); // do a DNS lookup for the server and read the index file lookupServerAddress(); readPictureIndex(); // give a small delay so that the user can see the startup info writeLine("Starting in 5 seconds"); MillisecondTimer::delay(5000); // go into an infinite loop showing the pictures with a 10 second // delay between each one for(;;) { for(auto it=_pictureUriList.begin();it!=_pictureUriList.end();it++) { showPicture(*it); MillisecondTimer::delay(10000); } } }
inline void load( Archive & ar, STD::slist<U, Allocator> &t, const unsigned int file_version ){ // retrieve number of elements t.clear(); // retrieve number of elements unsigned int count; ar >> BOOST_SERIALIZATION_NVP(count); if(0 == count) return; boost::serialization::stl::stack_construct<Archive, U> u(ar); ar >> boost::serialization::make_nvp("item", u.reference()); t.push_front(u.reference()); BOOST_DEDUCED_TYPENAME BOOST_STD_EXTENSION_NAMESPACE::slist<U, Allocator>::iterator last; last = t.begin(); while(--count > 0){ boost::serialization::stl::stack_construct<Archive, U> u(ar); ar >> boost::serialization::make_nvp("item", u.reference()); last = t.insert_after(last, u.reference()); } }