12 2008 档案

摘要:原文地址:http://www.beroux.com/english/articles/boost_unit_testing/So many C++ unit testing framework exist, so why Boost Test Library? The excellent but outdated article Exploring the C++ Unit Testing Fr... 阅读全文
posted @ 2008-12-21 19:22 拿走不谢 阅读(1791) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://www.beroux.com/english/articles/boost_unit_testing/?part=2 Following the crash-course introduction, let's see how to install and use Boost, plus some references.Installing BoostNow that yo... 阅读全文
posted @ 2008-12-21 19:20 拿走不谢 阅读(1186) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://hi.baidu.com/hardcorn/blog/item/c8cb1b17284fe7074b90a76f.html在Win32系统上编译Boost,我们以winxp为例:boost中包含一个类似于make/nmake的工具:bjam,这是boost所推荐的编译方式,我们就用bjam来编译boost,而bjam的源码也包含在boost的源码包中。1. 先编译bjam ... 阅读全文
posted @ 2008-12-21 11:44 拿走不谢 阅读(587) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://www.cppblog.com/shuiyuan2004/archive/2008/03/29/45677.html boost 的 Test test 库中有如下的组件:Execution Monitor 一个基本用于 program 和 test program 的异常与错误检测与报告机制,Execution Monitor 调用用户提供的函数并报告所有捕获的运行时的异... 阅读全文
posted @ 2008-12-21 10:16 拿走不谢 阅读(759) 评论(0) 推荐(0) 编辑
摘要:关于测试驱动开发, C++的库比较多, 选择是一个问题. Boost.Test是一个用于C++开发的测试框架, 类似的还有CPPUnit, 个人认为, CPPUnit过多的照搬了JUnit的框架, 有比较浓厚的Java风格, 用起来总感觉有些束缚, 不是那么native. CXXTest 我用过Symbian版本的, 好像需要Perl, 不过Symbian本身安装的时候就需要P... 阅读全文
posted @ 2008-12-20 21:12 拿走不谢 阅读(687) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://hi.baidu.com/shuiyuan2004/blog/item/7d4b43eccdf5c2d32f2e213f.htmlC++单元测试框架的比较单元测试现在已经成为标准的编程实践,但是C++缺少Java和.Net平台语言的反射机制,所以无法枚举测试方法,必须手工添加,或者使用一些特别的宏,弄得代码非常难看。Java语言单元测试是JUnit的天下,C#基本上都用NU... 阅读全文
posted @ 2008-12-20 20:12 拿走不谢 阅读(1427) 评论(0) 推荐(0) 编辑
摘要:这个IniFile是参考Delphi的Inifile来实现的。总共包括三个类:CCustomIniFile, CIniFile和CMemIniFile 阅读全文
posted @ 2008-12-18 21:03 拿走不谢 阅读(2275) 评论(0) 推荐(1) 编辑
摘要:原文地址:http://www.nuclex.org/articles/building-a-better-plugin-architecture This article will guide you through the design of a simple yet powerful plugin architecture. It requires some experience in C+... 阅读全文
posted @ 2008-12-06 22:40 拿走不谢 阅读(942) 评论(1) 推荐(0) 编辑
摘要:原文地址:http://dita-ot.sourceforge.net/SourceForgeFiles/doc/plugin/design.htmlDesign: Create plugin architectureintroductionThere are 2 options for the plugin architecture. Option One is just like eclips... 阅读全文
posted @ 2008-12-06 22:36 拿走不谢 阅读(583) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://dev.yesky.com/456/2485956.shtml 插件式设计近年来非常流行,其中eclipse起了推波助澜的作用,提到插件式就会不由自主的想到eclipse。其实插件式设计并不是什么新事物,早在几十年前就有了。像X Server就是基于插件式设计的,除了核心功能外,它所有的扩展功能和设备驱动都是以插件方式加入进来的。 基于插件的设计好处很多:把扩展功能从框架中... 阅读全文
posted @ 2008-12-06 21:31 拿走不谢 阅读(499) 评论(0) 推荐(0) 编辑
摘要:1 第十七章 metaprogram1.1 Metaprogram的第一个例子书上举了一个计算3的N次幂的例子,我将其扩展为计算M的N次幂。代码如下:template<int M, int N>class Power{public: enum{ result = M*Power<M, N-1>::result};};template<int M>class Po... 阅读全文
posted @ 2008-12-03 21:25 拿走不谢 阅读(844) 评论(0) 推荐(0) 编辑
摘要:1 第十章 实例化 1.1 On-Demand实例化 有时又被称作隐式实例化,或者自动实例化。 1.2 延迟实例化 1.3 C++中的实例化模型 1.3.1 两阶段查找 当对模板进行解析的时候,编译器并不能解析依赖型名称,于是,编译器会在POI再次查找这些依赖型名称。另一方面,非依赖型名称在首次看到模板的时候就进行查找,因此在第一次查找时就可以诊断... 阅读全文
posted @ 2008-12-03 21:23 拿走不谢 阅读(1073) 评论(0) 推荐(0) 编辑
摘要:1 第九章 模板中的名称 C++是一种上下文相关的语言:也就是说我们不能脱离他的上下文构造。 1.1 名称的分类 l 受限名称,如果前面有域解析运算符::,或者成员访问运算符(.或->),我们就称该名称为受限名称,比如this->count; l 如果一个名称依赖于一个模板参数,我们就称他为依赖名称。比如 std::vector::iter... 阅读全文
posted @ 2008-12-03 21:22 拿走不谢 阅读(454) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示