Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef SDIR_H
00015 #define SDIR_H
00016
00017
00018
00019
00020
00021
00022 typedef enum ScanDirection
00023 {
00024 BackwardScanDirection = -1,
00025 NoMovementScanDirection = 0,
00026 ForwardScanDirection = 1
00027 } ScanDirection;
00028
00029
00030
00031
00032
00033 #define ScanDirectionIsValid(direction) \
00034 ((bool) (BackwardScanDirection <= (direction) && \
00035 (direction) <= ForwardScanDirection))
00036
00037
00038
00039
00040
00041 #define ScanDirectionIsBackward(direction) \
00042 ((bool) ((direction) == BackwardScanDirection))
00043
00044
00045
00046
00047
00048 #define ScanDirectionIsNoMovement(direction) \
00049 ((bool) ((direction) == NoMovementScanDirection))
00050
00051
00052
00053
00054
00055 #define ScanDirectionIsForward(direction) \
00056 ((bool) ((direction) == ForwardScanDirection))
00057
00058 #endif