From: Gardner P. <ga...@ne...> - 2006-03-18 15:35:54
|
Hi, I am new to SWIG. I have used it in a simple example, where I implement som= e C++ classes to store char strings in an STL map, which seems to save considerable memory over storing them in a python dictionary. I would like to extend my sample code to allow python to send a list of strings in to a new C++ class, but I have not been able to find any documentation on how to do that. I have found one example which converts a list of strings into a char** for C++, but I would have thought that there would be some interface to an STL vector, or something similar. Can someone provide me with an example. I would like to interface with a class that looks something like this: class Employee { public: Employee(string name); void Visits(map<string,int> visits); vector<string> WorkArea(); string Center(); }; Any help is appreciated! - Gardner |