1
Vote

Dependencies in header file when using odatagen

description

Hi,
 
When we use the odatagen to generate classes for a serivce, in some cases there is a dependencies between the classes declard in the h file.
to resolve this, we suggest the following fix:
 
in file objc_baseClasses.h line 68 add the following:
 
"<xsl:for-each select=\"schema_1_0:ComplexType | schema_1_1:ComplexType | schema_1_2:ComplexType\">\n"\
"@class <xsl:value-of select=\"@Name\"/>;"\
"</xsl:for-each>\n"\
"<xsl:for-each select=\"schema_1_0:ComplexType | schema_1_1:ComplexType | schema_1_2:ComplexType\">\n"\
 
thanks.

comments

CTapang wrote Feb 19, 2011 at 3:32 AM

Is the purpose of this to avoid forward references in the header file?

CTapang wrote Mar 12, 2011 at 12:11 AM

Added @class declaration in header file, fixed in Version 1.2.