24 #include <pni/core/error.hpp>
25 #include "../nxobject.hpp"
79 throw type_error(EXCEPTION_RECORD,
80 "Object is not an instance of nxattribute "
100 throw type_error(EXCEPTION_RECORD,
101 "Object is not an instance of nxattribute "
133 throw type_error(EXCEPTION_RECORD,
134 "Object is a link and not an instance of "
173 return boost::apply_visitor(visitor_type(),o);
result_type operator()(const attribute_type &a) const
process attribute instances
Definition: as_attribute.hpp:114
GTYPE group_type
Nexus group type.
Definition: as_attribute.hpp:53
result_type operator()(const field_type &) const
process field instances
Definition: as_attribute.hpp:97
result_type operator()(const link_type &) const
process link instances
Definition: as_attribute.hpp:130
LTYPE link_type
Nexus link type.
Definition: as_attribute.hpp:59
Definition: cbf_reader.hpp:41
ATYPE as_attribute(const nxobject< GTYPE, FTYPE, ATYPE, LTYPE > &o)
as attribute wrapper
Definition: as_attribute.hpp:170
FTYPE field_type
Nexus field type.
Definition: as_attribute.hpp:55
boost::variant< GTYPE, FTYPE, ATYPE, LTYPE > nxobject
Definition: nxobject.hpp:44
attribute_type result_type
result type
Definition: as_attribute.hpp:62
ATYPE attribute_type
Nexus attribute type.
Definition: as_attribute.hpp:57
as attribute visitor
Definition: as_attribute.hpp:49
result_type operator()(const group_type &) const
process group instances
Definition: as_attribute.hpp:76