Thanks,
Kartheek.
}
--
View this message in context: http://old.nabble.com/An-array-inside-a-structure-SWIG-conversion-in-java-tp33525235p33525235.html
Sent from the swig-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Swig-user mailing list
Swig...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
Hi all,
I am using SWIG for gluing C++ to Java. I have a c++ structure like
struct MemInfo {
int count;
Member *mem;
}
where Member is also a structure.. You can see that structure MemInfo
captures a list of members and the count signifies the number of members.
Now, I have a function like this
MemInfo * getMembersInfo () {
MemInfo* members;
/*.....*/
returns members;
}
When I expose the file containing this structure and the function in the
SWIG Interface file, it maps MemInfo* to a class MemInfo inside which it has
4 functions which are setters and getters for mem and count.
I need to get an array of Member inside the MemInfo class such that I can
access the list in java.
Is there a way in which we can do that. I know that typemaps can be used for
this. If someone out there good at typemaps can you please help me solve
this problem.
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
I'm not so good with advice...can I interest you in a sarcastic comment?