GridFormat 0.4.0
I/O-Library for grid-like data structures
|
Helper class for VTK-XML readers to use.
#include <xml.hpp>
Public Member Functions | |
XMLReaderHelper (const std::string &filename) | |
const XMLElement & | get (std::string_view path="") const |
FieldPtr | make_points_field (std::string_view section_path, std::size_t num_expected_points) const |
Returns the field representing the points of the grid. | |
FieldPtr | make_data_array_field (std::string_view name, std::string_view section_path, const std::optional< std::size_t > number_of_tuples={}) const |
Returns a field which draws the actual field values from the file upon request. | |
FieldPtr | make_data_array_field (const XMLElement &element, const std::optional< std::size_t > number_of_tuples={}) const |
Returns a field which draws the actual field values from the file upon request. | |
Static Public Member Functions | |
static XMLReaderHelper | make_from (const std::string &filename, std::string_view vtk_type) |