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. 

posted on 2011-10-27 16:00  子虚乌有  阅读(165)  评论(0)    收藏  举报