IsKindOfClass (inline)

...

Syntax

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

static  inline  bool    IsKindOfClass(
                                int64_t             myOwlClass,
                                int64_t             owlClass
                            )
{
    if (myOwlClass == owlClass)
        return  true;
    int64_t parentOwlClass = GetClassParentsByIterator(myOwlClass, 0);
    while (parentOwlClass) {
        if (IsKindOfClass(parentOwlClass, owlClass))
            return  true;
        parentOwlClass = GetClassParentsByIterator(myOwlClass, parentOwlClass);
    }
    return  false;
}


//
//   Visual Studio for Windows
//

static  inline  bool    IsKindOfClass(
                                __int64             myOwlClass,
                                __int64             owlClass
                            )
{
    if (myOwlClass == owlClass)
        return  true;
    int64_t parentOwlClass = GetClassParentsByIterator(myOwlClass, 0);
    while (parentOwlClass) {
        if (IsKindOfClass(parentOwlClass, owlClass))
            return  true;
        parentOwlClass = GetClassParentsByIterator(myOwlClass, parentOwlClass);
    }
    return  false;
}
    

Property myOwlClass

Size: 64 bit / 8 byte (value)
This attribute represents a handle to the class. The term owl is comming from W3C, the classes follow the expression power of Semantic Web concepts, therefore classes support multiple inheritance. Technically classes can also be distributed over different resources, however for this the parametric library is required as an extension on the basic Geometry Kernel API.

Property owlClass

Size: 64 bit / 8 byte (value)
This attribute represents a handle to the class. The term owl is comming from W3C, the classes follow the expression power of Semantic Web concepts, therefore classes support multiple inheritance. Technically classes can also be distributed over different resources, however for this the parametric library is required as an extension on the basic Geometry Kernel API.