summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2008-04-28 01:19:51 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2008-04-28 01:19:51 +0000
commited417ffea0d13e3f9cbe5431abc25a7d35f90af2 (patch)
tree8afb7d415e09fdb79b76b19d1962f409cd7f5dda /qpid/cpp/rubygen
parent9acf66d9c848809e3308e50998d38a0183b038a4 (diff)
downloadqpid-python-ed417ffea0d13e3f9cbe5431abc25a7d35f90af2.tar.gz
QPID-918 patch from Senaka
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@652037 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
-rw-r--r--qpid/cpp/rubygen/99-0/structs.rb10
-rw-r--r--qpid/cpp/rubygen/framing.0-10/structs.rb10
2 files changed, 18 insertions, 2 deletions
diff --git a/qpid/cpp/rubygen/99-0/structs.rb b/qpid/cpp/rubygen/99-0/structs.rb
index b7d230d528..2e3f82fef9 100644
--- a/qpid/cpp/rubygen/99-0/structs.rb
+++ b/qpid/cpp/rubygen/99-0/structs.rb
@@ -108,9 +108,17 @@ class StructGen < CppGen
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
diff --git a/qpid/cpp/rubygen/framing.0-10/structs.rb b/qpid/cpp/rubygen/framing.0-10/structs.rb
index 35e7717122..e97b6311a2 100644
--- a/qpid/cpp/rubygen/framing.0-10/structs.rb
+++ b/qpid/cpp/rubygen/framing.0-10/structs.rb
@@ -107,9 +107,17 @@ class StructGen < CppGen
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