About Reflection of C++
this topic is for Reflection of C++, In c++ language, there is no Reflection, so we can't get a new object by string, such as
ClassA cc = GetClass("ClassA");
so we need carry out by ourself, first i see in processing message from other system, realize by static list , just learn from MFC.
Macro skill was used; but i thinck, the key point is storage, we storage the info in some place, then when we need , we get them back.
so we can Relection class. so i carry out use Map, key is the class string, value is the point of function to create new class object.
浙公网安备 33010602011771号