Enhance Python binding

This commit is contained in:
Romain Thomas
2018-06-08 14:58:00 +02:00
parent 3cdfb29612
commit 33a2af4b18
92 changed files with 903 additions and 379 deletions
+8 -2
View File
@@ -21,13 +21,18 @@
#include <string>
#include <sstream>
namespace LIEF {
namespace PE {
template<class T>
using getter_t = T (CodeIntegrity::*)(void) const;
template<class T>
using setter_t = void (CodeIntegrity::*)(T);
void init_PE_CodeIntegrity_class(py::module& m) {
template<>
void create<CodeIntegrity>(py::module& m) {
py::class_<CodeIntegrity, LIEF::Object>(m, "CodeIntegrity")
.def(py::init<>())
@@ -67,6 +72,7 @@ void init_PE_CodeIntegrity_class(py::module& m) {
std::string str = stream.str();
return str;
});
}
}
}