Library | File Standard Definitions

Class xobject

# include <cipxx.h>

class xobject
{
public:
     xobject ();
protected:
     virtual xobject ();
 
public:
     xrttiobject *getRtti ();
     xstring getCipTypeName ();
 
     bool isSameAs (xrttiobject *type);
     bool isKindOf (xrttiobject *type);
 
     bool isRefCountable ();
};



Description

This is a base class for all CIP object types, such as interfaces, unions and data collections. This class provides methods which allow to access run-time type information.
Direct Known Subclasses:
xthrowable


Methods

xrttiobject *getRtti ()
  Returns the object run-time type information.

xstring getCipTypeName ()
  Returns the name of the object type.

xbool isSameAs (xrttiobject *type)
  Returns xtrue if the object is of the same type as specified by parameter type, otherwise returns xfalse.

xbool isKindOf (xrttiobject *type)
  Returns xtrue if the object is either of the same type as specified by parameter type or if the object type is derived from type, otherwise returns xfalse.

xbool isRefCountable ()
  Returns xtrue, if the object type is reference countable, otherwise returns xfalse.