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 (CodeViewPDB::*)(void) const;
template<class T>
using setter_t = void (CodeViewPDB::*)(T);
void init_PE_CodeViewPDB_class(py::module& m) {
template<>
void create<CodeViewPDB>(py::module& m) {
py::class_<CodeViewPDB, CodeView>(m, "CodeViewPDB")
.def(py::init<>())
@@ -56,6 +61,7 @@ void init_PE_CodeViewPDB_class(py::module& m) {
stream << cv;
return stream.str();
});
}
}
}