This is the root class of all wxWindows classes. It declares a virtual destructor which ensures that destructors get called for all derived class objects where necessary.
From wxWindows 1.62, wxObject is the hub of a dynamic object creation scheme, enabling a program to create instances of a class only knowing its string class name, and to query the class hierarchy.
See also wxClassInfo.
wxObject::__type
wxObject::Dump
wxObject::GetClassInfo
wxObject::IsKindOf
wxObject::LoadObject
wxObject::SaveObject
wxObject::operator new
wxObject::operator delete
WXTYPE __type
OBSOLETE MEMBER. Please see the run time class information for an alternative type system.
Data member used for storing dynamic type information. Most wxWindows classes set this member to an appropriate type, which may be overridden in derived classes. Optionally set this in your constructor. The type may be checked using ::wxSubType.
Note the double underscore prefixing this name, in order to minimize clashes with application code. There is no accessor function for this member, and its scope is public.
See also wxTypeTree.
NOTE: This typing scheme will soon become obsolete since there is now a better system using DECLARE... and IMPLEMENT... macros to register run-time type information.
void Dump(ostream& stream)
A virtual function that should be redefined by derived classes to allow dumping of memory states. Currently wxWindows does not define Dump for derived classes, but programmers may wish to use it for their own applications. Be sure to call the Dump member of the class's base class to allow all information to be dumped.
The implementation of this function just writes the class name of the object. If DEBUG is undefined or zero, the implementation is empty.
wxClassInfo * GetClassInfo(void)
This virtual function is redefined for every class that requires run-time type information.
Bool IsKindOf(wxClassInfo *info)
Determines whether this class is a subclass of (or the same class as) the given class. E.g.:
Bool tmp = obj->IsKindOf(CLASSINFO(wxFrame));
istream& LoadObject(istream& stream)
The basis for a future persistent storage scheme.
ostream& SaveObject(istream& stream)
The basis for a future persistent storage scheme.
void * new(size_t size, char *filename = NULL, int lineNum = 0)
The new operator is defined for debugging versions of the library only, when the identifier DEBUG is defined and is more than zero. It takes over memory allocation, allowing wxDebugContext operations.
void delete(void buf)
The delete operator is defined for debugging versions of the library only, when the identifier DEBUG is defined and is more than zero. It takes over memory deallocation, allowing wxDebugContext operations.