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

📄 clockerplugin.cpp

📁 这是国外的resip协议栈
💻 CPP
字号:
#include <cppunit/config/SourcePrefix.h>  // disabled unwanted warning on vc++ 6.0#include <cppunit/TestResult.h>#include <cppunit/XmlOutputter.h>#include <cppunit/plugin/TestPlugIn.h>#include "ClockerXmlHook.h"#include "ClockerListener.h"#include "ClockerModel.h"class ClockerPlugIn : public CppUnitTestPlugIn{public:  ClockerPlugIn()    : m_dumper( NULL )    , m_model( NULL )    , m_xmlHook( NULL )  {  }  ~ClockerPlugIn()  {    delete m_dumper;    delete m_model;    delete m_xmlHook;  }  void initialize( CPPUNIT_NS::TestFactoryRegistry *registry,                   const CPPUNIT_NS::PlugInParameters &parameters )  {    bool text = false;    if ( parameters.getCommandLine() == "text" )      text = true;    m_model = new ClockerModel();    m_dumper = new ClockerListener( m_model, text );    m_xmlHook = new ClockerXmlHook( m_model );  }  void addListener( CPPUNIT_NS::TestResult *eventManager )  {    eventManager->addListener( m_dumper );  }  void removeListener( CPPUNIT_NS::TestResult *eventManager )  {    eventManager->removeListener( m_dumper );  }  void addXmlOutputterHooks( CPPUNIT_NS::XmlOutputter *outputter )  {    outputter->addHook( m_xmlHook );  }  void removeXmlOutputterHooks()  {  }  void uninitialize( CPPUNIT_NS::TestFactoryRegistry *registry )  {  }private:  ClockerListener *m_dumper;  ClockerModel *m_model;  ClockerXmlHook *m_xmlHook;};CPPUNIT_PLUGIN_EXPORTED_FUNCTION_IMPL( ClockerPlugIn );CPPUNIT_PLUGIN_IMPLEMENT_MAIN();

⌨️ 快捷键说明

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