You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2007/01/21 22:56:35 UTC
svn commit: r498464 - in
/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main:
activemq/connector/openwire/commands/ActiveMQMapMessage.h cms/MapMessage.h
Author: nmittler
Date: Sun Jan 21 13:56:34 2007
New Revision: 498464
URL: http://svn.apache.org/viewvc?view=rev&rev=498464
Log:
[AMQCPP-47] - making get methods on mapmessage const
Modified:
incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h
Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h?view=diff&rev=498464&r1=498463&r2=498464
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h Sun Jan 21 13:56:34 2007
@@ -429,7 +429,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual bool getBoolean( const std::string& name );
+ virtual bool getBoolean( const std::string& name ) const;
/**
* Sets a boolean value with the specified name into the Map.
@@ -445,7 +445,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual unsigned char getByte( const std::string& name );
+ virtual unsigned char getByte( const std::string& name ) const;
/**
* Sets a Byte value with the specified name into the Map.
@@ -461,7 +461,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual unsigned char* getBytes( const std::string& name );
+ virtual const unsigned char* getBytes( const std::string& name ) const;
/**
* Sets a Bytes value with the specified name into the Map.
@@ -477,7 +477,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual char getChar( const std::string& name );
+ virtual char getChar( const std::string& name ) const;
/**
* Sets a Char value with the specified name into the Map.
@@ -492,7 +492,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual double getDouble( const std::string& name );
+ virtual double getDouble( const std::string& name ) const;
/**
* Sets a Double value with the specified name into the Map.
@@ -508,7 +508,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual float getFloat( const std::string& name );
+ virtual float getFloat( const std::string& name ) const;
/**
* Sets a Float value with the specified name into the Map.
@@ -523,7 +523,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual int getInt( const std::string& name );
+ virtual int getInt( const std::string& name ) const;
/**
* Sets a Int value with the specified name into the Map.
@@ -538,7 +538,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual long long getLong( const std::string& name );
+ virtual long long getLong( const std::string& name ) const;
/**
* Sets a Long value with the specified name into the Map.
@@ -553,7 +553,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual short getShort( const std::string& name );
+ virtual short getShort( const std::string& name ) const;
/**
* Sets a Short value with the specified name into the Map.
@@ -568,7 +568,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual std::string getString( const std::string& name );
+ virtual std::string getString( const std::string& name ) const;
/**
* Sets a String value with the specified name into the Map.
Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h?view=diff&rev=498464&r1=498463&r2=498464
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h Sun Jan 21 13:56:34 2007
@@ -63,7 +63,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual bool getBoolean( const std::string& name ) = 0;
+ virtual bool getBoolean( const std::string& name ) const = 0;
/**
* Sets a boolean value with the specified name into the Map.
@@ -79,7 +79,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual unsigned char getByte( const std::string& name ) = 0;
+ virtual unsigned char getByte( const std::string& name ) const = 0;
/**
* Sets a Byte value with the specified name into the Map.
@@ -95,7 +95,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual unsigned char* getBytes( const std::string& name ) = 0;
+ virtual const unsigned char* getBytes( const std::string& name ) const = 0;
/**
* Sets a Bytes value with the specified name into the Map.
@@ -111,7 +111,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual char getChar( const std::string& name ) = 0;
+ virtual char getChar( const std::string& name ) const = 0;
/**
* Sets a Char value with the specified name into the Map.
@@ -126,7 +126,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual double getDouble( const std::string& name ) = 0;
+ virtual double getDouble( const std::string& name ) const = 0;
/**
* Sets a Double value with the specified name into the Map.
@@ -142,7 +142,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual float getFloat( const std::string& name ) = 0;
+ virtual float getFloat( const std::string& name ) const = 0;
/**
* Sets a Float value with the specified name into the Map.
@@ -157,7 +157,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual int getInt( const std::string& name ) = 0;
+ virtual int getInt( const std::string& name ) const = 0;
/**
* Sets a Int value with the specified name into the Map.
@@ -172,7 +172,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual long long getLong( const std::string& name ) = 0;
+ virtual long long getLong( const std::string& name ) const = 0;
/**
* Sets a Long value with the specified name into the Map.
@@ -187,7 +187,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual short getShort( const std::string& name ) = 0;
+ virtual short getShort( const std::string& name ) const = 0;
/**
* Sets a Short value with the specified name into the Map.
@@ -202,7 +202,7 @@
* @param name of the value to fetch from the map
* @throws CMSException
*/
- virtual std::string getString( const std::string& name ) = 0;
+ virtual std::string getString( const std::string& name ) const = 0;
/**
* Sets a String value with the specified name into the Map.