HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_ParmMacros.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OP Library (C++)
7  *
8  * COMMENTS: Convenient macros for evaluating parms.
9  *
10  */
11 #ifndef OP_PARM_MACROS_H
12 #define OP_PARM_MACROS_H
13 
14 //
15 // macros to use parmIndirect[] array which optimizes UI parameter access
16 //
17 #define EVAL_STR(name, idx, vi, t) \
18  evalString(str, name, &parmIndirect[idx], vi, t);
19 #define EVAL_INT(name, idx, vi, t) \
20  return evalInt(name, &parmIndirect[idx], vi, t);
21 #define EVAL_FLT(name, idx, vi, t) \
22  return evalFloat(name, &parmIndirect[idx], vi, t);
23 
24 #define SET_STRING(val, meaning, name, idx, vi, t) \
25  setString(val, meaning, name, parmIndirect[idx], vi, t)
26 #define SET_INT(name, idx, vi, t, val) \
27  setInt(name, parmIndirect[idx], vi, t, val);
28 #define SET_FLT(name, idx, vi, t, val) \
29  setFloat(name, parmIndirect[idx], vi, t, val);
30 
31 #endif