18#ifndef _CMS_MAPMESSAGE_H_
19#define _CMS_MAPMESSAGE_H_
144 virtual void setBoolean(
const std::string& name,
bool value) = 0;
155 virtual unsigned char getByte(
const std::string& name)
const = 0;
168 virtual void setByte(
const std::string& name,
unsigned char value) = 0;
179 virtual std::vector<unsigned char>
getBytes(
const std::string& name)
const = 0;
192 virtual void setBytes(
const std::string& name,
const std::vector<unsigned char>& value) = 0;
203 virtual char getChar(
const std::string& name)
const = 0;
216 virtual void setChar(
const std::string& name,
char value) = 0;
227 virtual double getDouble(
const std::string& name)
const = 0;
240 virtual void setDouble(
const std::string& name,
double value) = 0;
251 virtual float getFloat(
const std::string& name)
const = 0;
264 virtual void setFloat(
const std::string& name,
float value) = 0;
275 virtual int getInt(
const std::string& name)
const = 0;
288 virtual void setInt(
const std::string& name,
int value) = 0;
299 virtual long long getLong(
const std::string& name)
const = 0;
312 virtual void setLong(
const std::string& name,
long long value) = 0;
323 virtual short getShort(
const std::string& name)
const = 0;
336 virtual void setShort(
const std::string& name,
short value) = 0;
347 virtual std::string
getString(
const std::string& name)
const = 0;
360 virtual void setString(
const std::string& name,
const std::string& value) = 0;
A MapMessage object is used to send a set of name-value pairs.
Definition MapMessage.h:71
virtual std::vector< std::string > getMapNames() const =0
Returns an Enumeration of all the names in the MapMessage object.
virtual void setBytes(const std::string &name, const std::vector< unsigned char > &value)=0
Sets a Bytes value with the specified name into the Map.
virtual void setBoolean(const std::string &name, bool value)=0
Sets a boolean value with the specified name into the Map.
virtual long long getLong(const std::string &name) const =0
Returns the Long value of the Specified name.
virtual double getDouble(const std::string &name) const =0
Returns the Double value of the Specified name.
virtual std::string getString(const std::string &name) const =0
Returns the String value of the Specified name.
virtual bool itemExists(const std::string &name) const =0
Indicates whether an item exists in this MapMessage object.
virtual void setByte(const std::string &name, unsigned char value)=0
Sets a Byte value with the specified name into the Map.
virtual short getShort(const std::string &name) const =0
Returns the Short value of the Specified name.
virtual unsigned char getByte(const std::string &name) const =0
Returns the Byte value of the Specified name.
virtual float getFloat(const std::string &name) const =0
Returns the Float value of the Specified name.
virtual void setString(const std::string &name, const std::string &value)=0
Sets a String value with the specified name into the Map.
virtual void setFloat(const std::string &name, float value)=0
Sets a Float value with the specified name into the Map.
virtual char getChar(const std::string &name) const =0
Returns the Char value of the Specified name.
virtual bool isEmpty() const =0
Returns true if there are no values stored in the MapMessage body.
virtual void setInt(const std::string &name, int value)=0
Sets a Int value with the specified name into the Map.
virtual void setShort(const std::string &name, short value)=0
Sets a Short value with the specified name into the Map.
virtual std::vector< unsigned char > getBytes(const std::string &name) const =0
Returns the Bytes value of the Specified name.
virtual void setLong(const std::string &name, long long value)=0
Sets a Long value with the specified name into the Map.
virtual int getInt(const std::string &name) const =0
Returns the Int value of the Specified name.
virtual bool getBoolean(const std::string &name) const =0
Returns the Boolean value of the Specified name.
virtual ValueType getValueType(const std::string &key) const =0
Returns the value type for the given key mapping.
virtual void setDouble(const std::string &name, double value)=0
Sets a Double value with the specified name into the Map.
virtual void setChar(const std::string &name, char value)=0
Sets a Char value with the specified name into the Map.
Root of all messages.
Definition Message.h:88
ValueType
Defines the Type Identifiers used to identify the type contained within a specific Message property o...
Definition Message.h:112
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23