PluginWrapper Class Reference
#include <PluginWrapper.h>
List of all members.
Detailed Description
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
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::~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
The documentation for this class was generated from the following files: