From 7c70d21ca2d788d4432cfa89851c9b928c9f30aa Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 19 Sep 2008 22:31:45 +0000 Subject: Support floats and doubles in field tables. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@697269 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/FieldValue.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (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 3b3c2f2126..bbef9ebceb 100644 --- a/cpp/src/qpid/framing/FieldValue.cpp +++ b/cpp/src/qpid/framing/FieldValue.cpp @@ -138,6 +138,14 @@ IntegerValue::IntegerValue(int v) : { } +FloatValue::FloatValue(float v) : + FieldValue(0x23, new FixedWidthValue<4>(reinterpret_cast(&v))) +{} + +DoubleValue::DoubleValue(double v) : + FieldValue(0x33, new FixedWidthValue<8>(reinterpret_cast(&v))) +{} + TimeValue::TimeValue(uint64_t v) : FieldValue(0x32, new FixedWidthValue<8>(v)) { -- cgit v1.2.1