CMS 3D CMS Logo

IgPluginManagerDestructor Class Reference

Simple class to configure optional destruction of plug-in manager on exit. More...

List of all members.

Public Member Functions

 IgPluginManagerDestructor (void)
void object (IgPluginManager *manager)
void policy (bool destroy)
 ~IgPluginManagerDestructor (void)

Private Attributes

bool m_destroy
IgPluginManagerm_manager


Detailed Description

Simple class to configure optional destruction of plug-in manager on exit.

Definition at line 31 of file IgPluginManager.cc.


Constructor & Destructor Documentation

IgPluginManagerDestructor::IgPluginManagerDestructor ( void   )  [inline]

Definition at line 36 of file IgPluginManager.cc.

00037         : m_manager (0),
00038 #if ! __GNUC__ || __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ > 2)
00039           m_destroy (true)
00040 #else
00041           m_destroy (false)
00042 #endif

IgPluginManagerDestructor::~IgPluginManagerDestructor ( void   )  [inline]

Definition at line 43 of file IgPluginManager.cc.

00043     {}
00044     ~IgPluginManagerDestructor (void)
00045     {
00046         if (m_destroy && m_manager)
00047         {
00048             LOG (0, trace, LFplugin_manager, "destroying plug-in manager\n" << lat::indent);
00049             delete m_manager;
00050             m_manager = 0;
00051             LOG (0, trace, LFplugin_manager, lat::undent);
00052         }


Member Function Documentation

void IgPluginManagerDestructor::object ( IgPluginManager manager  )  [inline]

Definition at line 55 of file IgPluginManager.cc.

References m_destroy.

Referenced by IgPluginManager::get().

00055 { m_destroy = destroy; }

void IgPluginManagerDestructor::policy ( bool  destroy  )  [inline]

Definition at line 54 of file IgPluginManager.cc.

Referenced by IgPluginManager::destroyOnExit().

00055 { m_destroy = destroy; }


Member Data Documentation

bool IgPluginManagerDestructor::m_destroy [private]

Definition at line 33 of file IgPluginManager.cc.

Referenced by object().

IgPluginManager* IgPluginManagerDestructor::m_manager [private]

Definition at line 32 of file IgPluginManager.cc.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:25:25 2009 for CMSSW by  doxygen 1.5.4