Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

virtual const char* PObject::GetClass ( unsigned  = 0  )  const [inline, virtual, inherited]

Get the current dynamic type of the object instance.

When comparing class names, always use the strcmp()# function rather than comparing pointers. The pointers are not necessarily the same over compilation units depending on the compiler, platform etc.

The PCLASSINFO# macro declares an override of this function for the particular class. The user need not implement it.

pointer to C string literal.

Definition at line 1408 of file object.h.

References PObject::Class().

Referenced by PContainer::AssignContents(), PContainer::PContainer(), PObject::PrintOn(), PSafeObject::SafeDereference(), PSafeObject::SafeReference(), and PThread::SetThreadName().

{ return Class(); }

Generated by  Doxygen 1.6.0   Back to index