In C++, when we use typeid to get type name of an object or class, it will show a decorated(mangled) string. I use cxxabi to demangle it:
I\'m building a really crude GUI to model mapper which basically traverses all TEdit and TMemo fields on a form, extracts the text and set this text in a data model object. (The solution hinges on am
I\'m trying to extend the functionality of some classes that I do not have access to. Basically I\'m trying to create a toString/toXML method for logging purposes. I though开发者_StackOverflow中文版t
I want to serialize an Object in Delphi and I\'m using the new RTTI. Butwhen I load the values from the storage, they are retreived as string,s and TRttiProperty.SetValue needs a TValue as a second ar
Given a class and subclass: class Event {...} class Note : public Event {...} A Note is Cloned and stored in a pointer within a function f(). The type-information is preserved in the pointer and ca
I\'m trying to have RTTI enabled only for a subset of my classes. The reason is that for those classes for which I want RTTI, I want RTTI on public methods too, but if that is enabled project-wide, t
In the question here a method for creating a compatible TValue to use with SetValue is shown. I\'m trying to make a generic version of this, to use RTTI to store a class into an INI file. This is my c
I\'m micro-optimizing code for identifying object types. I assume I can use the following for checking whether two objects instantiated in the same module have identical types:
If I call typeid and retrieve the address of returned type_info: const type_info* info = &( typeid( Something ) );
I have a set of polymorphic C++ classes and they are all instantiated by the same module (Windows DLL). Now having two pointers to such classes and having called typeid: