These macros are defined in wxWindows.
CLASSINFO
WXDEBUG_NEW
DECLARE_ABSTRACT_CLASS
DECLARE_CLASS
DECLARE_DYNAMIC_CLASS
IMPLEMENT_ABSTRACT_CLASS
IMPLEMENT_ABSTRACT_CLASS2
IMPLEMENT_CLASS
IMPLEMENT_CLASS2
IMPLEMENT_DYNAMIC_CLASS
IMPLEMENT_DYNAMIC_CLASS2
WXTRACE
WXTRACELEVEL
wxClassInfo * CLASSINFO(className)
Returns a pointer to the wxClassInfo object associated with this class.
WXDEBUG_NEW(arg)
This is defined in debug mode to be call the redefined new operator with filename and line number arguments. The definition is:
#define WXDEBUG_NEW new(__FILE__,__LINE__)In non-debug mode, this is defined as the normal new operator.
DECLARE_ABSTRACT_CLASS(className)
Used inside a class declaration to declare that the class should be made known to the class hierarchy, but objects of this class cannot be created dynamically. The same as DECLARE_CLASS.
Example:
class wxCommand: public wxObject { DECLARE_ABSTRACT_CLASS(wxCommand) private: ... public: ... };
DECLARE_CLASS(className)
Used inside a class declaration to declare that the class should be made known to the class hierarchy, but objects of this class cannot be created dynamically. The same as DECLARE_ABSTRACT_CLASS.
DECLARE_DYNAMIC_CLASS(className)
Used inside a class declaration to declare that the objects of this class should be dynamically createable from run-time type information.
Example:
class wxFrame: public wxWindow { DECLARE_DYNAMIC_CLASS(wxFrame) private: char *frameTitle; public: ... };
IMPLEMENT_ABSTRACT_CLASS(className, baseClassName)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information. The same as IMPLEMENT_CLASS.
Example:
IMPLEMENT_ABSTRACT_CLASS(wxCommand, wxObject) wxCommand::wxCommand(void) { ... }
IMPLEMENT_ABSTRACT_CLASS2(className, baseClassName1, baseClassName2)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information and two base classes. The same as IMPLEMENT_CLASS2.
IMPLEMENT_CLASS(className, baseClassName)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information. The same as IMPLEMENT_ABSTRACT_CLASS.
IMPLEMENT_CLASS2(className, baseClassName1, baseClassName2)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information and two base classes. The same as IMPLEMENT_ABSTRACT_CLASS2.
IMPLEMENT_DYNAMIC_CLASS(className, baseClassName)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information, and whose instances can be created dynamically.
Example:
IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxWindow) wxFrame::wxFrame(void) { ... }
IMPLEMENT_DYNAMIC_CLASS2(className, baseClassName1, baseClassName2)
Used in a C++ implementation file to complete the declaration of a class that has run-time type information, and whose instances can be created dynamically. Use this for classes derived from two base classes.
WXTRACE(formatString, ...)
Calls wxTrace with printf-style variable argument syntax. Output is directed to the current output stream (see wxDebugContext).
WXTRACELEVEL(level, formatString, ...)
Calls wxTraceLevel with printf-style variable argument syntax. Output is directed to the current output stream (see wxDebugContext). The first argument should be the level at which this information is appropriate. It will only be output if the level returned by wxDebugContext::GetLevel is equal to or greater than this value.