OMXgroup::ret_class_ptr


Synopsis


void *OMXgroup::ret_class_ptr(
const char  *class_name);

 

Description

OMXgroup::ret_class_ptr returns a pointer to the C++ class specified that was associated with this object using the property cxx_class. You use this routine when you have associated your own C++ class with an AVS/Express object and you want to get a pointer to the object that AVS/Express created of your class. Usually this is used in the code for an AVS/Express method.

Arguments

class_name

The name of some class specified with the cxx_class property on this object or on a template that this object was created from.

Returned value

This routine returns a void * that can then be cast to the object you specified.

Example

This example shows how to retrieve a pointer to a C++ class called QuadraticSolver that was associated with an AVS/Express object using the cxx_class property. For the full text of this example,

•      See


int
EXquad_solver::update_roots(OMevent_mask event_mask, int seq_num)
{
// Get the pointer to the user defined C++ class
QuadraticSolver *my_class_ptr =
(QuadraticSolver *)ret_class_ptr("QuadraticSolver");