VTK
9.0.1
IO
ADIOS2
Core
vtkADIOS2CoreTypeTraits.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkADIOS2CoreImageReader.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
=========================================================================*/
19
#ifndef vtkADIOS2CoreTypeTraits_h
20
#define vtkADIOS2CoreTypeTraits_h
21
22
#include "
vtkType.h
"
23
24
#include "vtkIOADIOS2Module.h"
// For export macro
25
26
template
<
typename
T>
27
struct
NativeToVTKType
28
{
29
static
constexpr
int
VTKType
= 0;
30
};
31
32
template
<>
33
struct
NativeToVTKType
<char>
34
{
35
static
constexpr
int
VTKType
=
VTK_CHAR
;
36
};
37
38
template
<>
39
struct
NativeToVTKType
<float>
40
{
41
static
constexpr
int
VTKType
=
VTK_FLOAT
;
42
};
43
44
template
<>
45
struct
NativeToVTKType
<double>
46
{
47
static
constexpr
int
VTKType
=
VTK_DOUBLE
;
48
};
49
50
template
<>
51
struct
NativeToVTKType
<int8_t>
52
{
53
static
constexpr
int
VTKType
= VTK_TYPE_INT8;
54
};
55
56
template
<>
57
struct
NativeToVTKType
<uint8_t>
58
{
59
static
constexpr
int
VTKType
= VTK_TYPE_UINT8;
60
};
61
62
template
<>
63
struct
NativeToVTKType
<int16_t>
64
{
65
static
constexpr
int
VTKType
= VTK_TYPE_INT16;
66
};
67
68
template
<>
69
struct
NativeToVTKType
<uint16_t>
70
{
71
static
constexpr
int
VTKType
= VTK_TYPE_UINT16;
72
};
73
74
template
<>
75
struct
NativeToVTKType
<int32_t>
76
{
77
static
constexpr
int
VTKType
= VTK_TYPE_INT32;
78
};
79
80
template
<>
81
struct
NativeToVTKType
<uint32_t>
82
{
83
static
constexpr
int
VTKType
= VTK_TYPE_UINT32;
84
};
85
86
template
<>
87
struct
NativeToVTKType
<int64_t>
88
{
89
static
constexpr
int
VTKType
= VTK_TYPE_INT64;
90
};
91
92
template
<>
93
struct
NativeToVTKType
<uint64_t>
94
{
95
static
constexpr
int
VTKType
= VTK_TYPE_UINT64;
96
};
97
98
#endif
99
// VTK-HeaderTest-Exclude: vtkADIOS2CoreTypeTraits.h
NativeToVTKType
Type traits for adios2 types(Native types) to vtk types.
Definition:
vtkADIOS2CoreTypeTraits.h:27
vtkType.h
VTK_CHAR
#define VTK_CHAR
Definition:
vtkType.h:43
NativeToVTKType::VTKType
static constexpr int VTKType
Definition:
vtkADIOS2CoreTypeTraits.h:29
VTK_FLOAT
#define VTK_FLOAT
Definition:
vtkType.h:52
VTK_DOUBLE
#define VTK_DOUBLE
Definition:
vtkType.h:53
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17