Skip to content
Snippets Groups Projects
LibraryManager.h 2.06 KiB
Newer Older
#ifndef MANTID_KERNEL_LIBRARY_MANAGER__H_
#define MANTID_KERNEL_LIBRARY_MANAGER_H_
//----------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------
#include <iostream>
#include <string>
#include <map>

namespace Mantid
{
Nick Draper's avatar
Nick Draper committed

// the types of the class factories
//typedef Algorithm* create_alg();
//typedef void destroy_alg(Algorithm*);
/** @class LibraryManager LibraryManager.h Kernel/LibraryManager.h

    Class for opening shared libraries.
    
    @author Matt Clarke
    @date 15/10/2007
    
    Copyright &copy; 2007 STFC Rutherford Appleton Laboratories

    This file is part of Mantid.

    Mantid is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    Mantid 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, see <http://www.gnu.org/licenses/>.

    File change history is stored at: <https://svn.mantidproject.org/mantid/trunk/Code/Mantid>.
    Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
Nick Draper's avatar
Nick Draper committed
class DLLExport LibraryManager
	virtual ~LibraryManager();
	
Nick Draper's avatar
Nick Draper committed
	//opens all suitable libraries on a given path
	int OpenAllLibraries(const std::string&, bool isRecursive=false);

	//Returns true if DLL is opened or already open
	bool OpenLibrary(const std::string&);
	bool OpenLibrary(const std::string&, const std::string&);

	/// An untyped pointer to the loaded library
Nick Draper's avatar
Nick Draper committed

  /// static reference to the logger class
  static Logger& g_log;