PluginWrapper Class Reference

#include <PluginWrapper.h>

List of all members.

Public Member Functions

 PluginWrapper ()
 ~PluginWrapper ()
void open (string s)
PlugingetPlugin (void)
void close (void)

Private Attributes

void * Extension
Pluginp
create_tcreate_Extension
destroy_tdestroy_Extension
int version
bool opened
string name

Detailed Description

LICENSE

Copyright (C) 2004-2008 Tomas Helikar & Mathbio Research Group, Department of Mathematics, University of Nebraska at Omaha

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

DESCRIPTION

The PluginWrapper class functions as a holder for a pointer to a plugin. This class intitializes the pointer and properly desposes of it afterwards. Having a wrapper for plugin pointers ensures that they aren't accidently accessed before or after they've been opened.


Constructor & Destructor Documentation

PluginWrapper::PluginWrapper ( void   ) 

PluginWrapper constructor initializes variables

PluginWrapper::~PluginWrapper ( void   ) 

The destructor ensures that the pointer has been closed, but only once


Member Function Documentation

void PluginWrapper::close ( void   ) 

ensures that p is properly closed

Plugin* PluginWrapper::getPlugin ( void   )  [inline]
void PluginWrapper::open ( string  s  ) 

opens the library located at s and loads an instance of that plugin into p


Member Data Documentation

void* PluginWrapper::Extension [private]
string PluginWrapper::name [private]
bool PluginWrapper::opened [private]
int PluginWrapper::version [private]

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

Generated on Fri May 7 00:40:43 2010 for ChemChains by  doxygen 1.6.1