BUG: fix some bad changes in progress calc
[cmake.git] / Source / cmDynamicLoader.h
blob26f19510c68a5756f2ba5b6982e9f95eb9ec64c6
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDynamicLoader.h,v $
5 Language: C++
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>
30 class cmDynamicLoader
32 public:
33 // Description:
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*);
39 // Description:
40 // Flush the cache of dynamic loader.
41 static void FlushCache();
43 protected:
44 cmDynamicLoader() {};
45 ~cmDynamicLoader() {};
47 private:
48 cmDynamicLoader(const cmDynamicLoader&); // Not implemented.
49 void operator=(const cmDynamicLoader&); // Not implemented.
52 #endif