activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r465079 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
Date Tue, 17 Oct 2006 22:23:00 GMT
Author: tabish
Date: Tue Oct 17 15:22:57 2006
New Revision: 465079

URL: http://svn.apache.org/viewvc?view=rev&rev=465079
Log:
Store in progress openwire generator scripts here for now

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java?view=diff&rev=465079&r1=465078&r2=465079
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
Tue Oct 17 15:22:57 2006
@@ -286,6 +286,12 @@
 out.println("    "+className+"* "+newInstance+" = new "+className+"();");
 out.println("");
 
+    if( baseClass != null ) {
+out.println("    // Copy the data from the base class or classes");
+out.println("    "+baseClass+"::copy( "+newInstance+" );");
+out.println("");
+    }
+    
     for( Iterator iter = properties.iterator(); iter.hasNext(); ) {
         JProperty property = (JProperty) iter.next();
         String type = toCppType(property.getType());
@@ -317,6 +323,12 @@
 out.println("////////////////////////////////////////////////////////////////////////////////");
 out.println("void "+className+"::copy( "+className+"* dest ) const {");
 out.println("");
+
+        if( baseClass != null ) {
+out.println("    // Copy the data from the base class or classes");
+out.println("    "+baseClass+"::copy( "+newInstance+" );");
+out.println("");
+        }
 
     for( Iterator iter = properties.iterator(); iter.hasNext(); ) {
         JProperty property = (JProperty) iter.next();



Mime
View raw message