3 #include "ScopeDefines.h"
7 uint16_t Uint16LowerBoundary(
const Uint16Range& r) {
9 case Uint16RangeHelper::full:
10 case Uint16RangeHelper::firsthalf:
11 case Uint16RangeHelper::first4096:
13 case Uint16RangeHelper::secondhalf:
20 uint16_t Uint16UpperBoundary(
const Uint16Range& r) {
22 case Uint16RangeHelper::full:
23 case Uint16RangeHelper::secondhalf:
25 case Uint16RangeHelper::firsthalf:
27 case Uint16RangeHelper::first4096:
35 switch (_scannertype) {
37 case ScannerTypeHelper::Mode::Regular:
39 return std::vector<ScannerVectorTypeHelper::Mode>(ret, ret +
sizeof(ret) /
sizeof(ret[0]) ); }
40 case ScannerTypeHelper::Mode::Resonance:
42 return std::vector<ScannerVectorTypeHelper::Mode>(ret, ret +
sizeof(ret) /
sizeof(ret[0]) ); }
43 case ScannerTypeHelper::Mode::AOD:
45 return std::vector<ScannerVectorTypeHelper::Mode>(ret, ret +
sizeof(ret) /
sizeof(ret[0]) ); }
46 case ScannerTypeHelper::Mode::Fiber:
48 return std::vector<ScannerVectorTypeHelper::Mode>(ret, ret +
sizeof(ret) /
sizeof(ret[0]) ); }
55 return (std::end(veclist) != std::find(std::begin(veclist), std::end(veclist), _scanmode));
static bool IsSupported(const ScannerVectorTypeHelper::Mode &_scanmode, const ScannerTypeHelper::Mode &_scannertype=SCOPE_SCANNERTYPE)
Returns true if a given scannervector/scanmode is supported by a given scannertypeDefault scannertype...
Mode
The different types of scans.
static bool IsBuiltinSupported(const ScannerVectorTypeHelper::Mode &_scanmode)
Returns true if a given scannervector/scanmode is supported by the builtin/hardcoded (see ScopeDefine...
This is the include file for standard system include files, or project specific include files that ar...
In here all declarations for all kinds of datatypes Scope needs.
Mode
The different types of scanners.
static std::vector< ScannerVectorTypeHelper::Mode > List(const ScannerTypeHelper::Mode &_scannertype=SCOPE_SCANNERTYPE)
Returns a vector with all supported scannervectors for a given scannertype.