Ignore:
Timestamp:
25/07/06 14:11:56 (6 years ago)
Author:
pfp
Message:

Fixed a problem with typing a resulting node. Also removed some debug prints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/applications/NXtranslate/binary/BinaryRetriever.cpp

    r797 r799  
    167167  { 
    168168    vector<string> temp=string_util::split(location,":"); 
    169     cout << "SIZE=" << temp.size() << endl; 
    170169    if(temp.size()==1){ 
    171170      type=getDataType(""); 
     
    177176      throw invalid_argument("can only specify one type in location string"); 
    178177    } 
    179     cout << "\"" << type << "\" \"" << sizing << "\"" << endl; 
    180178  } 
    181179 
     
    248246  // allocate the space for the result 
    249247  void *data; 
    250   cout << "TYPE=" << type << endl; 
    251248  if(NXmalloc(&data,rank,dims,type)!=NX_OK) 
    252249    { 
     
    306303      scalar_position=data_size*calculate_position(file_size,pos); 
    307304      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); 
    309306      // copy into final array 
    310307      memcpy((static_cast<char *>(data))+data_index*data_size,data_buffer,buffer_size); 
     
    316313 
    317314  // 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); 
    319316 
    320317  // insert the data into the tree 
Note: See TracChangeset for help on using the changeset viewer.