OpenFOAM
v2406
The open source CFD toolbox
foamVtkPTraits.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | www.openfoam.com
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
Copyright (C) 2016-2023 OpenCFD Ltd.
9
-------------------------------------------------------------------------------
10
License
11
This file is part of OpenFOAM.
12
13
OpenFOAM is free software: you can redistribute it and/or modify it
14
under the terms of the GNU General Public License as published by
15
the Free Software Foundation, either version 3 of the License, or
16
(at your option) any later version.
17
18
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
for more details.
22
23
You should have received a copy of the GNU General Public License
24
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26
\*---------------------------------------------------------------------------*/
27
28
#include "
foamVtkPTraits.H
"
29
#include "
foamEndianFwd.H
"
// For big/little endian defines
30
31
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33
template
<>
34
const
char
*
const
35
Foam::vtkPTraits<uint8_t>::typeName
=
"UInt8"
;
36
37
template
<>
38
const
char
*
const
39
Foam::vtkPTraits<int32_t>::typeName
=
"Int32"
;
40
41
template
<>
42
const
char
*
const
43
Foam::vtkPTraits<uint32_t>::typeName
=
"UInt32"
;
44
45
template
<>
46
const
char
*
const
47
Foam::vtkPTraits<int64_t>::typeName
=
"Int64"
;
48
49
template
<>
50
const
char
*
const
51
Foam::vtkPTraits<uint64_t>::typeName
=
"UInt64"
;
52
53
template
<>
54
const
char
*
const
55
Foam::vtkPTraits<float>::typeName
=
"Float32"
;
56
57
template
<>
58
const
char
*
const
59
Foam::vtkPTraits<double>::typeName
=
"Float64"
;
60
61
#ifdef WM_LITTLE_ENDIAN
62
template
<>
63
const
char
*
const
64
Foam::vtkPTraits<Foam::endian>::typeName
=
"LittleEndian"
;
65
#else
66
template
<>
67
const
char
*
const
68
Foam::vtkPTraits<Foam::endian>::typeName
=
"BigEndian"
;
69
#endif
70
71
template
<>
72
const
char
*
const
73
Foam::vtkPTraits<std::string>::typeName
=
"String"
;
74
75
76
// ************************************************************************* //
Foam::vtkPTraits
Names for VTK primitive types.
Definition:
foamVtkPTraits.H:46
foamEndianFwd.H
Define WM_BIG_ENDIAN or WM_LITTLE_ENDIAN and forward declare Foam::endian class.
foamVtkPTraits.H
src
fileFormats
vtk
base
foamVtkPTraits.C
Generated by
1.8.14