|
Problems with %rename (const): msg#00153programming.swig
I am currently trying to do a rename since I have some overloaded C++ functions. Here is my renames: ... 130 // RENAMING OF CONST-VARIANTS 131 %rename(getMaterialConst) *::getMaterial() const; 132 %rename(getBoundingBoxConst) getBoundingBox() const; 133 //%ignore getBoundingBox() const; 134 %rename(getVerticesConst) *::getVertices() const; 135 %rename(getIndicesConst) *::getIndices() const; 136 %rename(getLastConst) *::getLast() const; ... I am not getting warnings about ignored methods (did before I inserted the %rename lines) But.... I get java compile errors about the methods being duplicated. ... src/java/net/sf/jirr/SMeshBuffer.java:92: getMaterial() is already defined in net.sf.jirr.SMeshBuffer public SMaterial getMaterial() { ^ src/java/net/sf/jirr/SMeshBuffer.java:101: getVertices() is already defined in net.sf.jirr.SMeshBuffer public SWIGTYPE_p_irr__core__arrayTirr__video__S3DVertex_t getVertices() { ^ src/java/net/sf/jirr/SMeshBuffer.java:110: getIndices() is already defined in net.sf.jirr.SMeshBuffer public SWIGTYPE_p_irr__core__arrayTunsigned_short_t getIndices() { ^ src/java/net/sf/jirr/SMeshBuffer.java:119: getBoundingBox() is already defined in net.sf.jirr.SMeshBuffer public aabbox3df getBoundingBox() { ^ src/java/net/sf/jirr/ILogger.java:56: log(java.lang.String,java.lang.String,net.sf.jirr.ELOG_LEVEL) is already defined in net.sf.jirr.ILogger public void log(String text, String hint, ELOG_LEVEL ll) { ^ src/java/net/sf/jirr/ILogger.java:60: log(java.lang.String,net.sf.jirr.ELOG_LEVEL) is already defined in net.sf.jirr.ILogger public void log(String text, ELOG_LEVEL ll) { ^ src/java/net/sf/jirr/SMesh.java:82: getBoundingBox() is already defined in net.sf.jirr.SMesh public aabbox3df getBoundingBox() { ^ src/java/net/sf/jirr/SMeshBufferLightMap.java:92: getMaterial() is already defined in net.sf.jirr.SMeshBufferLightMap public SMaterial getMaterial() { ^ src/java/net/sf/jirr/SMeshBufferLightMap.java:101: getVertices() is already defined in net.sf.jirr.SMeshBufferLightMap public SWIGTYPE_p_irr__core__arrayTirr__video__S3DVertex2TCoords_t getVertices() { ^ src/java/net/sf/jirr/SMeshBufferLightMap.java:110: getIndices() is already defined in net.sf.jirr.SMeshBufferLightMap public SWIGTYPE_p_irr__core__arrayTunsigned_short_t getIndices() { ^ src/java/net/sf/jirr/SMeshBufferLightMap.java:119: getBoundingBox() is already defined in net.sf.jirr.SMeshBufferLightMap public aabbox3df getBoundingBox() { ... Just for reference, here is some of the C++ source I am trying to SWIG ! ... //! returns pointer to vertex data. The data is a array of vertices. Which vertex //! type is used can be determinated with getVertexType(). virtual const void* getVertices() const = 0; //! returns pointer to vertex data. The data is a array of vertices. Which vertex //! type is used can be determinated with getVertexType(). virtual void* getVertices() = 0; ... -- ./Emanuel _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Java char *INOUT doesn't OUT: 00153, Gary Nissen |
|---|---|
| Next by Date: | Re: Problems with %rename (const): 00153, William S Fulton |
| Previous by Thread: | FW: [jreed@xxxxxxxxxxxx: Csharp module and memory pressure on GC]i: 00153, William . Fulton |
| Next by Thread: | Re: Problems with %rename (const): 00153, William S Fulton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |