4#ifndef _4e0b8fa0_8cc9_43da_a9cc_1ff601e2829d
5#define _4e0b8fa0_8cc9_43da_a9cc_1ff601e2829d
7#include <MrGlobalDefinitions/MrResult.h>
9#include <MrMeasSrv/SeqIF/libRT/sGRAD_PULSE.h>
11#include <MrProtSrv/Domain/MrProtData/MrProt/MrProt.h>
12#include <MrProtSrv/Domain/CoreNative/SeqLim.h>
16#define ON_ERROR_RETURN_FALSE(S) \
18 MrResult const __status = (S); \
19 if(!MrSucceeded(__status)) \
26#define ON_ERROR_RETURN_STATUS(S) \
28 MrResult const __status = (S); \
29 if(!MrSucceeded(__status)) \
39#define ON_ERROR_SET_STATUS_AND_RETURN_FALSE(S) \
41 MrResult const __status = (S); \
42 if(!MrSucceeded(__status)) \
44 this->setNLSStatus(__status); \
50#define ON_FALSE_RETURN_FALSE(S) \
57#define ON_FALSE_RETURN_STATUS(O, S) \
60 return (O).getNLSStatus(); \
67#define ON_FALSE_SET_STATUS_AND_RETURN_FALSE(O, S) \
70 this->setNLSStatus((O).getNLSStatus()); \
76#define MSL_DEPRECATED __declspec(deprecated)
79#define MSL_DEPRECATED __attribute__((deprecated))
83#define DECLARE_POINTERS(name) \
85 using Pointer = std::shared_ptr<name>; \
87 using ConstPointer = std::shared_ptr<name const>;
108 return x.getStartTime() + x.getDuration();
115NLSStatus
setGain(MrProt & protocol, SeqLim & limits,
double thickness);
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.
NLSStatus setGain(MrProt &protocol, SeqLim &limits, double thickness)
Set the gain to high for slices thinner than given thickness.
long endTime(T const &x)
Get the end time of an non-GRAD_PULSE IDEA object.
Definition helpers.h:106
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.