Run Time Class Handler: Instantiating Cl - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
With this class I was able to simply add a file with a new class to my project and to instantiate new objects from this class simply by altering or adding the name of the class in the database or in configuration files.   This way I didn't need to add code for the support of the added class to existing code or to register the class with class factories.
So this is VERY useful if you like to disconnect classes from each other on compile level or to avoid making special class factories.
使用这个类,我可以在项目中简单地增加一个新文件,通过在数据库或配置文件中修改或增加一个这个类的新对象名来增加这个类的实例。用这种方式我们不需要在现存的代码中为支持新增加的类而增加代码,也不需要用类工厂注册新类。
所以如果你喜欢将各个类在编译级上分离,或避免生成特定的类工厂,这个类是非常有用的。
来源: http://www.codeguru.com/cpp_mfc/Rclass.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
RClass |
 1.0  |
2004-04-13 |
下载 |
|
|