Changeset 799 for trunk/applications/NXtranslate/binary/BinaryRetriever.cpp
- Timestamp:
- 25/07/06 14:11:56 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/applications/NXtranslate/binary/BinaryRetriever.cpp
r797 r799 167 167 { 168 168 vector<string> temp=string_util::split(location,":"); 169 cout << "SIZE=" << temp.size() << endl;170 169 if(temp.size()==1){ 171 170 type=getDataType(""); … … 177 176 throw invalid_argument("can only specify one type in location string"); 178 177 } 179 cout << "\"" << type << "\" \"" << sizing << "\"" << endl;180 178 } 181 179 … … 248 246 // allocate the space for the result 249 247 void *data; 250 cout << "TYPE=" << type << endl;251 248 if(NXmalloc(&data,rank,dims,type)!=NX_OK) 252 249 { … … 306 303 scalar_position=data_size*calculate_position(file_size,pos); 307 304 data_file.seekg(scalar_position,std::ios::beg); 308 data_file.read( reinterpret_cast<char *>(data_buffer),buffer_size);305 data_file.read(data_buffer,buffer_size); 309 306 // copy into final array 310 307 memcpy((static_cast<char *>(data))+data_index*data_size,data_buffer,buffer_size); … … 316 313 317 314 // create the node - this copies the data 318 Node node=Node(NAME,data,rank,dims, NX_UINT32);315 Node node=Node(NAME,data,rank,dims,type); 319 316 320 317 // insert the data into the tree
Note: See TracChangeset
for help on using the changeset viewer.
