read visitor
More...
#include <read.hpp>
template<typename ATYPE, typename GTYPE, typename FTYPE, typename ATTYPE, typename LTYPE>
class pni::io::nx::read_visitor< ATYPE, GTYPE, FTYPE, ATTYPE, LTYPE >
- Template Parameters
-
ATYPE | target array type |
GTYPE | group type |
FTYPE | field_type |
ATTYPE | attribute type |
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
- Parameters
-
data | reference to the data holding instance |
s | selection of what to read |
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
Cannot read data to a group - thus an exception is thrown.
- Exceptions
-
- Parameters
-
- Returns
- nothing
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
Read data from a field
- Exceptions
-
shape_mismatch_error | if selection and field rank do not match |
invalid_object_error | if the field is not valid |
io_error | if reading the data fails |
type_error | if the data type of ATYPE is not supported |
memory_not_allocated_error | if ATYPE is an array type and its internal buffer has no memory associated with it |
size_mismatch_error | if the number of elements of ATYPE and the field do not match |
object_error | in case of any other error |
- Parameters
-
- Returns
- nothing
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
Read data from an attribute. If the selection member is not empty an exception will be thrown as partial IO is not supported on attributes.
- Exceptions
-
invalid_object_error | if the field is not valid |
io_error | if reading the data fails |
type_error | if the data type of ATYPE is not supported |
memory_not_allocated_error | if ATYPE is an array type and its internal buffer has no memory associated with it |
size_mismatch_error | if the number of elements of ATYPE and the field do not match |
object_error | in case of any other error |
- Parameters
-
- Returns
- nothing
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
Cannot read data from a link - thus an exception is thrown.
- Exceptions
-
- Parameters
-
- Returns
- nothing
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename ATTYPE , typename LTYPE >
The documentation for this class was generated from the following file: