1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDynamicLoader.h,v $
6 Date: $Date: 2006-03-16 22:09:08 $
7 Version: $Revision: 1.9 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 // .NAME cmDynamicLoader - class interface to system dynamic libraries
18 // .SECTION Description
19 // cmDynamicLoader provides a portable interface to loading dynamic
20 // libraries into a process.
23 #ifndef __cmDynamicLoader_h
24 #define __cmDynamicLoader_h
26 #include "cmStandardIncludes.h"
28 #include <cmsys/DynamicLoader.hxx>
34 // Load a dynamic library into the current process.
35 // The returned cmsys::DynamicLoader::LibraryHandle can be used to access
36 // the symbols in the library.
37 static cmsys::DynamicLoader::LibraryHandle
OpenLibrary(const char*);
40 // Flush the cache of dynamic loader.
41 static void FlushCache();
45 ~cmDynamicLoader() {};
48 cmDynamicLoader(const cmDynamicLoader
&); // Not implemented.
49 void operator=(const cmDynamicLoader
&); // Not implemented.