Changeset 1730


Ignore:
Timestamp:
02/11/11 18:05:29 (7 months ago)
Author:
Tobias Richter
Message:

refs #290

external linking works fine now

Only the reporting NXinquirefile and NXisexternalgroup need to be
tweaked to report correctly with external links.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r1576 r1730  
     1Version 4.3.0 
     2============= 
     3 
     4If creating an external link you are no longer supposed to create the group  
     5beforehand. As HDF5 can handle groups natively, that is counterproductive  
     6and we would have to remove the empty group again (hoping that it is actually  
     7empty that is). It is easier to create the group in the API if required. 
     8 
    19Version 4.2.0 
    210============= 
  • trunk/src/napi5.c

    r1729 r1730  
    21692169      fHandle->nxinitattrdir=NX5initattrdir; 
    21702170      fHandle->nxprintlink=NX5printlink; 
    2171 //      fHandle->nxnativeexternallink=NX5nativeexternallink; 
    2172       fHandle->nxnativeexternallink=NULL; 
     2171      fHandle->nxnativeexternallink=NX5nativeexternallink; 
     2172//      fHandle->nxnativeexternallink=NULL; 
    21732173} 
    21742174 
  • trunk/test/napi_test.c

    r1673 r1730  
    486486    return 1; 
    487487  } 
    488   if(NXmakegroup(hfil,"entry1","NXentry") != NX_OK){ 
    489     return 1; 
    490   } 
     488  /*if(NXmakegroup(hfil,"entry1","NXentry") != NX_OK){ 
     489    return 1; 
     490  }*/ 
    491491  sprintf(nxfile,"nxfile://data/dmc01.%s#/entry1",ext); 
    492492  if(NXlinkexternal(hfil,"entry1","NXentry",nxfile) != NX_OK){ 
    493493    return 1; 
    494494  } 
    495   if(NXmakegroup(hfil,"entry2","NXentry") != NX_OK){ 
    496     return 1; 
    497   } 
     495  /*if(NXmakegroup(hfil,"entry2","NXentry") != NX_OK){ 
     496    return 1; 
     497  }*/ 
    498498  sprintf(nxfile,"nxfile://data/dmc02.%s#/entry1",ext); 
    499499  if(NXlinkexternal(hfil,"entry2","NXentry",nxfile) != NX_OK){ 
  • trunk/test/napi_test_cpp.cxx

    r1711 r1730  
    467467  // create the external link 
    468468  NeXus::File fileout(filename, create_code); 
    469   fileout.makeGroup("entry1", "NXentry"); 
    470469  fileout.linkExternal("entry1", "NXentry", exturl1); 
    471   fileout.makeGroup("entry2", "NXentry"); 
    472470  fileout.linkExternal("entry2", "NXentry", exturl2); 
    473471  fileout.close(); 
Note: See TracChangeset for help on using the changeset viewer.