| CppUnit project page | FAQ | CppUnit home page |
Manges TestPlugIn. More...
#include <PlugInManager.h>
Classes | |
| struct | PlugInInfo |
| (INTERNAL) Information about a specific plug-in. More... | |
Public Member Functions | |
| PlugInManager () | |
| virtual | ~PlugInManager () |
| Destructor. More... | |
| void | load (const std::string &libraryFileName, const PlugInParameters ¶meters=PlugInParameters()) |
| Loads the specified plug-in. More... | |
| void | unload (const std::string &libraryFileName) |
| Unloads the specified plug-in. More... | |
| void | addListener (TestResult *eventManager) |
| Gives a chance to each loaded plug-in to register TestListener. More... | |
| void | removeListener (TestResult *eventManager) |
| Gives a chance to each loaded plug-in to unregister TestListener. For each plug-in, call CppUnitTestPlugIn::removeListener(). More... | |
| void | addXmlOutputterHooks (XmlOutputter *outputter) |
| Provides a way for the plug-in to register some XmlOutputterHook. More... | |
| void | removeXmlOutputterHooks () |
| Called when the XmlOutputter is destroyed. More... | |
Protected Member Functions | |
| void | unload (PlugInInfo &plugIn) |
Private Types | |
| typedef CppUnitDeque< PlugInInfo > | PlugIns |
Private Member Functions | |
| PlugInManager (const PlugInManager ©) | |
| Prevents the use of the copy constructor. More... | |
| void | operator= (const PlugInManager ©) |
| Prevents the use of the copy operator. More... | |
Private Attributes | |
| PlugIns | m_plugIns |
Manges TestPlugIn.
|
private |
| CPPUNIT_NS_BEGIN PlugInManager::PlugInManager | ( | ) |
Constructs a PlugInManager object.
|
virtual |
Destructor.
|
private |
Prevents the use of the copy constructor.
| void PlugInManager::addListener | ( | TestResult * | eventManager) |
Gives a chance to each loaded plug-in to register TestListener.
For each plug-in, call CppUnitTestPlugIn::addListener().
| void PlugInManager::addXmlOutputterHooks | ( | XmlOutputter * | outputter) |
Provides a way for the plug-in to register some XmlOutputterHook.
| void PlugInManager::load | ( | const std::string & | libraryFileName, |
| const PlugInParameters & | parameters = PlugInParameters() |
||
| ) |
Loads the specified plug-in.
After being loaded, the CppUnitTestPlugIn::initialize() is called.
| libraryFileName | Name of the file that contains the TestPlugIn. |
| parameters | List of string passed to the plug-in. |
NULL. | DynamicLibraryManagerException | is thrown if an error occurs during loading. |
|
private |
Prevents the use of the copy operator.
| void PlugInManager::removeListener | ( | TestResult * | eventManager) |
Gives a chance to each loaded plug-in to unregister TestListener. For each plug-in, call CppUnitTestPlugIn::removeListener().
| void PlugInManager::removeXmlOutputterHooks | ( | ) |
Called when the XmlOutputter is destroyed.
Can be used to free some resources allocated by addXmlOutputterHooks().
| void PlugInManager::unload | ( | const std::string & | libraryFileName) |
Unloads the specified plug-in.
| libraryFileName | Name of the file that contains the TestPlugIn passed to a previous call to load(). |
|
protected |
Unloads the specified plug-in.
| plugIn | Information about the plug-in. |
|
private |
|
|
hosts this site. |
Send comments to: CppUnit Developers |