18 #ifndef OUTPUT_DATA_BASE_HH_ 19 #define OUTPUT_DATA_BASE_HH_ 51 typedef enum { VTK_INT8, VTK_UINT8, VTK_INT16, VTK_UINT16, VTK_INT32, VTK_UINT32,
52 VTK_FLOAT32, VTK_FLOAT64
63 virtual void print_ascii(ostream &out_stream,
unsigned int idx) = 0;
68 virtual void print_ascii_all(ostream &out_stream) = 0;
73 virtual void print_binary_all(ostream &out_stream) = 0;
79 virtual void print_all_yaml(ostream &out_stream,
unsigned int precision) = 0;
84 virtual void get_min_max_range(
double &min,
double &max) = 0;
110 vtk_type_ = VTK_FLOAT64;
112 vtk_type_ = VTK_UINT32;
114 vtk_type_ = VTK_INT32;
116 ASSERT(
false).error(
"Unsupported VTK type");
Common parent class for templated OutputData.
std::string output_field_name
VTKValueType vtk_type_
Type of stored data.
virtual ~OutputDataBase()
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
static constexpr bool value
Global macros to enhance readability and debugging, general constants.
VTKValueType
Types of VTK value.
Class for representation SI units of Fields.