VTK  9.1.0
VTXTypes.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: VTXTypes.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14 =========================================================================*/
15
16/*
17 * VTXTypes.h : header-only type definitions needed by the VTK::IOADIOS2 module
18 *
19 * Created on: May 14, 2019
20 * Author: William F Godoy godoywf@ornl.gov
21 */
22
23#ifndef VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h
24#define VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h
25
26#include <map>
27#include <vector>
28
29#include "VTXDataArray.h"
30
31#include <adios2.h>
32
33namespace vtx
34{
35namespace types
36{
37
39using DataSet = std::map<std::string, DataArray>;
40
41enum class DataSetType
42{
45 Points,
47 Cells,
48 Verts,
49 Lines,
50 Strips,
51 Polys
52};
53
54using Piece = std::map<DataSetType, DataSet>;
55
56#define VTK_IO_ADIOS2_VTX_ARRAY_TYPE(MACRO) \
57 MACRO(int32_t) \
58 MACRO(uint32_t) \
59 MACRO(int64_t) \
60 MACRO(uint64_t) \
61 MACRO(float) \
62 MACRO(double)
63
64} // end namespace types
65} // end namespace vtx
66
67#endif /* VTK_IO_ADIOS2_VTX_COMMON_VTXTypes_h */
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:39
std::map< DataSetType, DataSet > Piece
Definition: VTXTypes.h:54