IsInstanceOfClass (inline)

...

Syntax

//
//   Strong typing definition
//

static  inline  bool    IsInstanceOfClass(
                                OwlInstance             owlInstance,
                                const char              * name
                            )
{
    return  IsKindOfClass(GetInstanceClass(owlInstance), GetClassByName(GetModel(owlInstance), name));
}

static  inline  bool    IsInstanceOfClass(
                                OwlInstance             owlInstance,
                                char                    * name
                            )
{
    return  IsInstanceOfClass(
                    owlInstance,
                    (const char*) name
                );
}


//
//   Weak typing definition
//

static  inline  bool    IsInstanceOfClass(
                                int64_t                 owlInstance,
                                const char              * name
                            )
{
    return  IsKindOfClass(GetInstanceClass(owlInstance), GetClassByName(GetModel(owlInstance), name));
}

static  inline  bool    IsInstanceOfClass(
                                int64_t                 owlInstance,
                                char                    * name
                            )
{
    return  IsInstanceOfClass(
                    owlInstance,
                    (const char*) name
                );
}
    

Property owlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.

Property name

Size: 64 bit / 8 byte (reference)
This attribute represents the name of the class (given as char array / ASCII). The name is given by the host and the attribute is not changed.