📄 testplugin.h
字号:
// //////////////////////////////////////////////////////////////////////////// Header file TestPlugIn.h for class TestPlugIn// (c)Copyright 2000, Baptiste Lepilleur.// Created: 2001/06/23// //////////////////////////////////////////////////////////////////////////#ifndef TESTPLUGIN_H#define TESTPLUGIN_H#include <string>#include <cppunit/test.h>#include <cppunit/plugin/PlugInManager.h>/*! \class TestPlugIn * \brief This class represents a test plug-in. */class TestPlugIn{public: /*! Constructs a TestPlugIn object. */ TestPlugIn( const std::string fileName ); /*! Destructor. */ virtual ~TestPlugIn(); /*! Obtains a new test from a new copy of the dll. * \exception TestPlugInException if a error occurs. */ CPPUNIT_NS::Test *makeTest();private: /// Prevents the use of the copy constructor. TestPlugIn( const TestPlugIn © ); /// Prevents the use of the copy operator. void operator =( const TestPlugIn © ); void reloadDll(); void deleteDllCopy(); /*! Copy m_fileName DLL to m_copyFileName. * * Working on a copy of the DLL allow to update the original DLL. * \exception TestPlugInException on copy failure. */ void makeDllCopy(); /*! Load the DLL. * \exception TestPlugInException on dll loading failure. */ void loadDll();private: std::string m_fileName; std::string m_copyFileName; CPPUNIT_NS::PlugInManager m_manager;};// Inlines methods for TestPlugIn:// -------------------------------#endif // TESTPLUGIN_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -