cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osaDynamicLoader.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Peter Kazanzides
7  Created on: 2007-01-16
8 
9  (C) Copyright 2007-2007 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 */
20 
21 
27 #ifndef _osaDynamicLoader_h
28 #define _osaDynamicLoader_h
29 
31 
56 {
57 protected:
58  void* handle;
59 
60 public:
62  osaDynamicLoader() : handle(0) {}
63 
66  virtual ~osaDynamicLoader() {};
67 
73  bool Load(const char *file, const char *path = 0);
74 
76  void UnLoad();
77 };
78 
79 #endif // _osaDynamicLoader_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
virtual ~osaDynamicLoader()
Definition: osaDynamicLoader.h:66
osaDynamicLoader()
Definition: osaDynamicLoader.h:62
Macros to export the symbols of cisstOSAbstraction (in a Dll).
void * handle
Definition: osaDynamicLoader.h:58
Dynamically load a shared library file.
Definition: osaDynamicLoader.h:55