Lets assume that I got class A looking like that:
class A {
public:
A() = defualt;
~A() = defualt;
void foo();
void bar();
void baz();
void qux();
};
I want to create wrapper of that class, but I just need to use function foo
.
I know that I can use
%ignore A::bar;
%ignore A::baz;
%ignore A::qux;
to avoid wrapping rest of the functions, but it take a look writing and If someone will add new function he’ll have to add new ignore
.
Is there in SWIG options to opt out whole interface of class and just tell which function I want to wrap ?
1