摘要
本文在分析COM组件的结构及其基本特性基础上,提出了COM对象的创建及其接口访问中的Singleton模式,并从AbstractFactory模式的角度分析了利用类厂创建对象这一技术的合理性和必要性。叙述了C++语言实现COM对象与接口的两种方式多继承和嵌套类。最后给出了存储管理软件中备份、恢复引擎的组件化实现的定义。
Based on analysis of the structure and basic characteristics of COM component and the rationality and necessity of the technology using class factory in the construction of COM object from the perspective of Abstract Factory pattern,this paper proposes the Singleton pattern for the construction and interface access of COM object and gives two methods of C++ language to implement COM object and interface:multi-inheritance and nesting class.Finally,it defines the backup and recovery engine of component in storage management software.
出处
《计算机与数字工程》
2004年第5期89-93,共5页
Computer & Digital Engineering
关键词
软件设计模式
组件模块
备份
恢复引擎
Design Patterns,Component Object Model,backup,recovery engine