ccOREGetContext
ccOREGetContext(t_contextName) =>l_context
Description
Retrieves the Optical Rule Engine (ORE) context with the specified name.
Argument
Value Returned
Example
Define 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 context with the name ore_cxt.
ccOREGetContext("ore_cxt")
=> (nil PI_2 ccORENumber@0x27fd3b48 context ccOREString@0x27fd3b60 cell ccORERelation@0x27fd3b78 design
ccORERelation@0x27fd3bd8 PI ccORENumber@0x27fd3bf0 shape ccORERelation@0x27fd3c08
)
Get the ORE object stored in the variable PI_2 in the ORE context with the name ore_cxt.
ccOREGetContext("ore_cxt")->PI_2
=> ccORENumber@0x27fd3c20
Get the value of the ORE object stored in the variable PI_2 in the ORE context with the name ore_cxt.
ccOREGetContext("ore_cxt")->PI_2->value
=> 1.570796
Related Topics
Curvy Core Optical Rule Engine Functions
Return to top