Changeset 1459 for trunk/include/napi.h
- Timestamp:
- 06/05/10 18:32:30 (2 years ago)
- File:
-
- 1 edited
-
trunk/include/napi.h (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/napi.h
r1449 r1459 33 33 * \defgroup c_init General Initialisation and shutdown 34 34 * \ingroup c_main 35 * \defgroup c_readwrite Reading and Writing 35 * \defgroup c_group Reading and Writing Groups 36 * \ingroup c_main 37 * \defgroup c_readwrite Reading and Writing Data 38 * \ingroup c_main 39 * \defgroup c_navigate General File navigation 36 40 * \ingroup c_main 37 41 * \defgroup c_metadata Meta data routines 38 42 * \ingroup c_main 39 * \defgroup c_linking Linking and Group hierarchy43 * \defgroup c_linking Linking 40 44 * \ingroup c_main 41 45 * \defgroup c_memory Memory allocation … … 43 47 * \defgroup c_external External linking 44 48 * \ingroup c_main 45 * \defgroup cpp_main C++ API46 49 */ 47 50 … … 298 301 * \param NXclass the class name of the group. Should start with the prefix NX 299 302 * \return NX_OK on success, NX_ERROR in the case of an error. 300 * \ingroup c_ init303 * \ingroup c_group 301 304 */ 302 305 extern NXstatus NXmakegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); … … 308 311 * \param NXclass the class name of the group. Should start with the prefix NX 309 312 * \return NX_OK on success, NX_ERROR in the case of an error. 310 * \ingroup c_ init313 * \ingroup c_group 311 314 */ 312 315 extern NXstatus NXopengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass); … … 319 322 * Example: /entry1/sample/name 320 323 * \return NX_OK on success, NX_ERROR in the case of an error. 321 * \ingroup c_ init324 * \ingroup c_navigation 322 325 */ 323 326 extern NXstatus NXopenpath (NXhandle handle, CONSTCHAR *path); … … 330 333 * Example: /entry1/sample/name 331 334 * \return NX_OK on success, NX_ERROR in the case of an error. 332 * \ingroup c_ readwrite335 * \ingroup c_navigation 333 336 */ 334 337 extern NXstatus NXopengrouppath (NXhandle handle, CONSTCHAR *path); 338 335 339 /** 336 340 * Retrieve the current path in the NeXus file 337 341 * \param handle a NeXus file handle 338 342 * \param path A buffer to copy the path too 339 * \par m pathlen The maximum number of characters to copy into path343 * \param pathlen The maximum number of characters to copy into path 340 344 * \return NX_OK or NX_ERROR 345 * \ingroup c_navigation 341 346 */ 342 347 extern NXstatus NXgetpath(NXhandle handle, char *path, int pathlen); … … 346 351 * hierarchy. 347 352 * \return NX_OK on success, NX_ERROR in the case of an error. 348 * \ingroup c_ init353 * \ingroup c_group 349 354 */ 350 355 extern NXstatus NXclosegroup(NXhandle handle); … … 359 364 * can be NX_UNLIMITED. Data can be appended to such a dimension using NXputslab. 360 365 * \return NX_OK on success, NX_ERROR in the case of an error. 361 * \ingroup c_ init366 * \ingroup c_readwrite 362 367 */ 363 368 extern NXstatus NXmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[]); … … 381 386 * should be the same as the data dimension. If you write it in slabs, this is your preferred slab size. 382 387 * \return NX_OK on success, NX_ERROR in the case of an error. 383 * \ingroup c_ init388 * \ingroup c_readwrite 384 389 */ 385 390 extern NXstatus NXcompmakedata (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int dim[], int comp_typ, int bufsize[]); … … 394 399 * \li NX_COMP_RLE run length encoding (only HDF-4) 395 400 * \li NX_COMP_HUF Huffmann encoding (only HDF-4) 396 * \ingroup c_ init401 * \ingroup c_readwrite 397 402 */ 398 403 extern NXstatus NXcompress (NXhandle handle, int compr_type); … … 404 409 * \param label The name of the dataset 405 410 * \return NX_OK on success, NX_ERROR in the case of an error. 406 * \ingroup c_ init411 * \ingroup c_readwrite 407 412 */ 408 413 extern NXstatus NXopendata (NXhandle handle, CONSTCHAR* label); … … 412 417 * \param handle A NeXus file handle as initialized by NXopen. 413 418 * \return NX_OK on success, NX_ERROR in the case of an error. 414 * \ingroup c_readwrite 419 * \ingroup c_readwrite 415 420 */ 416 421 extern NXstatus NXclosedata(NXhandle handle); … … 423 428 * \param data Pointer to data to write. 424 429 * \return NX_OK on success, NX_ERROR in the case of an error. 425 * \ingroup c_ init430 * \ingroup c_readwrite 426 431 */ 427 432 extern NXstatus NXputdata(NXhandle handle, void* data); … … 460 465 * for linking. 461 466 * \return NX_OK on success, NX_ERROR in the case of an error. 462 * \ingroup c_ readwrite467 * \ingroup c_linking 463 468 */ 464 469 extern NXstatus NXgetdataID(NXhandle handle, NXlink* pLink); … … 471 476 * by either a call to NXgetdataID or NXgetgroupID. 472 477 * \return NX_OK on success, NX_ERROR in the case of an error. 473 * \ingroup c_ readwrite478 * \ingroup c_linking 474 479 */ 475 480 extern NXstatus NXmakelink(NXhandle handle, NXlink* pLink); … … 492 497 * \param handle A NeXus file handle as initialized by NXopen. 493 498 * \return NX_OK on success, NX_ERROR in the case of an error. 494 * \ingroup c_ linking499 * \ingroup c_navigation 495 500 */ 496 501 extern NXstatus NXopensourcegroup(NXhandle handle); … … 522 527 /** 523 528 * Get the next entry in the currently open group. This is for retrieving infromation about the 524 * content of a NeXus group. In order to search a group NXgetnextentry is called in a loop until 525 * NXgetnextentry returns NX_EOD which indicates that there are no further items in the group. 529 * content of a NeXus group. In order to search a group #NXgetnextentry is called in a loop until 530 * #NXgetnextentry returns NX_EOD which indicates that there are no further items in the group. 531 * Reset search using #NXinitgroupdir 526 532 * \param handle A NeXus file handle as initialized by NXopen. 527 533 * \param name The name of the object … … 529 535 * \param datatype The NeXus data type if the item is a SDS. 530 536 * \return NX_OK on success, NX_ERROR in the case of an error, NX_EOD when there are no more items. 531 * \ingroup c_ readwrite537 * \ingroup c_navigation 532 538 */ 533 539 extern NXstatus NXgetnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype); … … 547 553 /** 548 554 * Iterate over global, group or dataset attributes depending on the currently open group or 549 * dataset. In order to search attributes multiple calls to NXgetnextattr are performed in a loop 550 * until NXgentnextattr returns NX_EOD which indicates that there are no further attributes. 555 * dataset. In order to search attributes multiple calls to #NXgetnextattr are performed in a loop 556 * until #NXgetnextattr returns NX_EOD which indicates that there are no further attributes. 557 * reset search using #NXinitattrdir 551 558 * \param handle A NeXus file handle as initialized by NXopen. 552 559 * \param pName The name of the attribute … … 559 566 560 567 /** 561 * Read an attribute. 568 * Read an attribute. 562 569 * \param handle A NeXus file handle as initialized by NXopen. 563 570 * \param name The name of the atrribute to read. … … 575 582 * \param no_items A pointer to an integer which be set to the number of attributes available. 576 583 * \return NX_OK on success, NX_ERROR in the case of an error. 577 * \ingroup c_ readwrite584 * \ingroup c_metadata 578 585 */ 579 586 extern NXstatus NXgetattrinfo(NXhandle handle, int* no_items); … … 586 593 * for linking. 587 594 * \return NX_OK on success, NX_ERROR in the case of an error. 588 * \ingroup c_ readwrite595 * \ingroup c_linking 589 596 */ 590 597 extern NXstatus NXgetgroupID(NXhandle handle, NXlink* pLink); … … 599 606 * \param nxclass The NeXus class name of the group. 600 607 * \return NX_OK on success, NX_ERROR in the case of an error. 601 * \ingroup c_ readwrite608 * \ingroup c_metadata 602 609 */ 603 610 extern NXstatus NXgetgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass); … … 609 616 * \param pSecondID The second link data structure. 610 617 * \return NX_OK when both link data structures describe the same item, NX_ERROR else. 611 * \ingroup c_ readwrite618 * \ingroup c_linking 612 619 */ 613 620 extern NXstatus NXsameID(NXhandle handle, NXlink* pFirstID, NXlink* pSecondID); 614 /** 615 * Resets a pending group search to the start again. To be called in a Nxgetnextentry loop when 621 622 /** 623 * Resets a pending group search to the start again. To be called in a #NXgetnextentry loop when 616 624 * a group search has to be restarted. 617 625 * \param handle A NeXus file handle as initialized by NXopen. 618 626 * \return NX_OK on success, NX_ERROR in the case of an error. 619 * \ingroup c_ readwrite627 * \ingroup c_navigation 620 628 */ 621 629 extern NXstatus NXinitgroupdir(NXhandle handle); 622 630 623 631 /** 624 * Resets a pending attribute search to the start again. To be called in a Nxgetnextattr loop when632 * Resets a pending attribute search to the start again. To be called in a #NXgetnextattr loop when 625 633 * an attribute search has to be restarted. 626 634 * \param handle A NeXus file handle as initialized by NXopen. 627 635 * \return NX_OK on success, NX_ERROR in the case of an error. 628 * \ingroup c_ readwrite636 * \ingroup c_navigation 629 637 */ 630 638 extern NXstatus NXinitattrdir(NXhandle handle); … … 648 656 * \param filenameBufferLength The length of the filename buffer. 649 657 * \return NX_OK on success, NX_ERROR in the case of an error. 650 * \ingroup c_ readwrite658 * \ingroup c_metadata 651 659 */ 652 660 extern NXstatus NXinquirefile(NXhandle handle, char *filename, int filenameBufferLength); … … 661 669 * \param urlLen The length of the Url buffer. At maximum urlLen bytes will be copied to url. 662 670 * \return NX_OK when the group is pointing to an external file, NX_ERROR else. 663 * \ingroup c_ readwrite671 * \ingroup c_external 664 672 */ 665 673 extern NXstatus NXisexternalgroup(NXhandle handle, CONSTCHAR *name, CONSTCHAR *nxclass, char *url, int urlLen); … … 675 683 * path to the group in the external file which appears in the first file. 676 684 * \return NX_OK on success, NX_ERROR in the case of an error. 677 * \ingroup c_ readwrite685 * \ingroup c_external 678 686 */ 679 687 extern NXstatus NXlinkexternal(NXhandle handle, CONSTCHAR *name, CONSTCHAR *nxclass, CONSTCHAR *url); … … 764 772 extern NXstatus NXIprintlink(NXhandle fid, NXlink* link); 765 773 766 /* 767 another special function for setting the default cache size for HDF-5 768 */ 774 /** 775 * A function for setting the default cache size for HDF-5 776 * \ingroup c_init 777 */ 769 778 extern NXstatus NXsetcache(long newVal); 770 779
Note: See TracChangeset
for help on using the changeset viewer.
