Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdRxObject::x Method
Syntax
C++
virtual OdRxObject* x(const OdRxClass* pClass) const;

Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot. 

 

Parameters
Description
pClass
[in] Raw pointer to the class describing instance to which the object must be converted.

This method generates the eNotThatKindOfClass exception when the object can be not converted to the specified class. This method generates the eInvalidInput exception when the argument pClass is Null. This method uses the queryX() method.

Example of Belonging to an Instance of a Class 

Belonging to an Instance of a Class

Copyright © 2002-2022. Open Design Alliance All rights reserved.