The adco_CParam class is used to encapsulate varying types of data so there need only be one each of the various GetParam/SetParam methods. Numeric data is stored internally, all other data types are stored as pointers or references. For this reason, non-numeric expressions should not be encapsulated. Value extraction is via cast operators. You can also determine the type of data stored via the VarType method. This returns an element of the "Parameter Types" constant enumerated list which can be found via the exported global constant pAdco_ParamTypes. List Element constants are also exported for each type (see table).
Public Constructors
adco_CParam( int ival )
Create a Parameter from an integer value.
adco_CParam( double dval )
Create a Parameter from a double value.
adco_CParam( const char* sval )
Create a parameter from a null termnated string. Note only the pointer is stored, the string is not duplicated internally.
API INTEGRATION CODING FOR DEVELOPERS
Parameter Class: adco_CParam
Description
The adco_CParam class is used to encapsulate varying types of data so there need only be one each of the various GetParam/SetParam methods. Numeric data is stored internally, all other data types are stored as pointers or references. For this reason, non-numeric expressions should not be encapsulated. Value extraction is via cast operators. You can also determine the type of data stored via the VarType method. This returns an element of the "Parameter Types" constant enumerated list which can be found via the exported global constant pAdco_ParamTypes. List Element constants are also exported for each type (see table).
Public Constructors
Create a parameter from a pointer to arbitrary user data.
Copy Constructor and Assignment
Extract: Caution - may throw conversion error
Properties
Table of Parameter Types Exported Constant Name Data Type