ccOREGetContextObject
ccOREGetContextObject(t_contextName t_objectName) =>r_object
Description
Retrieves the defstruct representing the specified Optical Rule Engine (ORE) object in the specified ORE context.
Arguments
Value Returned
|
Defstruct representing the ORE object. The operation fails and an error is displayed if the context with the given name does not exist. |
Example
Define the variable PI_2 and save the resulting ORE context under the name ore_cxt.
ccORE(?rule '((define PI_2 PI/2)) ?saveContext "ore_cxt")
=> t
Get the ORE object stored in the variable PI_2 in the ORE context with the name ore_cxt.
ccOREGetContextObject("ore_cxt" "PI_2")
=> ccORENumber@0x27fd3dd0
Get the value of the ORE object stored in variable PI_2 in the ORE context with the name ore_cxt.
ccOREGetContextObject("ore_cxt" "PI_2")->value
=> 1.570796
Related Topics
Curvy Core Optical Rule Engine Functions
Return to top