4#ifndef _4e0b8fa0_8cc9_43da_a9cc_1ff601e2829d
5#define _4e0b8fa0_8cc9_43da_a9cc_1ff601e2829d
7#include <MrGlobalDefinitions/MrResult.h>
8#include <MrMeasSrv/SeqIF/libRT/sGRAD_PULSE.h>
11#define ON_ERROR_RETURN_FALSE(S) \
13 MrResult const __status = (S); \
14 if(!MrSucceeded(__status)) \
21#define ON_ERROR_RETURN_STATUS(S) \
23 MrResult const __status = (S); \
24 if(!MrSucceeded(__status)) \
34#define ON_ERROR_SET_STATUS_AND_RETURN_FALSE(S) \
36 MrResult const __status = (S); \
37 if(!MrSucceeded(__status)) \
39 this->setNLSStatus(__status); \
45#define ON_FALSE_RETURN_FALSE(S) \
52#define ON_FALSE_RETURN_STATUS(O, S) \
55 return (O).getNLSStatus(); \
62#define ON_FALSE_SET_STATUS_AND_RETURN_FALSE(O, S) \
65 this->setNLSStatus((O).getNLSStatus()); \
88 return x.getStartTime() + x.getDuration();
Top-level namespace of the msl library.
Definition acceleration.h:17
long roundDownGRT(double value)
Round down the value to the nearest multiple of GRAD_RASTER_TIME.
long roundUpGRT(double value)
Round up the value to the nearest multiple of GRAD_RASTER_TIME.
long endTime(T const &x)
Get the end time of an non-GRAD_PULSE IDEA object.
Definition helpers.h:86
double roundUp(double value, double base)
Round up the value to the nearest multiple of base.
double roundDown(double value, double base)
Round down the value to the nearest multiple of base.