Added typeinfo.h which implements wxTypeId, using C++ RTTI if available. wxAny and Unbind<>() code are updated to use it. Added and updated related unit tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-11-19 19:27:24 +00:00
parent c7193f2821
commit 7db064f60f
25 changed files with 323 additions and 81 deletions

View File

@@ -63,25 +63,6 @@
Note that pointers to any and all classes are already automatically
declared as movable data.
@warning Caveat with shared libraries (DLLs): If you have a scenario where
you use wxAny across application's shared library and application
itself (or, with another of your shared libraries), then you must
use wxDECLARE_ANY_TYPE() macro in your shared library code to
correctly make sure that the wxAnyValueType implementation is
generated correctly. Failure to do this will result in breakage
of the wxAny type recognition with type in question. Below is an
example how to use the macro.
@code
// In your shared library/DLL-only
wxDECLARE_ANY_TYPE(MyClass, WXEXPORT)
// In your shared library/DLL source code
WX_IMPLEMENT_ANY_VALUE_TYPE(wxAnyValueTypeImpl<MyClass>)
// In code using said shared library/DLL
wxDECLARE_ANY_TYPE(MyClass, WXIMPORT)
@endcode
@library{wxbase}
@category{data}
@@ -433,11 +414,6 @@ public:
*/
virtual void DeleteValue(wxAnyValueBuffer& buf) const = 0;
/**
This function is used for internal type matching.
*/
virtual wxAnyClassInfo GetClassInfo() const = 0;
/**
This function is used for internal type matching.
*/