Changeset 1220


Ignore:
Timestamp:
17/03/09 11:06:04 (3 years ago)
Author:
Mark Koennecke
Message:
  • Added a NXgetrawinfo function in the internal section. This function does not do any special processing for strings and rather returns the raw data size as read from file for strings. This is a special for Paul Kienzle. I marked this function as internal becuase for all normal cases, NXgetinfo as is does the right thing. Refs #173 We may even consider supressing documentation for NXgetrawinfo.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/napi.h

    r1217 r1220  
    199199 
    200200#    define NXgetinfo           MANGLE(nxigetinfo) 
     201#    define NXgetrawinfo        MANGLE(nxigetrawinfo) 
    201202#    define NXgetnextentry      MANGLE(nxigetnextentry) 
    202203#    define NXgetdata           MANGLE(nxigetdata) 
     
    684685    NAPI internals  
    685686------------------------------------------------------------------------*/ 
     687  /** 
     688   * Retrieve information about the currently open dataset. In contrast to the main function below,  
     689   * this function does not try to find out about the size of strings properly.  
     690   * \param handle A NeXus file handle as initialized by NXopen. 
     691   * \param rank A pointer to an integer which will be filled with the rank of  
     692   * the dataset. 
     693   * \param dimension An array which will be initialized with the size of the dataset in any of its  
     694   * dimensions. The array must have at least the size of rank. 
     695   * \param datatype A pointer to an integer which be set to the NeXus data type code for this dataset. 
     696   * \return NX_OK on success, NX_ERROR in the case of an error.    
     697   * \ingroup c_metadata 
     698   */ 
     699extern  NXstatus  NXgetrawinfo(NXhandle handle, int* rank, int dimension[], int* datatype); 
     700 
    686701/** \typedef void (*ErrFunc)(void *data, char *text) 
    687702 * All NeXus error reporting happens through this special function, the  
  • trunk/src/napi.c

    r1217 r1220  
    857857    return status; 
    858858  } 
    859      
     859/*---------------------------------------------------------------------------*/ 
     860  NXstatus  NXgetrawinfo (NXhandle fid, int *rank,  
     861                                    int dimension[], int *iType) 
     862  { 
     863    int status; 
     864    char *pPtr = NULL; 
     865 
     866    pNexusFunction pFunc = handleToNexusFunc(fid); 
     867    status = pFunc->nxgetinfo(pFunc->pNexusData, rank, dimension, iType); 
     868    return status; 
     869  } 
    860870  /*-------------------------------------------------------------------------*/ 
    861871  
Note: See TracChangeset for help on using the changeset viewer.