How to simulate C# typeof-command behavior in C++?
C# example:
public static PluginNodeList GetPlugins (Type type) { ... }
Call:>
You could use a dynamic_cast to test types as shown below:
IPlugin* iPluginPtr = NULL; iPluginPtr = dynamic_cast(somePluginPtr); if (iPluginPtr) { // Cast succeeded } else { // Cast failed }