VTK  9.4.20241117
VTXTypes.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
4/*
5 * VTXTypes.h : header-only type definitions needed by the VTK::IOADIOS2 module
6 *
7 * Created on: May 14, 2019
8 * Author: William F Godoy godoywf@ornl.gov
9 */
10
11#ifndef VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h
12#define VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h
13
14#include <map>
15#include <vector>
16
17#include "VTXDataArray.h"
18
19#include <adios2.h>
20
21namespace vtx
22{
23namespace types
24{
25VTK_ABI_NAMESPACE_BEGIN
26
28using DataSet = std::map<std::string, DataArray>;
29
30enum class DataSetType
31{
34 Points,
36 Cells,
37 Verts,
38 Lines,
39 Strips,
40 Polys
41};
42
43using Piece = std::map<DataSetType, DataSet>;
44
45#define VTK_IO_ADIOS2_VTX_ARRAY_TYPE(MACRO) \
46 MACRO(int32_t) \
47 MACRO(uint32_t) \
48 MACRO(int64_t) \
49 MACRO(uint64_t) \
50 MACRO(float) \
51 MACRO(double)
52
53VTK_ABI_NAMESPACE_END
54} // end namespace types
55} // end namespace vtx
56
57#endif /* VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h */
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition VTXTypes.h:28
std::map< DataSetType, DataSet > Piece
Definition VTXTypes.h:43