18 #ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQMAPMESSAGE_H_ 19 #define _ACTIVEMQ_COMMANDS_ACTIVEMQMAPMESSAGE_H_ 39 mutable std::auto_ptr<util::PrimitiveMap> map;
43 const static unsigned char ID_ACTIVEMQMAPMESSAGE = 25;
56 virtual
unsigned char getDataStructureType()
const;
58 virtual
bool isMarshalAware()
const {
68 virtual std::string toString()
const;
88 virtual bool isEmpty()
const;
93 virtual std::vector< std::string > getMapNames()
const;
98 virtual bool itemExists(
const std::string& name )
const;
108 virtual bool getBoolean(
const std::string& name )
const;
113 virtual void setBoolean(
const std::string& name,
bool value );
118 virtual unsigned char getByte(
const std::string& name )
const;
123 virtual void setByte(
const std::string& name,
unsigned char value );
128 virtual std::vector<unsigned char> getBytes(
const std::string& name )
const;
133 virtual void setBytes(
const std::string& name,
const std::vector<unsigned char>& value );
138 virtual char getChar(
const std::string& name )
const;
143 virtual void setChar(
const std::string& name,
char value );
148 virtual double getDouble(
const std::string& name )
const;
153 virtual void setDouble(
const std::string& name,
double value );
158 virtual float getFloat(
const std::string& name )
const;
163 virtual void setFloat(
const std::string& name,
float value );
168 virtual int getInt(
const std::string& name )
const;
173 virtual void setInt(
const std::string& name,
int value );
178 virtual long long getLong(
const std::string& name )
const;
183 virtual void setLong(
const std::string& name,
long long value );
188 virtual short getShort(
const std::string& name )
const;
193 virtual void setShort(
const std::string& name,
short value );
198 virtual std::string getString(
const std::string& name )
const;
203 virtual void setString(
const std::string& name,
const std::string& value );
223 virtual void checkMapIsUnmarshalled()
const;
ValueType
Defines the Type Identifiers used to identify the type contained within a specific Message property o...
Definition: Message.h:112
#define AMQCPP_API
Definition: Config.h:30
virtual cms::MapMessage * clone() const
Clone this message exactly, returns a new instance that the caller is required to delete...
Definition: ActiveMQMapMessage.h:76
Definition: DataStructure.h:27
A MapMessage object is used to send a set of name-value pairs.
Definition: MapMessage.h:71
Map of named primitives.
Definition: PrimitiveMap.h:36
CMS API Exception that is the base for all exceptions thrown from CMS classes.
Definition: CMSException.h:50
Definition: ActiveMQMapMessage.h:33
void setReadOnlyBody(bool value)
Set the Read Only State of the Message Content.
Definition: Message.h:270
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
#define const
Definition: zconf.h:198
Definition: ActiveMQMessageTemplate.h:41
void setReadOnlyProperties(bool value)
Set the Read Only State of the Message Properties.
Definition: Message.h:254