⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autoregistersuite.h

📁 这是用VB6.0写的一个通用的CPU卡操作程序,支持PC/SC接口 安装任何一个PC/SC驱动的IC读写器后,都可以使用此程序进行CPU卡的测试
💻 H
字号:
#ifndef CPPUNIT_EXTENSIONS_AUTOREGISTERSUITE_H#define CPPUNIT_EXTENSIONS_AUTOREGISTERSUITE_H#include <string>#include <cppunit/extensions/TestSuiteFactory.h>#include <cppunit/extensions/TestFactoryRegistry.h>namespace CppUnit {  /** Automatically register the test suite of the specified type.   *   * You should not use this class directly. Instead, use the following macros:   * - CPPUNIT_TEST_SUITE_REGISTRATION()   * - CPPUNIT_TEST_SUITE_NAMED_REGISTRATION()   *   * This object will register the test returned by TestCaseType::suite()   * when constructed to the test registry.   *   * This object is intented to be used as a static variable.   *   *   * \param TestCaseType Type of the test case which suite is registered.   * \see CPPUNIT_TEST_SUITE_REGISTRATION, CPPUNIT_TEST_SUITE_NAMED_REGISTRATION   * \see CppUnit::TestFactoryRegistry.   */  template<typename TestCaseType>  class AutoRegisterSuite  {    public:      /** Auto-register the suite factory in the global registry.       */      AutoRegisterSuite()      {        TestFactory *factory = new TestSuiteFactory<TestCaseType>();        TestFactoryRegistry::getRegistry().registerFactory( factory );      }      /** Auto-register the suite factory in the specified registry.       * \param name Name of the registry.       */      AutoRegisterSuite( const std::string &name )      {        TestFactory *factory = new TestSuiteFactory<TestCaseType>();        TestFactoryRegistry::getRegistry( name ).registerFactory( factory );      }  };} // namespace CppUnit#endif  // CPPUNIT_EXTENSIONS_AUTOREGISTERSUITE_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -