switchOnEncoding.h File Reference

#include "ComplexData.h"

Go to the source code of this file.

Defines

#define switchOnEncoding(encoding, function,...)
#define switchOnComplexEncoding(encoding, function,...)


Define Documentation

#define switchOnComplexEncoding ( encoding,
function,
...   ) 

Definition at line 46 of file switchOnEncoding.h.

#define switchOnEncoding ( encoding,
function,
...   ) 

Value:

switch (encoding) \
   { \
   case INT1UBYTE: \
      function((unsigned char*)__VA_ARGS__); \
      break; \
   case INT1SBYTE: \
      function((signed char*)__VA_ARGS__); \
      break; \
   case INT2UBYTES: \
      function((unsigned short*)__VA_ARGS__); \
      break; \
   case INT2SBYTES: \
      function((signed short*)__VA_ARGS__); \
      break; \
   case INT4UBYTES: \
      function((unsigned int*)__VA_ARGS__); \
      break; \
   case INT4SBYTES: \
      function((signed int*)__VA_ARGS__); \
      break; \
   case FLT4BYTES: \
      function((float*)__VA_ARGS__); \
      break; \
   case FLT8BYTES: \
      function((double*)__VA_ARGS__); \
      break; \
   default: \
      break; \
   }
Examples:
Tutorial/Tutorial3.cpp, Tutorial/Tutorial4.cpp, and Tutorial/Tutorial5.cpp.

Definition at line 15 of file switchOnEncoding.h.


Software Development Kit - Opticks 4.9.0 Build 16218