MorphoGraphX
2.0-1-227
src
Library.hpp
Go to the documentation of this file.
1
//
2
// This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3
// Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4
//
5
// If you use MorphoGraphX in your work, please cite:
6
// http://dx.doi.org/10.7554/eLife.05864
7
//
8
// MorphoGraphX is free software, and is licensed under under the terms of the
9
// GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10
//
11
#ifndef LIBRARY_HPP
12
#define LIBRARY_HPP
13
14
#include <Config.hpp>
15
16
#include <QString>
17
18
class
Library
19
{
20
public
:
21
#if defined(WIN32) || defined(WIN64)
22
typedef
HINSTANCE
handle_t
;
23
#else
24
typedef
void
*
handle_t
;
25
#endif
26
27
Library
(QString path);
28
29
QString
fileName
()
const
{
30
return
filename
;
31
}
32
void
setFileName
(
const
QString& fn) {
33
filename
= fn;
34
}
35
36
bool
load
();
37
bool
unload
();
38
39
bool
isLoaded
()
const
{
40
return
(
bool
)
handle
;
41
}
42
43
QString
errorString
()
const
{
44
return
error_string
;
45
}
46
47
static
bool
isLibrary
(QString path);
48
49
protected
:
50
QString
filename
,
error_string
;
51
handle_t
handle
;
52
};
53
54
#endif
Library::isLibrary
static bool isLibrary(QString path)
Library::handle
handle_t handle
Definition:
Library.hpp:51
Library::errorString
QString errorString() const
Definition:
Library.hpp:43
Library::error_string
QString error_string
Definition:
Library.hpp:50
Library::load
bool load()
Library::setFileName
void setFileName(const QString &fn)
Definition:
Library.hpp:32
Library
Definition:
Library.hpp:18
Library::filename
QString filename
Definition:
Library.hpp:50
Library::isLoaded
bool isLoaded() const
Definition:
Library.hpp:39
Library::handle_t
void * handle_t
Definition:
Library.hpp:24
Library::fileName
QString fileName() const
Definition:
Library.hpp:29
Library::unload
bool unload()
Library::Library
Library(QString path)
Generated on Fri Jul 9 2021 18:34:54 for MorphoGraphX by
1.8.17