openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
tools
igbutils
DataTypes.h
Go to the documentation of this file.
1
#ifndef DATATYPE_H
2
#define DATATYPE_H
3
4
#include <stdio.h>
5
#include <time.h>
6
#include <zlib.h>
7
#include <stdbool.h>
8
#ifdef USE_HDF5
9
#include <hdf5.h>
10
#endif
11
12
#define REAL_IS_DOUBLE 1
13
14
typedef
double
Real
;
15
typedef
int
Integer
;
16
18
typedef
enum
{
19
dtype_Gatetype
,
20
dtype_Real
,
21
dtype_Float
,
22
dtype_Char
,
23
dtype_Integer
,
24
dtype_Double
,
25
dtype_Short
,
26
dtype_GlobalData_t
,
27
dtype_long
,
28
dtype_bool
29
}
DataType
;
30
32
static
const
char
*
const
data_type_names[] = {
33
"Gatetype"
,
34
"Real"
,
35
"float"
,
36
"char"
,
37
"int"
,
38
"double"
,
39
"short"
,
40
"GlobalData_t"
,
41
"long"
,
42
"bool"
43
};
44
45
// Gatetype is defined in LIMPET only and typically defined as float
46
// if defined otherwise, the size has to be overruled within LIMPET
47
// in this case the const qualifier has to be removed.
48
#define GATETYPE_SIZE 4
49
#define GLOBALDATA_T_SIZE 8
50
52
static
const
int
data_type_sizes[] = {
53
GATETYPE_SIZE
,
54
sizeof
(
Real
),
55
sizeof
(
float
),
56
sizeof
(char),
57
sizeof
(
int
),
58
sizeof
(double),
59
sizeof
(
short
),
60
GLOBALDATA_T_SIZE
,
61
sizeof
(long),
62
sizeof
(
bool
)
63
};
64
65
66
#endif
// DATATYPE_H
GATETYPE_SIZE
#define GATETYPE_SIZE
Definition:
DataTypes.h:48
Real
double Real
Definition:
DataTypes.h:14
GLOBALDATA_T_SIZE
#define GLOBALDATA_T_SIZE
Definition:
DataTypes.h:49
DataType
DataType
data type IDs
Definition:
DataTypes.h:18
dtype_Float
@ dtype_Float
Definition:
DataTypes.h:21
dtype_long
@ dtype_long
Definition:
DataTypes.h:27
dtype_Short
@ dtype_Short
Definition:
DataTypes.h:25
dtype_Char
@ dtype_Char
Definition:
DataTypes.h:22
dtype_Real
@ dtype_Real
Definition:
DataTypes.h:20
dtype_GlobalData_t
@ dtype_GlobalData_t
Definition:
DataTypes.h:26
dtype_Integer
@ dtype_Integer
Definition:
DataTypes.h:23
dtype_Double
@ dtype_Double
Definition:
DataTypes.h:24
dtype_Gatetype
@ dtype_Gatetype
Definition:
DataTypes.h:19
dtype_bool
@ dtype_bool
Definition:
DataTypes.h:28
Integer
int Integer
Definition:
DataTypes.h:15
Generated by
1.9.1