[PyKDE] How to expose a typedef
Igor Cananea
iccananea at gmail.com
Tue Oct 19 14:47:56 BST 2004
I have the following files:
a.h
----------------------------------------------------
#inlude <list>
#include "aa.h"
using namespace std;
namespace a {
typedef list<AA*> AAList;
};
---------------------------------------------------
aa.h
---------------------------------------------------
namespace a {
class AA {
// Class defenition...
};
};
--------------------------------------------------
ab.h
--------------------------------------------------
#include "a.h"
namespace a {
class B {
public:
AAList foo();
};
};
--------------------------------------------------
ab.sip
--------------------------------------------------
%Module foo
namespace a {
class B {
%TypeHeaderCode
#include "b.h
%End
public:
a:AAList foo();
};
};
--------------------------------------------------
How do I expose the AAList typedef? I've tried to create a aalist.sip
file whith a typedef in it but I get this error message:
unsupported function return type - provide %MethodCode and a C++ signature
Thanks in advance
-
Igor Chaves Cananéa
Emails: iccananea at gmail.com
icc at gprt.ufpe.br
"In a world without FENCES and WALLS, who needs GATES and WINDOWS?"
More information about the PyQt
mailing list