Share

AcRxObject::queryX

C++

ACBASE_PORT AcRxObject* queryX(
    const AcRxClass* protocolClass
) const;

Description

This method searches for a protocol extension object associated with this object.

The method begins the search by examining the AcRxClass object associated with this object, and if no protocol extension object is found, the search continues in the base class of the object's class and so on up the inheritance tree for the class. This procedure provides a form of protocol extension inheritance. An object's AcRxClass member may be found by using the class's isA() method.

If the search for a protocol extension object is unsuccessful, then NULL is returned.

Note that the returned protocol extension object is returned via a generic AcRxObject pointer, so you must cast down to the actual type of the protocol extension class in order to be able to access the methods in the protocol extension object. The cast() method is the safest way to do this.

Parameters

Parameters Description
protocolClass Input pointer to AcRxClass object of the protocol extension class being searched for

Links

AcRxObject

Was this information helpful?