cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstOSAbstraction
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
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
24
25
#ifndef _osaDynamicLoader_h
26
#define _osaDynamicLoader_h
27
28
#include <
cisstOSAbstraction/osaExport.h
>
29
52
53
class
CISST_EXPORT
osaDynamicLoader
54
{
55
protected
:
56
void
*
handle
;
57
58
public
:
60
osaDynamicLoader
() :
handle
(0) {}
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
osaDynamicLoader::Load
bool Load(const char *file, const char *path=0)
osaDynamicLoader::UnLoad
void UnLoad(void)
osaDynamicLoader::osaDynamicLoader
osaDynamicLoader()
Definition
osaDynamicLoader.h:60
osaDynamicLoader::Load
bool Load(const std::string &file, const std::string &path="")
Definition
osaDynamicLoader.h:72
osaDynamicLoader::~osaDynamicLoader
virtual ~osaDynamicLoader()
Definition
osaDynamicLoader.h:64
osaDynamicLoader::handle
void * handle
Definition
osaDynamicLoader.h:56
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
osaExport.h
Macros to export the symbols of cisstOSAbstraction (in a Dll).
Generated by
1.18.0