IsInstanceOfClassExact (inline)

...

Syntax

//
//   Strong typing definition
//

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

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


//
//   Weak typing definition
//

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

static  inline  bool    IsInstanceOfClassExact(
                                int64_t                 owlInstance,
                                char                    * name
                            )
{
    return  IsInstanceOfClassExact(
                    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.