Changeset f1eb838 in tol
- Timestamp:
- Mar 9, 2011, 5:18:51 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 48ff793
- Parents:
- dffeb26
- Location:
- tol/OIS
- Files:
-
- 2 edited
-
oisxml.cpp (modified) (3 diffs)
-
tol_ois.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/OIS/oisxml.cpp
rdffeb26 rf1eb838 71 71 72 72 header_->Print("<typeSizes>\n"); 73 header_->Print("<pointer>%d</pointer>\n", control_.typeSizes_.sizeof_pointer_); 73 74 header_->Print("<char>%d</char>\n", control_.typeSizes_.sizeof_char_); 74 75 header_->Print("<short>%d</short>\n", control_.typeSizes_.sizeof_short_); … … 377 378 { 378 379 XMLEnsure(XMLGetNextTagTitle(tag_, "typeSizes")); 380 if(control_.oisEngine_.oisVersion_>="02.16") { 381 XMLEnsure(XMLGetNextTagValue(tag_, value_, "pointer")); sscanf(value_,"%hd",&control_.typeSizes_.sizeof_pointer_); } 379 382 XMLEnsure(XMLGetNextTagValue(tag_, value_, "char")); sscanf(value_,"%hd",&control_.typeSizes_.sizeof_char_); 380 383 XMLEnsure(XMLGetNextTagValue(tag_, value_, "short")); sscanf(value_,"%hd",&control_.typeSizes_.sizeof_short_); … … 391 394 else 392 395 { 396 control_.typeSizes_.sizeof_pointer_ = 4; 393 397 control_.typeSizes_.sizeof_char_ = 1; 394 398 control_.typeSizes_.sizeof_short_ = 2; 395 399 control_.typeSizes_.sizeof_int_ = 4; 396 400 control_.typeSizes_.sizeof_BINT64_ = 8; 401 control_.typeSizes_.sizeof_size_t_ = 4; 397 402 control_.typeSizes_.sizeof_double_ = 8; 398 403 control_.typeSizes_.sizeof_BDat_ = 12; -
tol/OIS/tol_ois.h
rdffeb26 rf1eb838 173 173 { 174 174 public: 175 short sizeof_pointer_; 175 176 short sizeof_char_; 176 177 short sizeof_short_; … … 184 185 185 186 TypeSizes() 186 : sizeof_char_ (sizeof(char)), 187 : sizeof_pointer_ (sizeof(void*)), 188 sizeof_char_ (sizeof(char)), 187 189 sizeof_short_ (sizeof(short)), 188 190 sizeof_int_ (sizeof(int)),
Note: See TracChangeset
for help on using the changeset viewer.
