From 604b624676c20770d6b6b30be3b2fb357892982e Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Mon, 13 Oct 2008 18:07:07 +0000 Subject: QPID-1351 -Support for sequencing messages through an exchange -Related changes - Bug fix for ptr saftey in Headers & FanOut exchange - Added support for int64 and uint64 in fieldvalue / fieldtable - Added tests for fieldtable - Added tests for sequencing message feature. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@704192 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/FieldValue.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/framing/FieldValue.cpp') diff --git a/cpp/src/qpid/framing/FieldValue.cpp b/cpp/src/qpid/framing/FieldValue.cpp index bbef9ebceb..5fbfe7d0c1 100644 --- a/cpp/src/qpid/framing/FieldValue.cpp +++ b/cpp/src/qpid/framing/FieldValue.cpp @@ -135,8 +135,7 @@ Struct32Value::Struct32Value(const std::string& v) : IntegerValue::IntegerValue(int v) : FieldValue(0x21, new FixedWidthValue<4>(v)) -{ -} +{} FloatValue::FloatValue(float v) : FieldValue(0x23, new FixedWidthValue<4>(reinterpret_cast(&v))) @@ -146,8 +145,17 @@ DoubleValue::DoubleValue(double v) : FieldValue(0x33, new FixedWidthValue<8>(reinterpret_cast(&v))) {} -TimeValue::TimeValue(uint64_t v) : +Integer64Value::Integer64Value(int64_t v) : + FieldValue(0x31, new FixedWidthValue<8>(v)) +{} + +Unsigned64Value::Unsigned64Value(uint64_t v) : FieldValue(0x32, new FixedWidthValue<8>(v)) +{} + + +TimeValue::TimeValue(uint64_t v) : + FieldValue(0x38, new FixedWidthValue<8>(v)) { } -- cgit v1.2.1