From: cyril g. <cyr...@fr...> - 2006-09-21 16:31:34
|
Hello, I discover SWIG (1.3.27) for Python (2.4) on Linux (mandriva 2006) and I have a problem with the C++ static array. In a C++ class, there is something like that : static PROBELIST alarm[sCOUNT]; static PROBELIST plot[sCOUNT]; static PROBELIST print[sCOUNT]; static PROBELIST store[sCOUNT]; I can see these arrays in the cvar variable : In [44]: print module.cvar Swig global variables { PROBE_LISTS_store, PROBE_LISTS_print, PROBE_LISTS_plot, PROBE_LISTS_alarm, CMD_count } But module.cvar.PROBE_LISTS_print is not an array. Apparently, gnucap.cvar.PROBE_LISTS_print is an element of print[sCOUNT]. Perhpas the first. How can I do to retrieve gnucap.cvar.PROBE_LISTS_print under the form of an array ? Thanks a lot, Cyril. |