27#ifndef DECLARATIONS_H_
28#define DECLARATIONS_H_
33#define PI 3.141592653589793238462643383279502884197169399375105820974944592
34#define TWOPI 6.283185307179586476925286766559005768394338798750211641949889185
35const double TIME_ERR_TOL = 2.5e-6;
95enum PulseAxis {AXIS_RF, AXIS_GX, AXIS_GY, AXIS_GZ,
159 UNMATCHED_DIMENSIONS,
163 static std::string StatusMessage[LAST_STATUS_ENTRY] = {
164 std::string(
"IO notice: OK."),
165 std::string(
"IO error: Empty file name."),
166 std::string(
"IO error: File not found."),
167 std::string(
"IO error: Insufficient privileges."),
168 std::string(
"IO error: HDF5, general file excption."),
169 std::string(
"IO error: HDF5, dataset exception."),
170 std::string(
"IO error: HDF5, dataspace exception."),
171 std::string(
"IO error: HDF5, datatype exception.")
198static inline std::string strtoupper (
const std::string& str) {
199 std::string res = str;
200 std::transform(res.begin(), res.end(), res.begin(), ::toupper);
204static inline std::string strtolower (
const std::string& str) {
205 std::string res = str;
206 std::transform(res.begin(), res.end(), res.begin(), ::tolower);
210static inline bool strcompare (
const std::string& a,
const std::string& b) {
211 return strtoupper(a).compare(strtoupper(b));
fields
Definition Declarations.h:47
@ ID
Index of spin
Definition Declarations.h:56
@ R2S
Relaxation rate 2: 1/T2S
Definition Declarations.h:54
@ YC
Y location
Definition Declarations.h:49
@ M0
Equilibrium magnetisation.
Definition Declarations.h:51
@ R2
Relaxation rate 2: 1/T2
Definition Declarations.h:53
@ DB
Delta B (e.g. chemical-shift + susceptiblity-induced, ...)
Definition Declarations.h:55
@ NO_SPIN_PROPERTIES
counts number of entries to enum fields. must stay last element, other entries to 'fields' may not be...
Definition Declarations.h:57
@ ZC
Z location
Definition Declarations.h:50
@ XC
X location
Definition Declarations.h:48
@ R1
Relaxation rate 1: 1/T1
Definition Declarations.h:52
mode
Definition Declarations.h:112
@ RX
Definition Declarations.h:113
@ TX
Definition Declarations.h:114
Strategy
Definition Declarations.h:139
@ IOSTRATEGIES
Definition Declarations.h:144
@ HDF5
Definition Declarations.h:142
@ SIMPLE
Definition Declarations.h:141
@ CDF
Definition Declarations.h:143
SensitivityMethod
Definition Declarations.h:102
@ BIOT_SAVART_LOOP
Biot-Savart integration for loop
Definition Declarations.h:105
@ ONE_OVER_R_SQUARE
Idealistic 1/r^2 snsitivity for each coil.
Definition Declarations.h:104
@ UNIFORM
Uniform idealistic sensitivity map equal 1.
Definition Declarations.h:103
polar
Definition Declarations.h:75
@ PHASE
Phase
Definition Declarations.h:77
@ AMPL
Amplitude.
Definition Declarations.h:76
Status
Definition Declarations.h:150
@ HDF5_DATASPACE_I_EXCEPTION
Definition Declarations.h:157
@ HDF5_FILE_I_EXCEPTION
Definition Declarations.h:155
@ HDF5_DATASET_I_EXCEPTION
Definition Declarations.h:156
@ OK
Definition Declarations.h:151
@ EMPTY_FILE_NAME
Definition Declarations.h:152
@ FILE_NOT_FOUND
Definition Declarations.h:153
@ INSUFFICIENT_PRIVILEGES
Definition Declarations.h:154
@ HDF5_DATATYPE_I_EXCEPTION
Definition Declarations.h:158
MpiTag
Definition Declarations.h:120
seqval
Definition Declarations.h:84
@ GRAD_Y
Phase
Definition Declarations.h:88
@ GRAD_Z
Slice
Definition Declarations.h:89
@ RF_AMP
Amplitude.
Definition Declarations.h:85
@ RF_PHS
Phase
Definition Declarations.h:86
@ GRAD_X
Readout
Definition Declarations.h:87
cylinder
Definition Declarations.h:65
@ RC
Radius
Definition Declarations.h:66
@ RZ
Azimuth.
Definition Declarations.h:68
@ RT
Heading.
Definition Declarations.h:67
Mode
Definition Declarations.h:178
@ APPEND
Definition Declarations.h:181
@ IN
Definition Declarations.h:179
@ OUT
Definition Declarations.h:180