13 #include <yarp/os/ConnectionReader.h>
14 #include <yarp/os/ConnectionWriter.h>
19 using namespace yarp::os;
23 dynContactList::dynContactList()
37 if(connection.expectInt32()!=BOTTLE_TAG_LIST)
40 int listLength = connection.expectInt32();
43 if(listLength!=size())
46 for(iterator it=begin(); it!=end(); it++)
47 if(!it->read(connection))
50 return !connection.isError();
57 connection.appendInt32(BOTTLE_TAG_LIST);
58 connection.appendInt32(size());
60 for(
auto it=begin(); it!=end(); it++)
61 if(!it->write(connection))
64 return !connection.isError();
69 for(const_iterator it=begin();it!=end();it++)
70 ss<<
"- "<<it->toString(precision)<<
";\n";