Exemple #1
0
/*-------------------- opening and closing -------------------------------*/
void *nx_open(char *filename, int accessMethod){
  NXhandle handle = NULL;
  int status;

  NXMSetError(NULL,nxinterError);
  status = NXopen(filename,(NXaccess)accessMethod, &handle);
  if(status == NX_OK){
    return handle;
  }else{
    return NULL;
  }
}
/// Silence NeXus output
void FrameworkManagerImpl::disableNexusOutput() {
  NXMSetError(nullptr, NexusErrorFunction);
}