25 #include <pni/core/types.hpp>
26 #include <pni/core/error.hpp>
27 #include <pni/core/type_erasures.hpp>
51 typedef typename ATYPE::storage_type storage_type;
52 pni::core::shape_t shape;
56 shape = pni::core::shape_t{1};
61 auto buffer = io_node::data_from_xml<storage_type>(data);
63 return ATYPE::create(std::move(shape),std::move(buffer));
Definition: cbf_reader.hpp:41
boost::property_tree::ptree node
alias for ptree
Definition: node.hpp:39
ATYPE make_array(const node &data)
generate an array
Definition: array_utils.hpp:49
static size_t rank(const node &io_node)
return object rank
Definition: io_node.cpp:44
static pni::core::shape_t shape(const node &io_node)
return object shape
Definition: io_node.cpp:61