API Reference > OdRx Classes > OdRxObject Class > OdRxObject Methods > OdRxObject::queryX Method
OdRxObject::queryX Method
Syntax
C++
virtual OdRxObject* queryX(const OdRxClass* pClass) const;
Parameters 
Description 
const OdRxClass* pClass 
[in] Raw pointer to the class describing instance to which the object must be converted. 

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. 

 

If the object cannot be converted, the method returns a Null. The program must release this object, if the returned pointer is not Null.

Example of Belonging to an Instance of a Class 

Belonging to an Instance of a Class

Copyright © 2002–2020. Open Design Alliance. All rights reserved.