Changeset 865a39d3 in tol
- Timestamp:
- Aug 3, 2015, 2:59:16 PM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 54e903c
- Parents:
- 05325a3
- Location:
- tol/OIS
- Files:
-
- 3 edited
-
oisxml.cpp (modified) (5 diffs)
-
tol_oiscreator.h (modified) (1 diff)
-
tol_oisloader.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/OIS/oisxml.cpp
r05325a3 r865a39d3 45 45 46 46 header_->Print("<xmlParam>\n"); 47 header_->Print("<maxXmlStrLen>% ld</maxXmlStrLen>\n", xmlParam_.maxXmlStrLen_);47 header_->Print("<maxXmlStrLen>%d</maxXmlStrLen>\n", xmlParam_.maxXmlStrLen_); 48 48 header_->Print("</xmlParam>\n"); 49 49 … … 115 115 116 116 header_->Print("<tolSourceSearchPaths>\n"); 117 header_->Print("<entries>% ld</entries>\n", options_.tolSourceSearchPaths_.Size());117 header_->Print("<entries>%d</entries>\n", options_.tolSourceSearchPaths_.Size()); 118 118 for(n=0; n<options_.tolSourceSearchPaths_.Size(); n++) 119 119 { 120 120 options_.tolSourceSearchPaths_[n].value_ = GetStandardAbsolutePath(options_.tolSourceSearchPaths_[n].value_); 121 header_->Print("<root_% ld><alias>%s</alias><path>%s</path></root_%ld>\n",121 header_->Print("<root_%d><alias>%s</alias><path>%s</path></root_%d>\n", 122 122 n+1, 123 123 options_.tolSourceSearchPaths_[n].alias_.String(), … … 169 169 value += Text(tolEnvironment_[n]); 170 170 } 171 header_->Print("<var_% ld><type>%s</type><name>%s</name><value>%s</value></var_%ld>\n",171 header_->Print("<var_%d><type>%s</type><name>%s</name><value>%s</value></var_%d>\n", 172 172 n+1, 173 173 tolEnvironment_[n]->Grammar()->Name().String(), … … 214 214 } 215 215 } 216 header_->Print("<file_% ld><path>%s</path><release>%s</release><size>%"_LLD64_"</size></file_%ld>\n",216 header_->Print("<file_%d><path>%s</path><release>%s</release><size>%"_LLD64_"</size></file_%d>\n", 217 217 n+1, 218 218 path.String(), … … 229 229 { 230 230 BText name = packages_[n]; 231 header_->Print("<package_% ld>%s</package_%ld>\n",231 header_->Print("<package_%d>%s</package_%d>\n", 232 232 n+1, 233 233 name.String(), -
tol/OIS/tol_oiscreator.h
r05325a3 r865a39d3 67 67 bool Write(const BINT64& x, BStream* stream); 68 68 bool Write(const unsigned BINT64& x, BStream* stream); 69 // REVIEW: for compatibility size_t will be written/read as 4 bytes 70 bool Write(const size_t& x, BStream* stream) 71 { 72 unsigned int _x = (unsigned int)x; 73 return this->Write( _x, stream ); 74 } 69 75 bool Write(const float& x, BStream* stream); 70 76 bool Write(const double& x, BStream* stream); -
tol/OIS/tol_oisloader.h
r05325a3 r865a39d3 102 102 bool Read( BINT64& x, BStream* stream); 103 103 bool Read(unsigned BINT64& x, BStream* stream); 104 // REVIEW: for compatibility size_t will be written/read as 4 bytes 105 bool Read(size_t & x, BStream* stream) 106 { 107 unsigned int _x; 108 bool ok = this->Read( _x, stream ); 109 if( ok ) 110 { 111 x = _x; 112 } 113 return ok; 114 } 104 115 bool Read( float& x, BStream* stream); 105 116 bool Read( double& x, BStream* stream);
Note: See TracChangeset
for help on using the changeset viewer.
