summaryrefslogtreecommitdiff
path: root/cpp/rubygen/cppgen.rb
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-03-03 14:49:06 +0000
committerGordon Sim <gsim@apache.org>2008-03-03 14:49:06 +0000
commitb4dac41573e33e1a04a2b7b8c9a35f5e72b662bc (patch)
tree15e25a2dc7b42f3788f9dccdd7e632dcf8c346d2 /cpp/rubygen/cppgen.rb
parent928699508993a5ccc59254027773281883d1e973 (diff)
downloadqpid-python-b4dac41573e33e1a04a2b7b8c9a35f5e72b662bc.tar.gz
A further step to final 0-10 spec.
The extra.xml fragment adds class defs for connection in session that are in line with latest spec but use old schema. The preview codepath (99-0) remains unaltered. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@633108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index df4ba49ca8..8e64b06208 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/cpp/rubygen/cppgen.rb
@@ -142,6 +142,13 @@ class AmqpMethod
def param_names() fields.map { |f| f.cppname }; end
def signature() fields.map { |f| f.signature }; end
def body_name() parent.name.caps+name.caps+"Body"; end
+
+ def cpp_pack_type() # preview
+ CppType.new("uint16_t").code("Short").defval("0");
+ end
+ def pack() # preview
+ "short"
+ end
end
module AmqpHasFields
@@ -182,10 +189,12 @@ class AmqpDomain
"timestamp"=>CppType.new("uint64_t").code("LongLong").defval("0"),
"longstr"=>CppType.new("string").passcref.retcref.code("LongString"),
"shortstr"=>CppType.new("string").passcref.retcref.code("ShortString"),
+ "mediumstr"=>CppType.new("string").passcref.retcref.code("MediumString"),
"table"=>CppType.new("FieldTable").passcref.retcref,
"array"=>CppType.new("Array").passcref.retcref,
"content"=>CppType.new("Content").passcref.retcref,
"rfc1982-long-set"=>CppType.new("SequenceNumberSet").passcref.retcref,
+ "sequence-set"=>CppType.new("SequenceSet").passcref.retcref,
"long-struct"=>CppType.new("string").passcref.retcref.code("LongString"),
"uuid"=>CppType.new("Uuid").passcref.retcref
}