24 #include <pni/core/error.hpp>
25 #include "../nxobject.hpp"
77 throw type_error(EXCEPTION_RECORD,
78 "Object is not an instance of nxfield, "
111 throw type_error(EXCEPTION_RECORD,
112 "Object is not an instance of nxfield, "
113 "but of nxattribute!");
131 throw type_error(EXCEPTION_RECORD,
132 "Object is not an instance of nxfield but of "
169 return boost::apply_visitor(visitor_type(),o);
result_type operator()(const link_type &) const
process link instances
Definition: as_field.hpp:128
result_type operator()(const attribute_type &) const
process attribute instances
Definition: as_field.hpp:108
GTYPE group_type
group type
Definition: as_field.hpp:55
LTYPE link_type
link type
Definition: as_field.hpp:59
Definition: cbf_reader.hpp:41
FTYPE field_type
field type
Definition: as_field.hpp:53
FTYPE as_field(const nxobject< GTYPE, FTYPE, ATYPE, LTYPE > &o)
as field wrapper
Definition: as_field.hpp:166
ATYPE attribute_type
attribute type
Definition: as_field.hpp:57
field_type result_type
result type of the visitor
Definition: as_field.hpp:61
result_type operator()(const field_type &f) const
process field instances
Definition: as_field.hpp:92
boost::variant< GTYPE, FTYPE, ATYPE, LTYPE > nxobject
Definition: nxobject.hpp:44
result_type operator()(const group_type &) const
process group instances
Definition: as_field.hpp:74
as field visitor
Definition: as_field.hpp:49