GEOS SDK TechDocs
|
|
2.1 Object Creation and Destruction
|
2.3 Object Management Messages
These messages are utilities that identify the class of a particular object. You should not subclass these. Their use is shown in the GEOS Programming chapter.
ClassStruct * MSG_META_GET_CLASS();
This message returns a pointer to the
ClassStruct
structure of the recipient object's class.
Source: Unrestricted.
Destination: Any object.
Parameters: None.
Return: The object's class.
Interception: Don't.
Boolean MSG_META_IS_OBJECT_IN_CLASS(
ClassStruct * class);
This message determines whether the recipient object is a member of a given class (or a subclass of the given class). If the return is
true
, the object is in the class. If
false
, the object is not in the class. If a variant class is encountered (when checking to see if the object is an instance of a subclass of the passed class), the object will not be grown out past that class in the search. If you want to do a complete search past variant classes, send a
MSG_META_DUMMY
first.
Source: Unrestricted.
Destination: Any object.
Parameters:
class
Class to see if object is a member of.
Return: Returns true if object is a member of the passed class (or a subclass), false otherwise.
Interception: Don't.
GEOS SDK TechDocs
|
|
2.1 Object Creation and Destruction
|
2.3 Object Management Messages