面向接口的C++编程技术研究  被引量:1

Research on Interface-oriented Programming Technology Using C++

在线阅读下载全文

作  者:郭新苍[1] 王兴刚[2] 

机构地区:[1]中国电子科技集团公司第五十四研究所,河北石家庄050081 [2]中国石油天然气管道工程有限公司天津分公司,天津300280

出  处:《无线电工程》2009年第12期55-58,共4页Radio Engineering

摘  要:结合C++开发工程实践,分析了目前C++开发所面临的问题,包括C++缺少二进制级标准导致的可移植性问题,和C++头文件不能完全隐藏实现部分而导致的封装性问题。分析了目前C++开发的2种通知机制的问题,包括使用虚函数继承实现接收通知导致的不符合常识的问题,以及使用组件类与客户类紧耦合导致的独立性差的问题。针对以上问题,结合目前主流的面向接口的编程技术,给出了在C++下的一种实现。Based on the programming practices of C + + development, the article analyzes the problems in C + + development, including the portability problem because of the absence of binary level standard, and encapsulation problem because the C ++ header file cannot hide implementation part entirely. Then it analyzes two notification mechanism problems in C ++ development, including the common sense violation problem caused by using virtual function inheritance to receive notification, and inter-dependence problem caused by tight coupling of component class and it's client class. Finally, the paper presents an interface-oriented programming implementation in C ++ to solve these problems.

关 键 词:C++ 接口 通知 耦合 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象