Changeset 13101 for issm/branches/trunk-jpl-damage/src/c/classes/Hook.cpp
- Timestamp:
- 08/20/12 17:39:30 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:ignore
-
old new 1 projects 1 2 autom4te.cache 2 3 aclocal.m4
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 12948-13099
- Property svn:ignore
-
issm/branches/trunk-jpl-damage/src/c/classes/Hook.cpp
r12832 r13101 185 185 this->objects[i]=(Object*)dataset->GetObjectById(this->offsets+i,this->ids[i]); //remember the offset for later on. 186 186 /*check the id is correct!: */ 187 if (this->objects[i]->Id()!=this->ids[i]) _error 2_("wrong id: " << this->objects[i]->Id() << " vs " << this->ids[i] << " in resolved pointer!");187 if (this->objects[i]->Id()!=this->ids[i]) _error_("wrong id: " << this->objects[i]->Id() << " vs " << this->ids[i] << " in resolved pointer!"); 188 188 } 189 189 } … … 194 194 195 195 /*first, check that we only have one T object in our object list: */ 196 if (this->num!=1) _error 2_("trying to delivery a single hook object when hook holds " << this->num << " objects" << "\n");196 if (this->num!=1) _error_("trying to delivery a single hook object when hook holds " << this->num << " objects" << "\n"); 197 197 198 198 /*check NULL: */ 199 if (this->objects==NULL) _error 2_("hook is not pointing to any object, objects pointer is NULL");199 if (this->objects==NULL) _error_("hook is not pointing to any object, objects pointer is NULL"); 200 200 201 201 return *objects; … … 246 246 247 247 /*Else, check that we are requesting a half of num*/ 248 if (numindices>this->num) _error 2_("Cannot spawn hook with " << numindices << " objects from a Hook of " << this->num << " objects");248 if (numindices>this->num) _error_("Cannot spawn hook with " << numindices << " objects from a Hook of " << this->num << " objects"); 249 249 250 250 /*go pickup the correct objects, ids and offsets :*/ 251 251 output->num=numindices; 252 if(output->num<1) _error 2_("Trying to spawn an empty ElementProperties!");252 if(output->num<1) _error_("Trying to spawn an empty ElementProperties!"); 253 253 254 254 output->objects=xNew<Object*>(output->num);
Note:
See TracChangeset
for help on using the changeset viewer.