write visitor
More...
#include <write.hpp>
template<typename ATYPE, typename GTYPE, typename FTYPE, typename AATYPE, typename LTYPE>
class pni::io::nx::write_visitor< ATYPE, GTYPE, FTYPE, AATYPE, LTYPE >
- Template Parameters
-
ATYPE | source type |
GTYPE | group type |
FTYPE | field type |
AATYPE | attribute type |
LTYPE | link type |
- See also
- write
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
- Parameters
-
data | reference to the data holding instance |
s | selection of what to write |
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
Cannot write data to a group - thus an exception is thrown.
- Exceptions
-
- Parameters
-
- Returns
- nothing
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
Write data to 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 writing 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 AATYPE , typename LTYPE >
Write data to 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 or the selection is not empty |
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 AATYPE , typename LTYPE >
Cannot write data to a link - thus an exception is thrown.
- Exceptions
-
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
template<typename ATYPE , typename GTYPE , typename FTYPE , typename AATYPE , typename LTYPE >
The documentation for this class was generated from the following file: