You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2007/01/18 15:14:55 UTC

svn commit: r497439 - in /incubator/qpid/trunk/qpid/cpp/lib/common/framing: Value.cpp Value.h

Author: gsim
Date: Thu Jan 18 06:14:54 2007
New Revision: 497439

URL: http://svn.apache.org/viewvc?view=rev&rev=497439
Log:
Added the non-standard 'binary' type to the field table implementation to support the java client.


Modified:
    incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.cpp
    incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.h

Modified: incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.cpp?view=diff&rev=497439&r1=497438&r2=497439
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.cpp Thu Jan 18 06:14:54 2007
@@ -85,6 +85,11 @@
       case 'F':
         value.reset(new FieldTableValue());
 	break;
+
+      //non-standard types, introduced in java client for JMS compliance
+      case 'x':
+        value.reset(new BinaryValue());
+	break;
       default:
         std::stringstream out;
         out << "Unknown field table value type: " << type;

Modified: incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.h
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.h?view=diff&rev=497439&r1=497438&r2=497439
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.h (original)
+++ incubator/qpid/trunk/qpid/cpp/lib/common/framing/Value.h Thu Jan 18 06:14:54 2007
@@ -158,6 +158,14 @@
     virtual void print(std::ostream& out) const;
 };
 
+//non-standard types, introduced in java client for JMS compliance
+class BinaryValue : public StringValue {
+  public:
+    BinaryValue(const std::string& v) : StringValue(v) {}
+    BinaryValue() {}
+    virtual char getType() const { return 'x'; }
+};
+
 }} // qpid::framing
 
 #endif