KiCad PCB EDA Suite
PLUGIN::RELEASER Class Reference

Class RELEASER releases a PLUGIN in the context of a potential thrown exception, through its destructor. More...

#include <io_mgr.h>

Public Member Functions

 RELEASER (PLUGIN *aPlugin=NULL)
 
 ~RELEASER ()
 
void release ()
 
void set (PLUGIN *aPlugin)
 
 operator PLUGIN * () const
 
PLUGINoperator-> () const
 

Private Member Functions

RELEASERoperator= (RELEASER &aOther)
 
 RELEASER (const RELEASER &aOther)
 

Private Attributes

PLUGINplugin
 

Detailed Description

Class RELEASER releases a PLUGIN in the context of a potential thrown exception, through its destructor.

Definition at line 563 of file io_mgr.h.

Constructor & Destructor Documentation

PLUGIN::RELEASER::RELEASER ( const RELEASER aOther)
inlineprivate

Definition at line 571 of file io_mgr.h.

571 {}
PLUGIN::RELEASER::RELEASER ( PLUGIN aPlugin = NULL)
inline

Definition at line 574 of file io_mgr.h.

574  :
575  plugin( aPlugin )
576  {
577  }
PLUGIN * plugin
Definition: io_mgr.h:565
PLUGIN::RELEASER::~RELEASER ( )
inline

Definition at line 579 of file io_mgr.h.

580  {
581  if( plugin )
582  release();
583  }
void release()
Definition: io_mgr.h:585
PLUGIN * plugin
Definition: io_mgr.h:565

Member Function Documentation

PLUGIN::RELEASER::operator PLUGIN * ( ) const
inline

Definition at line 598 of file io_mgr.h.

599  {
600  return plugin;
601  }
PLUGIN * plugin
Definition: io_mgr.h:565
PLUGIN* PLUGIN::RELEASER::operator-> ( ) const
inline

Definition at line 603 of file io_mgr.h.

604  {
605  return plugin;
606  }
PLUGIN * plugin
Definition: io_mgr.h:565
RELEASER& PLUGIN::RELEASER::operator= ( RELEASER aOther)
inlineprivate

Definition at line 568 of file io_mgr.h.

568 { return *this; }
void PLUGIN::RELEASER::release ( )
inline

Definition at line 585 of file io_mgr.h.

References IO_MGR::PluginRelease().

586  {
588  plugin = NULL;
589  }
static void PluginRelease(PLUGIN *aPlugin)
Function PluginRelease releases a PLUGIN back to the system, and may cause it to be unloaded from mem...
Definition: io_mgr.cpp:67
PLUGIN * plugin
Definition: io_mgr.h:565
void PLUGIN::RELEASER::set ( PLUGIN aPlugin)
inline

Definition at line 591 of file io_mgr.h.

Referenced by FP_LIB_TABLE_ROW::setPlugin().

592  {
593  if( plugin )
594  release();
595  plugin = aPlugin;
596  }
void release()
Definition: io_mgr.h:585
PLUGIN * plugin
Definition: io_mgr.h:565

Member Data Documentation

PLUGIN* PLUGIN::RELEASER::plugin
private

Definition at line 565 of file io_mgr.h.


The documentation for this class was generated from the following file: