activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r507755 - /activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppMarshallingClassesGenerator.java
Date Thu, 15 Feb 2007 00:37:54 GMT
Author: tabish
Date: Wed Feb 14 16:37:54 2007
New Revision: 507755

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

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

Modified: activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppMarshallingClassesGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppMarshallingClassesGenerator.java?view=diff&rev=507755&r1=507754&r2=507755
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppMarshallingClassesGenerator.java
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/openwire-scripts/AmqCppMarshallingClassesGenerator.java
Wed Feb 14 16:37:54 2007
@@ -278,10 +278,10 @@
                 out.println("    dataOut->write( " + getter + " );");
             }
             else if (type.equals("short")) {
-                out.println("    dataOut->write( " + getter + " );");
+                out.println("    dataOut->writeShort( " + getter + " );");
             }
             else if (type.equals("int")) {
-                out.println("    dataOut->write( " + getter + " );");
+                out.println("    dataOut->writeInt( " + getter + " );");
             }
             else if (type.equals("long")) {
                 out.println("    tightMarshalLong2( wireFormat, " + getter + ", dataOut,
bs );");
@@ -295,7 +295,7 @@
                 }
                 else {
                     out.println("    if( bs->readBoolean() ) {");
-                    out.println("        dataOut->write( (int)" + getter + ".size() );");
+                    out.println("        dataOut->writeInt( (int)" + getter + ".size()
);");
                     out.println("        dataOut->write( (const unsigned char*)(&"
+ getter + "[0]), (int)" + getter + ".size() );");
                     out.println("    }");
                 }
@@ -420,7 +420,7 @@
             String getter = "info->" + property.getGetter().getSimpleName() + "()";
 
             if( type.equals( "boolean" ) ) {
-                out.println("    dataOut->write( " + getter + " );");
+                out.println("    dataOut->writeBoolean( " + getter + " );");
             }
             else if( type.equals("byte") ) {
                 out.println("    dataOut->write( " + getter + " );");
@@ -429,10 +429,10 @@
                 out.println("    dataOut->write( " + getter + " );");
             }
             else if( type.equals("short") ) {
-                out.println("    dataOut->write( " + getter + " );");
+                out.println("    dataOut->writeShort( " + getter + " );");
             }
             else if( type.equals("int")) {
-                out.println("    dataOut->write( " + getter + " );");
+                out.println("    dataOut->writeInt( " + getter + " );");
             }
             else if( type.equals("long") ) {
                 out.println("    looseMarshalLong( wireFormat, " + getter + ", dataOut );");
@@ -447,7 +447,7 @@
                 else {
                     out.println("    dataOut->write( " + getter + ".size() != 0 );");
                     out.println("    if( " + getter + ".size() != 0 ) {");
-                    out.println("        dataOut->write( (int)" + getter + ".size() );");
+                    out.println("        dataOut->writeInt( (int)" + getter + ".size()
);");
                     out.println("        dataOut->write( (const unsigned char*)(&"
+ getter + "[0]), (int)" + getter + ".size() );");
                     out.println("    }");
                 }



Mime
View raw message