24#ifndef VTK_IO_ADIOS2_VTX_SCHEMA_VTXSchema_h
25#define VTK_IO_ADIOS2_VTX_SCHEMA_VTXSchema_h
68 const std::string& type,
const std::string& schema, adios2::IO& io, adios2::Engine& engine);
88 virtual void ReadPiece(
const size_t step,
const size_t pieceID) = 0;
90 void GetTimes(
const std::string& variableName =
"");
92 const std::string& variableName,
types::DataArray& dataArray,
const size_t step = 0);
94#define declare_type(T) \
95 virtual void SetDimensions( \
96 adios2::Variable<T> variable, const types::DataArray& dataArray, const size_t step); \
98 virtual void SetBlocks( \
99 adios2::Variable<T> variable, types::DataArray& dataArray, const size_t step);
106 void GetDataArrayCommon(
107 adios2::Variable<T> variable, types::DataArray& dataArray,
const size_t step);
110 void GetDataArrayGlobal(
111 adios2::Variable<T> variable, types::DataArray& dataArray,
const size_t step);
114 void GetDataArrayLocal(
115 adios2::Variable<T> variable, types::DataArray& dataArray,
const size_t step);
118 void GetDataValueGlobal(
119 adios2::Variable<T> variable, types::DataArray& dataArray,
const size_t step);
122 void GetTimesCommon(
const std::string& variableName);
125 void InitDataArray(
const std::string& name,
const size_t elements,
const size_t components,
126 types::DataArray& dataArray);
#define VTK_IO_ADIOS2_VTX_ARRAY_TYPE(MACRO)
Composite dataset that organizes datasets into blocks.
Abstract common class to supported ADIOS2 schemas.
void GetDataArray(const std::string &variableName, types::DataArray &dataArray, const size_t step=0)
void Fill(vtkMultiBlockDataSet *multiBlock, const size_t step=0)
Fills multiblock data from request steps.
void GetTimes(const std::string &variableName="")
virtual void DoFill(vtkMultiBlockDataSet *multiBlock, const size_t step)=0
VTXSchema(const std::string &type, const std::string &schema, adios2::IO &io, adios2::Engine &engine)
Generic base constructor.
std::string Schema
schema contents as a single string
std::map< double, size_t > Times
Stored times and corresponding steps.
const std::string Type
carries schema type from derived class
virtual void ReadPiece(const size_t step, const size_t pieceID)=0
virtual void InitTimes()=0