|
libpniio
|
representation of a NeXus link More...
#include <link.hpp>

Public Types | |
| using | parent_type = typename nxobject_trait< IMPID >::group_type |
| parent type More... | |
| using | object_type = typename nxobject_trait< IMPID >::object_type |
| object type More... | |
| using | link_type = nxlink< IMPID > |
| link type More... | |
Public Member Functions | |
| nxlink () | |
| default constructor More... | |
| nxlink (const parent_type &parent, const pni::core::string &name) | |
| constructor More... | |
| nxlink (const parent_type &parent, size_t index) | |
| constructor More... | |
| pni::core::string | filename () const noexcept |
| get filename More... | |
| pni::core::string | name () const noexcept |
| return the links name More... | |
| object_type | parent () const noexcept |
| return parent object More... | |
| nxpath | target_path () const |
| path to the link target More... | |
| nxlink_status | status () const |
| return link status More... | |
| nxlink_type | type () const |
| return link type More... | |
| bool | is_valid () const |
| checks if a link is valid More... | |
| object_type | resolve () const |
| resolve the link More... | |
Private Attributes | |
| parent_type | _parent |
| parent object More... | |
| pni::core::string | _name |
| name of the link below the parent More... | |
The nxlink template represents a single NeXus link. It stores the parent object (group) of the link and its name.
| IMPID | implementation ID |
| using pni::io::nx::nxlink< IMPID >::link_type = nxlink<IMPID> |
| using pni::io::nx::nxlink< IMPID >::object_type = typename nxobject_trait<IMPID>::object_type |
| using pni::io::nx::nxlink< IMPID >::parent_type = typename nxobject_trait<IMPID>::group_type |
|
inline |
|
inline |
| parent | reference to the parent object |
| name | the name of the link |
|
inline |
| parent | reference to the parent object |
| index | numeric index of the link |
|
inlinenoexcept |
Returns the name of the file where the link is stored.
|
inline |
Simple wrapper around status(). If the link is valid this method returns true, false otherwise.
|
inlinenoexcept |
|
inlinenoexcept |
Return a copy of the parent object below which the link is stored.
|
inline |
Resolve the link and return the object referenced by it. If the link is invalid a link_error exception will be thrown.
| link_error | if link cannot be resolved |
|
inlinenoexcept |
Return the current status of the link which can be either VALID or INVALID.
|
inlinenoexcept |
Full path to the target to which the link points to.
|
inlinenoexcept |
|
private |
|
private |
1.8.8