18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQMAPMESSAGE_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQMAPMESSAGE_H_
37 mutable std::auto_ptr<util::PrimitiveMap> map;
45 ActiveMQMapMessage(
const ActiveMQMapMessage&);
46 ActiveMQMapMessage& operator=(
const ActiveMQMapMessage&);
#define AMQCPP_API
Definition Config.h:30
virtual bool isEmpty() const
Returns true if there are no values stored in the MapMessage body.
virtual void setChar(const std::string &name, char value)
Sets a Char value with the specified name into the Map.
virtual long long getLong(const std::string &name) const
Returns the Long value of the Specified name.
virtual bool itemExists(const std::string &name) const
Indicates whether an item exists in this MapMessage object.
virtual ActiveMQMapMessage * cloneDataStructure() const
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of ...
util::PrimitiveMap & getMap()
Fetches a reference to this objects PrimitiveMap, if one needs to be created or unmarshaled,...
virtual void beforeMarshal(wireformat::WireFormat *wireFormat)
Called before marshaling is started to prepare the object to be marshaled.
virtual unsigned char getByte(const std::string &name) const
Returns the Byte value of the Specified name.
virtual void setByte(const std::string &name, unsigned char value)
Sets a Byte value with the specified name into the Map.
virtual ~ActiveMQMapMessage()
virtual int getInt(const std::string &name) const
Returns the Int value of the Specified name.
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
virtual void setLong(const std::string &name, long long value)
Sets a Long value with the specified name into the Map.
virtual void setFloat(const std::string &name, float value)
Sets a Float value with the specified name into the Map.
virtual bool isMarshalAware() const
Indicates that this command is aware of Marshaling, and needs to have its Marshaling methods invoked.
Definition ActiveMQMapMessage.h:56
virtual void setBytes(const std::string &name, const std::vector< unsigned char > &value)
Sets a Bytes value with the specified name into the Map.
virtual void setDouble(const std::string &name, double value)
Sets a Double value with the specified name into the Map.
virtual short getShort(const std::string &name) const
Returns the Short value of the Specified name.
virtual std::string getString(const std::string &name) const
Returns the String value of the Specified name.
virtual void setShort(const std::string &name, short value)
Sets a Short value with the specified name into the Map.
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
virtual bool getBoolean(const std::string &name) const
Returns the Boolean value of the Specified name.
virtual cms::Message::ValueType getValueType(const std::string &key) const
Returns the value type for the given key mapping.
virtual void setBoolean(const std::string &name, bool value)
Sets a boolean value with the specified name into the Map.
virtual void setString(const std::string &name, const std::string &value)
Sets a String value with the specified name into the Map.
virtual void checkMapIsUnmarshalled() const
Performs the unmarshal on the Map if needed, otherwise just returns.
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
virtual std::vector< std::string > getMapNames() const
Returns an Enumeration of all the names in the MapMessage object.
static const unsigned char ID_ACTIVEMQMAPMESSAGE
Definition ActiveMQMapMessage.h:41
virtual void clearBody()
Clears out the body of the message.
virtual cms::MapMessage * clone() const
Clone this message exactly, returns a new instance that the caller is required to delete.
virtual void setInt(const std::string &name, int value)
Sets a Int value with the specified name into the Map.
virtual double getDouble(const std::string &name) const
Returns the Double value of the Specified name.
virtual char getChar(const std::string &name) const
Returns the Char value of the Specified name.
virtual float getFloat(const std::string &name) const
Returns the Float value of the Specified name.
virtual std::vector< unsigned char > getBytes(const std::string &name) const
Returns the Bytes value of the Specified name.
ActiveMQMessageTemplate()
Definition ActiveMQMessageTemplate.h:48
Definition DataStructure.h:27
ValueType
Defines the Type Identifiers used to identify the type contained within a specific Message property o...
Definition Message.h:112
Definition ActiveMQBlobMessage.h:28
Definition ActiveMQMessageTransformation.h:36
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23
Definition ArrayPointer.h:432
#define const
Definition zconf.h:198