|
libpniio
|
manages links in XML More...
#include <link.hpp>
Static Public Member Functions | |
| template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE > | |
| static void | object_from_xml (const nxobject< GTYPE, FTYPE, ATYPE, LTYPE > &parent, const node &link_node) |
| generate HDF5 link More... | |
Static Private Member Functions | |
| static pni::core::string | get_link_name (const node &link_node) |
| get name of link More... | |
| static pni::core::string | get_link_target (const node &link_node) |
| get link target More... | |
This class provides a static method to create a link described by XML. There is no method to generate a link from an existing NeXus object as this is beyond the scope of libpniio's XML stack.
|
staticprivate |
Return the name of the link from the link node.
| key_error | if the name attribute does not exist |
| parser_error | in case of any other XML parsing error |
| link_node | the XML node describing the link |
|
staticprivate |
Return the path to the target from the link node.
| key_error | if the target attribute does not exist |
| parser_error | in case of any other XML parsing error |
| link_node | XML node describing the link |
|
static |
Generate an HDF5 link within a NeXus file according to the information provided by the link node.
| parser_error | in case of XML parsing problems |
| invalid_object_error | if the parent object is not valid |
| io_error | if data or metadata write failed |
| type_error | if the parent object is not a group type |
| key_error | if one of the required attribute tags does not exist |
| object_error | in case of any other error |
| GTYPE | group type |
| FTYPE | field type |
| ATYPE | attribute type |
| LTYPE | link type |
| parent | the parent below which the link should be established |
| link_node | reference the the XML node providing the link information |
1.8.8