IsInstanceOfClass (inline)

...

Syntax

//
//   Linux, MacOS and non-Visual Studio Windows solutions (pure C++11 / C++98)
//

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


//
//   Visual Studio for Windows
//

static  inline  bool    IsInstanceOfClass(
                                __int64             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: 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.