<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig">
    <title>gmane.comp.programming.swig</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19663"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19662"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19661"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19660"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19659"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19658"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19657"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19656"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19655"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19654"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19653"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19652"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19651"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19650"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19649"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19648"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19647"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19646"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19645"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19644"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19663">
    <title>Re: Bool and Integer types in SWIG-Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19663</link>
    <description>&lt;pre&gt;
I'm glad you bumped your previous message.

We ran into the same problem, and I do have a workaround for you (at 
least one that worked for us); this typemap should make it so only 
actual bools ("True" or "False") will be usable in a C++ bool argument, 
in any code that is declared to swig after the typemap:

%typemap(typecheck, precedence=SWIG_TYPECHECK_BOOL, noblock=1) bool {
     $1 = PyBool_Check($input) ? 1 : 0;
}


Jim


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>Jim Bosch</dc:creator>
    <dc:date>2013-05-18T00:43:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19662">
    <title>Re: Bool and Integer types in SWIG-Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19662</link>
    <description>&lt;pre&gt;Nobody else has this problem?

Le 2013-04-10 à 16:31, Olivier Voyer &amp;lt;olivier.voyer&amp;lt; at &amp;gt;gmail.com&amp;gt; a écrit :

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>Olivier Voyer</dc:creator>
    <dc:date>2013-05-17T23:10:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19661">
    <title>Re: C/C++ to Java : Use a Java method from C by overloading a C++ object</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19661</link>
    <description>&lt;pre&gt;
On 30/04/13 16:29, Nourdine AHAMADA wrote:
Your code is incomplete and does not compile. Please post a working 
version. One thing I can see wrong is '%feature("director") 
Log_Interface' should be before the class definition not after it. You 
should also the latest version - swig-2.0.9.

William

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2013-05-17T18:10:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19660">
    <title>Are there any SWIG users within Brisbane?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19660</link>
    <description>&lt;pre&gt;Hi, I am attempting to wrap a C API for Java. It is an open source database.
This is causing me quite a headache, so are there any developers in the
general Brisbane area that would be interested in helping.

I do not believe the work to be extensive to someone with experience.



--
View this message in context: http://swig.10945.n7.nabble.com/Are-there-any-SWIG-users-within-Brisbane-tp13241.html
Sent from the swig-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>Hayden Fisher</dc:creator>
    <dc:date>2013-05-16T12:56:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19659">
    <title>Resolve struct property for BLOB buffer -&gt; Java</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19659</link>
    <description>&lt;pre&gt;Hi, how do I resolve a SWIGTYPE_p_unsigned_char in my SWIG interface file?

This is wrapping C -&amp;gt; Java

I have the following struct and underlined the culprit


*/**
Container for OGC GEOMETRYCOLLECTION Geometry
*/
typedef struct gaiaGeomCollStruct
{
/* OpenGis GEOMETRYCOLLECTION */
/** the SRID */
    int Srid;       /* the SRID value for this GEOMETRY */
/** CPU endian arch */
    char endian_arch;   /* littleEndian - bigEndian arch for target CPU */
/** BLOB Geometry endian arch */
    char endian;        /* littleEndian - bigEndian */
/** BLOB-Geometry buffer */
    const unsigned char *blob;  /* WKB encoded buffer */
//______________________________________________________________________________________
/** BLOB-Geometry buffer size (in bytes) */
    unsigned long size; /* buffer size */
/** current offset [BLOB parsing] */
    unsigned long offset;   /* current offset [for parsing] */
/** pointer to first POINT [linked list]; may be NULL */
    gaiaPointPtr FirstPoint;    /* Points linked list - first&lt;/pre&gt;</description>
    <dc:creator>Hayden Fisher</dc:creator>
    <dc:date>2013-05-16T07:21:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19658">
    <title>Problem wrapping a struct</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19658</link>
    <description>&lt;pre&gt;Hi all,

I'm trying to wrap several C++ structs, each of which has a constructor 
with an initializer list.
One of them looks something like this:

struct Measurements
{
/// default constructor
Measurements() :
dateStamp(0, 0)
{
}

Date dateStamp;
};

Note that the class "Date" does not have a default constructor.
When I compile it with swig, I get the following error:

In function ‘PyObject* _wrap_Measurements_dateStamp_get(PyObject*, 
PyObject*)’:
error: no matching function for call to ‘Date::Date()’
note: candidates are:PG::L2::LS::DateTime::DateTime(int, int)

There is an identical error for the "setter".

So this is correct ... there is no default constructor for Date, and I 
cannot alter the code.

Any ideas on what might be wrong and how to fix it?

Regards,
Chris Botos

&lt;/pre&gt;</description>
    <dc:creator>Christopher Botos</dc:creator>
    <dc:date>2013-05-14T18:32:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19657">
    <title>Problem wrapping a struct - FIXED</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19657</link>
    <description>&lt;pre&gt;Well, adding includes (in this case for "Date") into the .i file usually 
helps. :-[
Sorry for adding to the email noise.
-Chris


-------- Original Message --------
Subject: Problem wrapping a struct
Date: Tue, 14 May 2013 14:32:54 -0400
From: Christopher Botos &amp;lt;cbotos&amp;lt; at &amp;gt;aer.com&amp;gt;
Reply-To: cbotos&amp;lt; at &amp;gt;aer.com
Organization: Atmospheric &amp;amp; Environmental Research (AER)
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net



Hi all,

I'm trying to wrap several C++ structs, each of which has a constructor
with an initializer list.
One of them looks something like this:

struct Measurements
{
/// default constructor
Measurements() :
dateStamp(0, 0)
{
}

Date dateStamp;
};

Note that the class "Date" does not have a default constructor.
When I compile it with swig, I get the following error:

In function ‘PyObject* _wrap_Measurements_dateStamp_get(PyObject*,
PyObject*)’:
error: no matching function for call to ‘Date::Date()’
note: candidates are:PG::L2::LS::DateTime::DateTime(int, int)

There is an identical error for the "s&lt;/pre&gt;</description>
    <dc:creator>Christopher Botos</dc:creator>
    <dc:date>2013-05-14T19:09:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19656">
    <title>Re: Migrating from Swig 1.3.33 to 2.0.9</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19656</link>
    <description>&lt;pre&gt;This was fixed a few months back for the swig-2.0.10 release which will 
be released shortly, probably in the next few days.

William


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2013-05-14T18:21:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19655">
    <title>Re: Special Qt mode for SWIG</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19655</link>
    <description>&lt;pre&gt;From: ZHONG Zhu &amp;lt;Zhu.Zhong&amp;lt; at &amp;gt;alcatel-sbell.com.cn&amp;gt;

To: Dimitar Dobrev &amp;lt;dpldobrev&amp;lt; at &amp;gt;yahoo.com&amp;gt; 
Cc: "swig-user&amp;lt; at &amp;gt;lists.sourceforge.net" &amp;lt;swig-user&amp;lt; at &amp;gt;lists.sourceforge.net&amp;gt; 
Sent: Tuesday, May 14, 2013 4:42 AM
Subject: RE: [Swig-user] Special Qt mode for SWIG
 


 
Hi Dimitar,
 
That’s very useful info to me. I checked SMOKE webpage but can’t find out if it works on Windows with MinGW. Do you have this info or can you forward me to any link? Thank you!
 
Zhu
 
From:Dimitar Dobrev [mailto:dpldobrev&amp;lt; at &amp;gt;yahoo.com] 
Sent: Sunday, May 12, 2013 5:09 PM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Special Qt mode for SWIG
 
    
    Hello,
    
    I'm looking into the possibility to wrap Qt with SWIG. I've already read it's quite the challenge but I have an idea about which I'd love to hear some opinions.
    You probably know about SMOKE, another tool for wrapping C++ using headers. It has a special "qt" mode which allows it to properly recognize and parse Qt headers. I was wondering if the&lt;/pre&gt;</description>
    <dc:creator>Dimitar Dobrev</dc:creator>
    <dc:date>2013-05-14T07:39:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19654">
    <title>Re: Special Qt mode for SWIG</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19654</link>
    <description>&lt;pre&gt;Hi Dimitar,

That's very useful info to me. I checked SMOKE webpage but can't find out if it works on Windows with MinGW. Do you have this info or can you forward me to any link? Thank you!

Zhu

From: Dimitar Dobrev [mailto:dpldobrev&amp;lt; at &amp;gt;yahoo.com]
Sent: Sunday, May 12, 2013 5:09 PM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Special Qt mode for SWIG


    Hello,

    I'm looking into the possibility to wrap Qt with SWIG. I've already read it's quite the challenge but I have an idea about which I'd love to hear some opinions.
    You probably know about SMOKE&amp;lt;http://techbase.kde.org/Development/Languages/Smoke&amp;gt;, another tool for wrapping C++ using headers. It has a special "qt" mode which allows it to properly recognize and parse Qt headers. I was wondering if the same option could in theory be added to SWIG?

    Regards,
    Dimitar Dobrev
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security&lt;/pre&gt;</description>
    <dc:creator>ZHONG Zhu</dc:creator>
    <dc:date>2013-05-14T01:42:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19653">
    <title>Eigen3 + std::vector + SWIG typemap -&gt; Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19653</link>
    <description>&lt;pre&gt;Hello everyone,

I am currently trying to wrap a C++ library[1] that optionally uses 
Eigen3 to Python using SWIG. I would like to be able to expose 
std::vector&amp;lt;&amp;gt;'s that contain Eigen3 vectors to python using std_vector.i.

However there is big catch:

The library uses Eigen3 as linear algebra package. Due to SSE 
requirements some Eigen3 types have to use a special allocator when 
storing them in a std::vector. Eigen3 comes with a handy macro that 
creates a specialization of std::vector&amp;lt;&amp;gt; that allows to use

   std::vector&amp;lt;EigenArrayType&amp;gt;

instead of the more verbose

   std::vector&amp;lt;EigenArrayType, Eigen::aligned_allocator&amp;lt;EigenArrayType&amp;gt; &amp;gt;

Basically the macro makes a specialization of

   std::vector&amp;lt;EigenArrayType, std::allocator&amp;lt;EigenArrayType&amp;gt; &amp;gt;

but uses internally the Eigen::aligned_allocator&amp;lt;&amp;gt; (see [2])

When creating a typemap like

   %template(EigenArrayTypeVectorStdAlloc) std::vector&amp;lt;EigenArrayType&amp;gt;;

I get problems as SWIG has specializations of its own concerning the 
allocator and therefore&lt;/pre&gt;</description>
    <dc:creator>Martin Felis</dc:creator>
    <dc:date>2013-05-13T21:49:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19652">
    <title>Re: PHP generated code in c++ for functions outsideclass</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19652</link>
    <description>&lt;pre&gt;Laurent CHASTEL \writes: 

It sounds like a bug in SWIG's PHP backend - can you open a bug report please?

Cheers,
    Olly


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>Olly Betts</dc:creator>
    <dc:date>2013-05-13T21:53:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19651">
    <title>wrapper for std::tr1::array</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19651</link>
    <description>&lt;pre&gt;I asked earlier suggestions on wrapping C++ std::tr1::array in Python.

I finally came up with the following, which I present in case anyone 
else finds it useful. I only care about short arrays, so I didn't bother 
with a numpy interface. Suggested improvements would be welcome.

----- array.i -----

%{
#include &amp;lt;tr1/array&amp;gt;
%}

%import "std_except.i"
%include "array.h"

%extend std::tr1::array {
    inline size_t __len__() const { return $self-&amp;gt;size(); }

    inline const value_type&amp;amp; _get(size_t i) const 
throw(std::out_of_range) {
        return $self-&amp;gt;at(i);
    }

    inline void _set(size_t i, const value_type&amp;amp; v) 
throw(std::out_of_range) {
        $self-&amp;gt;at(i) = v;
    }

    %pythoncode {
        def __getitem__(self, key):
            if isinstance(key, slice):
                return tuple(self._get(i) for i in 
range(*key.indices(len(self))))

            if key &amp;lt; 0:
                key += len(self)
            return self._get(key)
        
        def __setitem__(self, key, v):
            if isi&lt;/pre&gt;</description>
    <dc:creator>Russell E. Owen</dc:creator>
    <dc:date>2013-05-13T20:40:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19650">
    <title>Question: adding python instance variable to C++ class?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19650</link>
    <description>&lt;pre&gt;I have a SWIG-wrapped C++ class, for sake of argument called Obj.

I'd like to add a few python instance variables that are only visible to 
python code. (these will be point to objects I don't want to wrap in C++ 
and that the C++ code doesn't need to see).

The only way I've thought to do it is to use properties:

%copyctorObj;

%include "obj.h"

%extend Obj {
    %pythoncode {
        &amp;lt; at &amp;gt;property
        def foo(self):
            if not hasattr(self, "_foo"):
                self._foo = Foo()
            return self._foo

        &amp;lt; at &amp;gt;foo.setter
        def foo(self, value):
            self._foo = value

It works, but it's a lot of boilerplate and every read access requires 
an extra check, so it's slower than adding the instance variable at 
construction time.

Also, any suggestions on how to get the copy constructor to copy the 
python-only value(s)?

obj1 = Obj()
obj2 = Obj(obj1)

&lt;/pre&gt;</description>
    <dc:creator>Russell E. Owen</dc:creator>
    <dc:date>2013-05-13T20:29:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19649">
    <title>Berkelium</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19649</link>
    <description>&lt;pre&gt;Hi,
Is it possible to extend a extensive library such as Berkelium to Python
using swig? I have tried some simpler examples but I am not able to start
with Berkelium. Are there any code examples which can help me? Where can I
start? I would be grateful for any help.
Thanks and Regards.

&lt;/pre&gt;</description>
    <dc:creator>Rishi Agarwal</dc:creator>
    <dc:date>2013-05-13T04:41:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19648">
    <title>Re: headers.h: not such file or directory</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19648</link>
    <description>&lt;pre&gt;cc can't find headers.h in the provided include paths. Since you provided
no additional paths with -I/path/to/dir directives, cc only looks into
standard include path: /usr/include which doesn't contain the headers.h.

2013/5/12 Rishi Agarwal &amp;lt;rishiag.iitd&amp;lt; at &amp;gt;gmail.com&amp;gt;

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>michael kapelko</dc:creator>
    <dc:date>2013-05-12T10:39:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19647">
    <title>headers.h: not such file or directory</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19647</link>
    <description>&lt;pre&gt;Hi,
I was trying to test swig on ubuntu 12.04. After generating wrapper file
when I try to do this:
cc -c example.c example_wrap.c $(python-config --includes)
I am getting the following error:
example_wrap.c:2952:21: fatal error: headers.h: No such file or directory
compilation terminated.
How can it be rectified?
Thanks and Regards

&lt;/pre&gt;</description>
    <dc:creator>Rishi Agarwal</dc:creator>
    <dc:date>2013-05-12T09:42:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19646">
    <title>Special Qt mode for SWIG</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19646</link>
    <description>&lt;pre&gt;    
    Hello,
    

    I'm looking into the possibility to wrap Qt with SWIG. I've already 
read it's quite the challenge but I have an idea about which I'd love to hear some opinions.
    You probably know about SMOKE, another tool for wrapping C++ using headers. It has a special "qt" mode which allows it to properly recognize and 
parse Qt headers. I was wondering if the same option could in theory be 
added to SWIG?

    Regards,    Dimitar Dobrev------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/lis&lt;/pre&gt;</description>
    <dc:creator>Dimitar Dobrev</dc:creator>
    <dc:date>2013-05-12T09:08:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19645">
    <title>Needed support to handel the Nested classes andThreading</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19645</link>
    <description>&lt;pre&gt;Hello ,

 We want to use our C++ libs in the python scripting. But In our Cpp libs 
we have so many nested classes and Threadings. Currently we are  using 
CentOS 5.8 which is suporting SWIG version 1.3.29v.  I would like to know 
whether by using this version can i able to handel the any of my Threading 
and Nested class/structs in my c++ libs?  I already created my  individual 
interface files for all the C++ libs.

Please suggest me. If there is any material avilable for this let me know.

Thanks

B.R,
Venkata Garimella
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sour&lt;/pre&gt;</description>
    <dc:creator>Venkata_Garimella&lt; at &gt;cymer.com</dc:creator>
    <dc:date>2013-05-10T22:50:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19644">
    <title>PHP generated code in c++ for functions outside class</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19644</link>
    <description>&lt;pre&gt;Hello

I forgot to say that I am using swig 2.0.9 (manually compilated), on Centos 6, with php 5.4.14

Best regards

Laurent



-------- Message d'origine --------
De : Laurent CHASTEL &amp;lt;lchastel&amp;lt; at &amp;gt;hotmail.com&amp;gt; 
Date : 10/05/2013  0:31  (GMT+01:00) 
A : swig-user&amp;lt; at &amp;gt;lists.sourceforge.net 
Objet : [Swig-user] PHP generated code in c++ for functions outside class 
 
Hello
 
I have a function that is not in a class, and a class (which is the return of this function) in a C++ api.
The generated code in php, containts $this-&amp;gt;_cPtr = ... in a static function.
 
That’s create a error  in PHP :
    PHP Fatal error:  Using $this when not in object context in test.php
 
Could you please help me to solve this issue ?
 
Best regards,
Laurent
 
****** test_interface.h  *******
...
namespace TEST
{
class ISession;
...
class ISession {
public:
        virtual int connect(const char *User, const char *Password) = 0;
        virtual int disconnect() = 0;
};
....
} /* namespace TEST */
 
extern “C” {&lt;/pre&gt;</description>
    <dc:creator>lchastel</dc:creator>
    <dc:date>2013-05-10T05:34:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19643">
    <title>PHP generated code in c++ for functions outside class</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19643</link>
    <description>&lt;pre&gt;Hello

I have a function that is not in a class, and a class (which is the return of this function) in a C++ api.
The generated code in php, containts $this-&amp;gt;_cPtr = ... in a static function.

That’s create a error  in PHP :
    PHP Fatal error:  Using $this when not in object context in test.php

Could you please help me to solve this issue ?

Best regards,
Laurent

****** test_interface.h  *******
...
namespace TEST 
{
class ISession;
...
class ISession {
public:
        virtual int connect(const char *User, const char *Password) = 0;
        virtual int disconnect() = 0;
};
....
} /* namespace TEST */

extern “C” {
TEST::ISession* new_ISession(void);
}

new_ISession is a function from external module.


***** test.i ******
%module test

%{
#include "test_api_interface.h"
%}

/* Let's just grab the original header file here */
%include "test_api_interface.h"

******* commands ****
I use makefiles for samples folders, which generates :
    swig  -php -cppext cxx -c++  test.i
    g++ -c -fpic    test_w&lt;/pre&gt;</description>
    <dc:creator>Laurent CHASTEL</dc:creator>
    <dc:date>2013-05-09T22:24:33</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.programming.swig">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.programming.swig</link>
  </textinput>
</rdf:RDF>
