cisst-saw
Loading...
Searching...
No Matches
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 Author(s): Peter Kazanzides
6 Created on: 2007-01-16
7
8 (C) Copyright 2007-2017 Johns Hopkins University (JHU), All Rights Reserved.
9
10--- begin cisst license - do not edit ---
11
12This software is provided "as is" under an open source license, with
13no warranty. The complete license can be found in license.txt and
14http://www.cisst.org/cisst/license.txt.
15
16--- end cisst license ---
17*/
18
19
24
25#ifndef _osaDynamicLoader_h
26#define _osaDynamicLoader_h
27
29
52
54{
55protected:
56 void* handle;
57
58public:
61
64 virtual ~osaDynamicLoader() {};
65
71 bool Load(const char *file, const char *path = 0);
72 inline bool Load(const std::string & file,
73 const std::string & path = "") {
74 if (path.empty()) {
75 return Load(file.c_str());
76 }
77 return Load(file.c_str(), path.c_str());
78 }
79
81 void UnLoad(void);
82};
83
84#endif // _osaDynamicLoader_h
bool Load(const char *file, const char *path=0)
void UnLoad(void)
osaDynamicLoader()
Definition osaDynamicLoader.h:60
bool Load(const std::string &file, const std::string &path="")
Definition osaDynamicLoader.h:72
virtual ~osaDynamicLoader()
Definition osaDynamicLoader.h:64
void * handle
Definition osaDynamicLoader.h:56
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Macros to export the symbols of cisstOSAbstraction (in a Dll).