IsInstanceOfClassExact (inline)

...

Syntax

//
//   Strong typing definition
//

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


//
//   Weak typing definition
//

static  inline  bool    IsInstanceOfClassExact(
                                int64_t                 owlInstance,
                                const char              * name
                            )
{
    return  GetInstanceClass(owlInstance) == GetClassByName(GetModel(owlInstance), 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: 32 bit / 4 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.