diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-08-31 22:43:29 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-08-31 22:43:29 +0000 |
| commit | 447c941935ae75a91093e5b49f05a40cc188ab60 (patch) | |
| tree | e1693ff473d1a9e355df8e4b679107ca52354618 /cpp/src/qpid/client | |
| parent | 13b692aac42bc0e896a31c176daf79920a82ea5e (diff) | |
| download | qpid-python-447c941935ae75a91093e5b49f05a40cc188ab60.tar.gz | |
Changes to make messaging API build on Windows: Prepend VAR_ to Variant types enum to avoid name clashes, add 'reference' type for FieldTable ValueMap to satisfy STL, refer to structs as such, not as class (avoids compile warning)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@809772 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client')
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/AddressResolution.h | 4 | ||||
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/Codecs.cpp | 30 | ||||
| -rw-r--r-- | cpp/src/qpid/client/amqp0_10/SessionImpl.h | 4 |
3 files changed, 19 insertions, 19 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/AddressResolution.h b/cpp/src/qpid/client/amqp0_10/AddressResolution.h index 87758abe6d..9d5657450d 100644 --- a/cpp/src/qpid/client/amqp0_10/AddressResolution.h +++ b/cpp/src/qpid/client/amqp0_10/AddressResolution.h @@ -31,8 +31,8 @@ class ReplyTo; } namespace messaging { -class Address; -class Filter; +struct Address; +struct Filter; } namespace client { diff --git a/cpp/src/qpid/client/amqp0_10/Codecs.cpp b/cpp/src/qpid/client/amqp0_10/Codecs.cpp index 9aee3118fe..57184e3937 100644 --- a/cpp/src/qpid/client/amqp0_10/Codecs.cpp +++ b/cpp/src/qpid/client/amqp0_10/Codecs.cpp @@ -183,25 +183,25 @@ boost::shared_ptr<FieldValue> toFieldValue(const Variant& in) { boost::shared_ptr<FieldValue> out; switch (in.getType()) { - case VOID: out = boost::shared_ptr<FieldValue>(new VoidValue()); break; - case BOOL: out = boost::shared_ptr<FieldValue>(new BoolValue(in.asBool())); break; - case UINT8: out = boost::shared_ptr<FieldValue>(new Unsigned8Value(in.asUint8())); break; - case UINT16: out = boost::shared_ptr<FieldValue>(new Unsigned16Value(in.asUint16())); break; - case UINT32: out = boost::shared_ptr<FieldValue>(new Unsigned32Value(in.asUint32())); break; - case UINT64: out = boost::shared_ptr<FieldValue>(new Unsigned64Value(in.asUint64())); break; - case INT8: out = boost::shared_ptr<FieldValue>(new Integer8Value(in.asInt8())); break; - case INT16: out = boost::shared_ptr<FieldValue>(new Integer16Value(in.asInt16())); break; - case INT32: out = boost::shared_ptr<FieldValue>(new Integer32Value(in.asInt32())); break; - case INT64: out = boost::shared_ptr<FieldValue>(new Integer64Value(in.asInt64())); break; - case FLOAT: out = boost::shared_ptr<FieldValue>(new FloatValue(in.asFloat())); break; - case DOUBLE: out = boost::shared_ptr<FieldValue>(new DoubleValue(in.asDouble())); break; + case VAR_VOID: out = boost::shared_ptr<FieldValue>(new VoidValue()); break; + case VAR_BOOL: out = boost::shared_ptr<FieldValue>(new BoolValue(in.asBool())); break; + case VAR_UINT8: out = boost::shared_ptr<FieldValue>(new Unsigned8Value(in.asUint8())); break; + case VAR_UINT16: out = boost::shared_ptr<FieldValue>(new Unsigned16Value(in.asUint16())); break; + case VAR_UINT32: out = boost::shared_ptr<FieldValue>(new Unsigned32Value(in.asUint32())); break; + case VAR_UINT64: out = boost::shared_ptr<FieldValue>(new Unsigned64Value(in.asUint64())); break; + case VAR_INT8: out = boost::shared_ptr<FieldValue>(new Integer8Value(in.asInt8())); break; + case VAR_INT16: out = boost::shared_ptr<FieldValue>(new Integer16Value(in.asInt16())); break; + case VAR_INT32: out = boost::shared_ptr<FieldValue>(new Integer32Value(in.asInt32())); break; + case VAR_INT64: out = boost::shared_ptr<FieldValue>(new Integer64Value(in.asInt64())); break; + case VAR_FLOAT: out = boost::shared_ptr<FieldValue>(new FloatValue(in.asFloat())); break; + case VAR_DOUBLE: out = boost::shared_ptr<FieldValue>(new DoubleValue(in.asDouble())); break; //TODO: check encoding (and length?) when deciding what AMQP type to treat string as - case STRING: out = boost::shared_ptr<FieldValue>(new Str16Value(in.asString())); break; - case MAP: + case VAR_STRING: out = boost::shared_ptr<FieldValue>(new Str16Value(in.asString())); break; + case VAR_MAP: //out = boost::shared_ptr<FieldValue>(toFieldValueCollection<FieldTableValue>(in.asMap(), &toFieldTableEntry)); out = boost::shared_ptr<FieldValue>(toFieldTableValue(in.asMap())); break; - case LIST: + case VAR_LIST: //out = boost::shared_ptr<FieldValue>(toFieldValueCollection<ListValue>(in.asList(), &toFieldValue)); out = boost::shared_ptr<FieldValue>(toListValue(in.asList())); break; diff --git a/cpp/src/qpid/client/amqp0_10/SessionImpl.h b/cpp/src/qpid/client/amqp0_10/SessionImpl.h index 6926fb0235..7032a8db4a 100644 --- a/cpp/src/qpid/client/amqp0_10/SessionImpl.h +++ b/cpp/src/qpid/client/amqp0_10/SessionImpl.h @@ -32,8 +32,8 @@ namespace qpid { namespace messaging { -class Address; -class Filter; +struct Address; +struct Filter; class Message; class Receiver; class Sender; |
