MorphoGraphX
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
Library.hpp
1
#ifndef LIBRARY_HPP
2
#define LIBRARY_HPP
3
4
#include <Config.hpp>
5
6
#include <QString>
7
8
class
Library
{
9
public
:
10
#if defined(WIN32) || defined(WIN64)
11
typedef
HINSTANCE handle_t;
12
#else
13
typedef
void
* handle_t;
14
#endif
15
16
Library
(
QString
path);
17
18
QString
fileName()
const
{
19
return
filename;
20
}
21
void
setFileName(
const
QString
& fn) {
22
filename = fn;
23
}
24
25
bool
load();
26
bool
unload();
27
28
bool
isLoaded()
const
{
29
return
(
bool
)handle;
30
}
31
32
QString
errorString()
const
{
33
return
error_string;
34
}
35
36
static
bool
isLibrary(
QString
path);
37
38
protected
:
39
QString
filename, error_string;
40
handle_t handle;
41
};
42
43
#endif
QString
Library
Definition:
Library.hpp:8
Generated on Thu Jul 9 2015 20:43:09 for MorphoGraphX by
1.8.6