-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaLoader.h
More file actions
63 lines (45 loc) · 1.85 KB
/
Copy pathJavaLoader.h
File metadata and controls
63 lines (45 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* indent-tabs-mode: nil -*- */
/*
qore Python module
Copyright (C) 2020 - 2021 Qore Technologies, s.r.o.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _QORE_PYTHON_JAVALOADER_H
#define _QORE_PYTHON_JAVALOADER_H
#include "python-module.h"
#include <vector>
#include <map>
// forward references
class PythonQoreClass;
// reexport list map
typedef std::map<const char*, const QoreListNode*, ltstr> mod_dep_map_t;
class JavaLoader {
public:
//! initializer function
DLLLOCAL static int init();
DLLLOCAL static void del();
//! returns the loader object with the reference count incremented
DLLLOCAL static PyObject* getLoaderRef();
//! returns the loader object
DLLLOCAL static PyObject* getLoader();
//! type functions
DLLLOCAL static void dealloc(PyObject* self);
DLLLOCAL static PyObject* repr(PyObject* obj);
//! class methods
DLLLOCAL static PyObject* create_module(PyObject* self, PyObject* args);
DLLLOCAL static PyObject* exec_module(PyObject* self, PyObject* args);
private:
DLLLOCAL static QorePythonManualReferenceHolder loader_cls;
DLLLOCAL static QorePythonManualReferenceHolder loader;
};
#endif