activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r507299 - /activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
Date Tue, 13 Feb 2007 23:24:15 GMT
Author: tabish
Date: Tue Feb 13 15:24:10 2007
New Revision: 507299

URL: http://svn.apache.org/viewvc?view=rev&rev=507299
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java

Modified: activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java?view=diff&rev=507299&r1=507298&r2=507299
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
Tue Feb 13 15:24:10 2007
@@ -385,7 +385,7 @@
     if( property.getType().getSimpleName().equals("ByteSequence") ) {
 
 out.println("    for( size_t i" + parameterName + " = 0; i" + parameterName + " < this->"+getter+"().size();
++i" + parameterName + " ) {");
-out.println("        if( "+propertyName+"[i" + parameterName+"] != this->"+getter+"()[i"+parameterName+"]
) {" );
+out.println("        if( this->"+getter+"()[i" + parameterName+"] != valuePtr->"+getter+"()[i"+parameterName+"]
) {" );
 out.println("            return false;" );
 out.println("        }" );
 out.println("    }" );
@@ -393,7 +393,7 @@
     } else if( property.getType().isPrimitiveType() ||
                type.equals("std::string") ){
 
-out.println("    if( "+propertyName+" != valuePtr->"+getter+"() ) {");
+out.println("    if( this->"+getter+"() != valuePtr->"+getter+"() ) {");
 out.println("        return false;" );
 out.println("    }" );
 
@@ -403,8 +403,8 @@
         String arrayType = property.getType().getArrayComponentType().getSimpleName();
 
 out.println("    for( size_t i" + parameterName + " = 0; i" + parameterName + " < this->"+getter+"().size();
++i" + parameterName + " ) {");
-out.println("        if( this->"+getter+"()[i"+parameterName+"] != NULL )" );
-out.println("            if( !( this->"+getter+"()[i"+parameterName+"]->equals( valuePtr->"+getter+"()[i"+parameterName+"]
) ) {" );
+out.println("        if( this->"+getter+"()[i"+parameterName+"] != NULL ) {" );
+out.println("            if( !this->"+getter+"()[i"+parameterName+"]->equals( valuePtr->"+getter+"()[i"+parameterName+"]
) ) {" );
 out.println("                return false;");
 out.println("            }");
 out.println("        } else if( valuePtr->"+getter+"()[i"+parameterName+"] != NULL ) {");
@@ -414,16 +414,16 @@
     } else if( property.getType().isArrayType() &&
                property.getType().getArrayComponentType().isPrimitiveType() ) {
 out.println("    for( size_t i" + parameterName + " = 0; i" + parameterName + " < this->"+getter+"().size();
++i" + parameterName + " ) {");
-out.println("        if( "+propertyName+"[i"+parameterName+"] != valuePtr->"+getter+"()[i"+parameterName+"]
) {");
+out.println("        if( this->"+getter+"()[i"+parameterName+"] != valuePtr->"+getter+"()[i"+parameterName+"]
) {");
 out.println("            return false;");
 out.println("        }");
 out.println("    }");
     } else {
 out.println("    if( this->"+getter+"() != NULL ) {");
-out.println("        if( !( this->"+getter+"()[i"+parameterName+"]->equals( valuePtr->"+getter+"()[i"+parameterName+"]
) ) {" );
+out.println("        if( !this->"+getter+"()->equals( valuePtr->"+getter+"() ) )
{" );
 out.println("            return false;");
 out.println("        }");
-out.println("    } else if( valuePtr->"+getter+"()[i"+parameterName+"] != NULL ) {");
+out.println("    } else if( valuePtr->"+getter+"() != NULL ) {");
 out.println("        return false;");
 out.println("    }");
     }



Mime
View raw message