Environment containing parameter values.
Environment containing parameter values. The environment is separated into a list of "contexts" which may be selected by "push"ing and "pop"ing operations.
int setMyVariables(paramEnv *paramvals) { int myInt; quaternion myQuaternion; double myOptionalDouble; int retval = 1;
read the required variables retval &= paramvals->GET_INT(myInt); retval &= paramvals->GET_INT(myQuaternion);
read the optional variable; don't complain if we can't read it paramvals->QGET_DOUBLE(myOptionalDouble);
if (!retval) { logError("parseMyVariables"); logPrintf(" problems reading variables\n"); } return retval; }
Alphabetic index HTML hierarchy of classes or Java