Having C++ code:
namespace ns {
struct Person {};
}
I would like to expose Person class to python in a module ns:
import libapp
x = libapp.ns.Person()
Is it possible using swig?
I other workds I would like to map C++ namespace hierarchy to Python module hierarchy.
I have a wrapper written in Boost.Python (it allows such mapping) and I'm switching to swig, so I do not want to rewrite wrapper client code.