Syntax
//
// Strong typing definition
//
static inline bool IsKindOfClass(
OwlClass myOwlClass,
OwlClass 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;
}
//
// Weak typing definition
//
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;
}
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.