Author: cctrieloff
Date: Sun Apr 27 18:19:51 2008
New Revision: 652037

URL: http://svn.apache.org/viewvc?rev=652037&view=rev
Log:
QPID-918 patch from Senaka

Modified:
    incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb
    incubator/qpid/trunk/qpid/cpp/rubygen/framing.0-10/structs.rb

Modified: incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb?rev=652037&r1=652036&r2=652037&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb (original)
+++ incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb Sun Apr 27 18:19:51 
2008
@@ -108,9 +108,17 @@
   end
 
   def print_packed_field(s, f, i)
+    classname = s.cppname
+    if (s.kind_of? AmqpMethod)
+      classname = s.body_name
+    end
     genl "if (flags & #{flag_mask(s, i)})"
     indent { 
-      genl "out << \"#{f.name}=\" << #{printable_form(f)} << \"; \";"
+      unless (classname == "ConnectionStartOkBody" && f.name == "response")
+        genl "out << \"#{f.name}=\" << #{printable_form(f)} << \"; \";"
+      else
+        genl "out << \"response=\" << \"xxxxxx\" << \"; \";"
+      end
     }
   end
 

Modified: incubator/qpid/trunk/qpid/cpp/rubygen/framing.0-10/structs.rb
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/rubygen/framing.0-10/structs.rb?rev=652037&r1=652036&r2=652037&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/rubygen/framing.0-10/structs.rb (original)
+++ incubator/qpid/trunk/qpid/cpp/rubygen/framing.0-10/structs.rb Sun Apr 27 
18:19:51 2008
@@ -107,9 +107,17 @@
   end
 
   def print_packed_field(s, f, i)
+    classname = s.cppname
+    if (s.kind_of? AmqpMethod)
+      classname = s.body_name
+    end
     genl "if (flags & #{flag_mask(s, i)})"
     indent { 
-      genl "out << \"#{f.name}=\" << #{printable_form(f)} << \"; \";"
+      unless (classname == "ConnectionStartOkBody" && f.name == "response")
+        genl "out << \"#{f.name}=\" << #{printable_form(f)} << \"; \";"
+      else
+        genl "out << \"response=\" << \"xxxxxx\" << \"; \";"
+      end
     }
   end
 


Reply via email to