Changeset 1199 for code/branches/network3/src/network/Synchronisable.cc
- Timestamp:
- Apr 28, 2008, 11:09:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/network/Synchronisable.cc
r1180 r1199 147 147 retVal.classID=this->classID; 148 148 retVal.length=getSize(); 149 COUT( 4) << "Synchronisable getting data from objectID: " << retVal.objectID << " classID: " << retVal.classID << " length: " << retVal.length << std::endl;149 COUT(5) << "Synchronisable getting data from objectID: " << retVal.objectID << " classID: " << retVal.classID << " length: " << retVal.length << std::endl; 150 150 retVal.data=mem; 151 151 // copy to location … … 163 163 const char *data = ( ( *(std::string *) (*i)->var).c_str()); 164 164 std::memcpy( retVal.data+n, (void*)data, (*i)->size); 165 COUT( 4) << "synchronisable: char: " << (const char *)(retVal.data+n) << " data: " << data << " string: " << *(std::string *)((*i)->var) << std::endl;165 COUT(5) << "synchronisable: char: " << (const char *)(retVal.data+n) << " data: " << data << " string: " << *(std::string *)((*i)->var) << std::endl; 166 166 n+=(*i)->size; 167 167 break; … … 193 193 case STRING: 194 194 (*i)->size = *(int *)data; 195 COUT( 4) << "string size: " << (*i)->size << std::endl;195 COUT(5) << "string size: " << (*i)->size << std::endl; 196 196 data+=sizeof(int); 197 197 *((std::string *)((*i)->var)) = std::string((const char*)data); 198 COUT( 4) << "synchronisable: char: " << (const char*)data << " string: " << std::string((const char*)data) << std::endl;198 COUT(5) << "synchronisable: char: " << (const char*)data << " string: " << std::string((const char*)data) << std::endl; 199 199 data += (*i)->size; 200 200 break; … … 219 219 tsize+=sizeof(int); 220 220 (*i)->size=((std::string *)(*i)->var)->length()+1; 221 COUT( 4) << "String size: " << (*i)->size << std::endl;221 COUT(5) << "String size: " << (*i)->size << std::endl; 222 222 tsize+=(*i)->size; 223 223 break;
Note: See TracChangeset
for help on using the changeset viewer.