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