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 556 of file io_mgr.h.

Constructor & Destructor Documentation

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

Definition at line 564 of file io_mgr.h.

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

Definition at line 567 of file io_mgr.h.

567  :
568  plugin( aPlugin )
569  {
570  }
PLUGIN * plugin
Definition: io_mgr.h:558
PLUGIN::RELEASER::~RELEASER ( )
inline

Definition at line 572 of file io_mgr.h.

573  {
574  if( plugin )
575  release();
576  }
void release()
Definition: io_mgr.h:578
PLUGIN * plugin
Definition: io_mgr.h:558

Member Function Documentation

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

Definition at line 591 of file io_mgr.h.

592  {
593  return plugin;
594  }
PLUGIN * plugin
Definition: io_mgr.h:558
PLUGIN* PLUGIN::RELEASER::operator-> ( ) const
inline

Definition at line 596 of file io_mgr.h.

597  {
598  return plugin;
599  }
PLUGIN * plugin
Definition: io_mgr.h:558
RELEASER& PLUGIN::RELEASER::operator= ( RELEASER aOther)
inlineprivate

Definition at line 561 of file io_mgr.h.

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

Definition at line 578 of file io_mgr.h.

References IO_MGR::PluginRelease().

579  {
581  plugin = NULL;
582  }
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:558
void PLUGIN::RELEASER::set ( PLUGIN aPlugin)
inline

Definition at line 584 of file io_mgr.h.

Referenced by FP_LIB_TABLE_ROW::setPlugin().

585  {
586  if( plugin )
587  release();
588  plugin = aPlugin;
589  }
void release()
Definition: io_mgr.h:578
PLUGIN * plugin
Definition: io_mgr.h:558

Member Data Documentation

PLUGIN* PLUGIN::RELEASER::plugin
private

Definition at line 558 of file io_mgr.h.


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