activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r959054 [2/10] - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq: commands/ wireformat/openwire/marshal/generated/
Date Tue, 29 Jun 2010 17:58:35 GMT
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h Tue Jun 29 17:58:29 2010
@@ -55,31 +55,18 @@ namespace commands {
 
     public:  // cms::Message related methods
 
-        /**
-         * Acknowledges all consumed messages of the session
-         * of this consumed message.
-         */
-        virtual void acknowledge() const throw( cms::IllegalStateException, cms::CMSException ) {
+        virtual void acknowledge() const {
             try{
                 this->getAckHandler()->acknowledgeMessage( this );
             }
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Resets the Message to a Read-Only state.
-         */
         virtual void onSend() {
             this->setReadOnlyBody(true);
             this->setReadOnlyProperties(true);
         }
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const {
             try{
 
@@ -102,11 +89,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Clears out the body of the message.  This does not clear the
-         * headers or properties.
-         */
-        virtual void clearBody() throw( cms::CMSException ) {
+        virtual void clearBody() {
             try{
                 this->setContent( std::vector<unsigned char>() );
                 this->setReadOnlyBody( false );
@@ -114,11 +97,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Clears the message properties.  Does not clear the body or
-         * header values.
-         */
-        virtual void clearProperties() throw( cms::CMSException ) {
+        virtual void clearProperties() {
             try{
                 this->getMessageProperties().clear();
                 this->setReadOnlyProperties( false );
@@ -126,42 +105,21 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Retrieves the property names.
-         * @return The complete set of property names currently in this
-         * message.
-         */
-        virtual std::vector<std::string> getPropertyNames() const throw( cms::CMSException ) {
+        virtual std::vector<std::string> getPropertyNames() const {
             try{
                 return getMessageProperties().keySet();
             }
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Indicates whether or not a given property exists.
-         * @param name The name of the property to look up.
-         * @return True if the property exists in this message.
-         */
-        virtual bool propertyExists( const std::string& name ) const throw( cms::CMSException ) {
+        virtual bool propertyExists( const std::string& name ) const {
             try{
                 return getMessageProperties().containsKey( name );
             }
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a boolean property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual bool getBooleanProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual bool getBooleanProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getBooleanProperty( name );
@@ -171,18 +129,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a byte property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual unsigned char getByteProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual unsigned char getByteProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getByteProperty( name );
@@ -192,18 +139,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a double property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual double getDoubleProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual double getDoubleProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getDoubleProperty( name );
@@ -213,18 +149,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a float property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual float getFloatProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual float getFloatProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getFloatProperty( name );
@@ -234,18 +159,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a int property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual int getIntProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual int getIntProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getIntProperty( name );
@@ -255,18 +169,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a long property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual long long getLongProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual long long getLongProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getLongProperty( name );
@@ -276,18 +179,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a short property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual short getShortProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual short getShortProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getShortProperty( name );
@@ -297,18 +189,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets a string property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @return The value for the named property.
-         *
-         * @throws CMSException if the property does not exist.
-         * @throws MessageFormatException - if this type conversion is invalid.
-         */
-        virtual std::string getStringProperty( const std::string& name ) const
-            throw( cms::MessageFormatException, cms::CMSException ) {
+        virtual std::string getStringProperty( const std::string& name ) const {
 
             try{
                 return this->propertiesInterceptor->getStringProperty( name );
@@ -318,19 +199,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a boolean property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setBooleanProperty( const std::string& name, bool value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setBooleanProperty( const std::string& name, bool value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -343,19 +212,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a byte property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setByteProperty( const std::string& name, unsigned char value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setByteProperty( const std::string& name, unsigned char value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -368,19 +225,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a double property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setDoubleProperty( const std::string& name, double value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setDoubleProperty( const std::string& name, double value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -393,18 +238,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a float property.
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setFloatProperty( const std::string& name, float value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setFloatProperty( const std::string& name, float value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -417,19 +251,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a int property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setIntProperty( const std::string& name, int value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setIntProperty( const std::string& name, int value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -442,19 +264,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a long property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setLongProperty( const std::string& name, long long value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setLongProperty( const std::string& name, long long value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -467,19 +277,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a short property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setShortProperty( const std::string& name, short value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setShortProperty( const std::string& name, short value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -492,19 +290,7 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets a string property.
-         *
-         * @param name
-         *      The name of the property to retrieve.
-         * @param value
-         *      The value for the named property.
-         *
-         * @throws CMSException - if the name is an empty string.
-         * @throws MessageNotWriteableException - if properties are read-only
-         */
-        virtual void setStringProperty( const std::string& name, const std::string& value )
-            throw( cms::MessageNotWriteableException, cms::CMSException ) {
+        virtual void setStringProperty( const std::string& name, const std::string& value ) {
 
             if( name == "" ) {
                 throw cms::CMSException( "Message Property names must not be empty", NULL );
@@ -517,58 +303,27 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Get the Correlation Id for this message
-         * @return string representation of the correlation Id
-         * @throw CMSException
-         */
-        virtual std::string getCMSCorrelationID() const throw( cms::CMSException ) {
+        virtual std::string getCMSCorrelationID() const {
             return this->getCorrelationId();
         }
 
-        /**
-         * Sets the Correlation Id used by this message
-         * @param correlationId - String representing the correlation id.
-         * @throw CMSException
-         */
-        virtual void setCMSCorrelationID( const std::string& correlationId ) throw( cms::CMSException ) {
+        virtual void setCMSCorrelationID( const std::string& correlationId ) {
             this->setCorrelationId( correlationId );
         }
 
-        /**
-         * Gets the DeliveryMode for this message
-         * @return DeliveryMode enumerated value.
-         * @throw CMSException
-         */
-        virtual int getCMSDeliveryMode() const throw( cms::CMSException ) {
+        virtual int getCMSDeliveryMode() const {
             return !this->isPersistent();
         }
 
-        /**
-         * Sets the DeliveryMode for this message
-         * @param mode - DeliveryMode enumerated value.
-         * @throw CMSException
-         */
-        virtual void setCMSDeliveryMode( int mode ) throw( cms::CMSException ) {
+        virtual void setCMSDeliveryMode( int mode ) {
             this->setPersistent( mode == (int)cms::DeliveryMode::PERSISTENT );
         }
 
-        /**
-         * Gets the Destination for this Message, returns a
-         * @return Destination object
-         * @throw CMSException
-         */
-        virtual const cms::Destination* getCMSDestination() const throw( cms::CMSException ) {
+        virtual const cms::Destination* getCMSDestination() const {
             return dynamic_cast<const cms::Destination*>( this->getDestination().get() );
         }
 
-        /**
-         * Sets the Destination for this message
-         * @param destination - Destination Object
-         * @throw CMSException
-         */
-        virtual void setCMSDestination( const cms::Destination* destination )
-            throw( cms::CMSException ) {
+        virtual void setCMSDestination( const cms::Destination* destination ) {
 
             try{
                 if( destination != NULL ) {
@@ -582,97 +337,42 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets the Expiration Time for this Message
-         * @return time value
-         * @throw CMSException
-         */
-        virtual long long getCMSExpiration() const throw( cms::CMSException ) {
+        virtual long long getCMSExpiration() const {
             return this->getExpiration();
         }
 
-        /**
-         * Sets the Expiration Time for this message
-         * @param expireTime - time value
-         * @throw CMSException
-         */
-        virtual void setCMSExpiration( long long expireTime ) throw( cms::CMSException ) {
+        virtual void setCMSExpiration( long long expireTime ) {
             this->setExpiration( expireTime );
         }
 
-        /**
-         * Gets the CMS Message Id for this Message
-         * @return time value
-         * @throw CMSException
-         */
-        virtual std::string getCMSMessageID() const throw( cms::CMSException ) {
+        virtual std::string getCMSMessageID() const {
             try{
                 return wireformat::openwire::marshal::BaseDataStreamMarshaller::toString( this->getMessageId().get() );
             }
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Sets the CMS Message Id for this message
-         * @param id - time value
-         * @throw CMSException
-         */
-        virtual void setCMSMessageID( const std::string& id AMQCPP_UNUSED )
-            throw( cms::CMSException ) {
-        }
+        virtual void setCMSMessageID( const std::string& id AMQCPP_UNUSED ) {}
 
-        /**
-         * Gets the Priority Value for this Message
-         * @return priority value
-         * @throw CMSException
-         */
-        virtual int getCMSPriority() const throw( cms::CMSException ) {
+        virtual int getCMSPriority() const {
             return this->getPriority();
         }
 
-        /**
-         * Sets the Priority Value for this message
-         * @param priority - priority value for this message
-         * @throw CMSException
-         */
-        virtual void setCMSPriority( int priority ) throw( cms::CMSException ) {
+        virtual void setCMSPriority( int priority ) {
             this->setPriority( (unsigned char)priority );
         }
 
-        /**
-         * Gets the Redelivered Flag for this Message
-         * @return redelivered value
-         * @throw CMSException
-         */
-        virtual bool getCMSRedelivered() const throw( cms::CMSException ) {
+        virtual bool getCMSRedelivered() const {
             return this->getRedeliveryCounter() != 0;
         }
 
-        /**
-         * Sets the Redelivered Flag for this message
-         * @param redelivered - boolean redelivered value
-         * @throw CMSException
-         */
-        virtual void setCMSRedelivered( bool redelivered AMQCPP_UNUSED ) throw( cms::CMSException )  {}
-
-        /**
-         * Gets the CMS Reply To Address for this Message
-         * @return Reply To Value
-         * @throw CMSException
-         */
-        virtual const cms::Destination* getCMSReplyTo() const throw( cms::CMSException ) {
+        virtual void setCMSRedelivered( bool redelivered AMQCPP_UNUSED ) {}
+
+        virtual const cms::Destination* getCMSReplyTo() const {
             return dynamic_cast< const cms::Destination* >( this->getReplyTo().get() );
         }
 
-        /**
-         * Sets the CMS Reply To Address for this message
-         *
-         * @param destination
-         *      Pointer to the CMS Destination that is the Reply-To value.
-         *
-         * @throw CMSException
-         */
-        virtual void setCMSReplyTo( const cms::Destination* destination ) throw( cms::CMSException ) {
+        virtual void setCMSReplyTo( const cms::Destination* destination ) {
 
             try{
                 if( destination != NULL ) {
@@ -686,39 +386,19 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        /**
-         * Gets the Time Stamp for this Message
-         * @return time stamp value
-         * @throw CMSException
-         */
-        virtual long long getCMSTimestamp() const throw( cms::CMSException ) {
+        virtual long long getCMSTimestamp() const {
             return this->getTimestamp();
         }
 
-        /**
-         * Sets the Time Stamp for this message
-         * @param timeStamp - integer time stamp value
-         * @throw CMSException
-         */
-        virtual void setCMSTimestamp( long long timeStamp ) throw( cms::CMSException ) {
+        virtual void setCMSTimestamp( long long timeStamp ) {
             this->setTimestamp( timeStamp );
         }
 
-        /**
-         * Gets the CMS Message Type for this Message
-         * @return type value
-         * @throw CMSException
-         */
-        virtual std::string getCMSType() const throw( cms::CMSException ) {
+        virtual std::string getCMSType() const {
             return this->getType();
         }
 
-        /**
-         * Sets the CMS Message Type for this message
-         * @param type - message type value string
-         * @throw CMSException
-         */
-        virtual void setCMSType( const std::string& type ) throw( cms::CMSException ) {
+        virtual void setCMSType( const std::string& type ) {
             this->setType( type );
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQObjectMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQObjectMessage.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQObjectMessage.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQObjectMessage.h Tue Jun 29 17:58:29 2010
@@ -46,46 +46,21 @@ namespace commands{
     public:
 
         ActiveMQObjectMessage();
+
         virtual ~ActiveMQObjectMessage() throw() {}
 
         virtual unsigned char getDataStructureType() const;
 
-        /**
-         * Clone this object and return a new instance that the
-         * caller now owns, this will be an exact copy of this one
-         * @returns new copy of this object.
-         */
         virtual ActiveMQObjectMessage* cloneDataStructure() const;
 
-        /**
-         * Copy the contents of the passed object into this objects
-         * members, overwriting any existing data.
-         * @return src - Source Object
-         */
         virtual void copyDataStructure( const DataStructure* src );
 
-        /**
-         * Returns a string containing the information for this DataStructure
-         * such as its type and value of its elements.
-         * @return formatted string useful for debugging.
-         */
         virtual std::string toString() const;
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const;
 
     public:  // cms::Message
 
-        /**
-         * Clone this message exactly, returns a new instance that the
-         * caller is required to delete.
-         * @return new copy of this message
-         */
         virtual cms::Message* clone() const {
             return dynamic_cast<cms::Message*>( this->cloneDataStructure() );
         }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.cpp?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.cpp Tue Jun 29 17:58:29 2010
@@ -25,11 +25,14 @@ ActiveMQQueue::ActiveMQQueue() : ActiveM
 {}
 
 ////////////////////////////////////////////////////////////////////////////////
-ActiveMQQueue::ActiveMQQueue( const std::string& name ) :
-    ActiveMQDestination( name )
+ActiveMQQueue::ActiveMQQueue( const std::string& name ) : ActiveMQDestination( name )
 {}
 
 ////////////////////////////////////////////////////////////////////////////////
+ActiveMQQueue::~ActiveMQQueue() throw() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
 unsigned char ActiveMQQueue::getDataStructureType() const {
     return ActiveMQQueue::ID_ACTIVEMQQUEUE;
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQQueue.h Tue Jun 29 17:58:29 2010
@@ -49,94 +49,48 @@ namespace commands{
     public:
 
         ActiveMQQueue();
+
         ActiveMQQueue( const std::string& name );
-        virtual ~ActiveMQQueue() throw() {}
+
+        virtual ~ActiveMQQueue() throw();
 
         virtual unsigned char getDataStructureType() const;
 
-        /**
-         * Clone this object and return a new instance that the
-         * caller now owns, this will be an exact copy of this one
-         * @returns new copy of this object.
-         */
         virtual ActiveMQQueue* cloneDataStructure() const;
 
-        /**
-         * Copy the contents of the passed object into this objects
-         * members, overwriting any existing data.
-         * @return src - Source Object
-         */
         virtual void copyDataStructure( const DataStructure* src );
 
-        /**
-         * Returns a string containing the information for this DataStructure
-         * such as its type and value of its elements.
-         * @return formatted string useful for debugging.
-         */
         virtual std::string toString() const;
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const;
 
-        /**
-         * @returns the cms::Destination interface pointer that the
-         *          objects that derive from this class implement.
-         */
         virtual const cms::Destination* getCMSDestination() const {
             return this;
         }
 
     public:   // CMS Destination
 
-        /**
-         * Retrieve the Destination Type for this Destination
-         * @return The Destination Type
-         */
         virtual cms::Destination::DestinationType getDestinationType() const {
             return cms::Destination::QUEUE;
         }
 
-        /**
-         * Creates a new instance of this destination type that is a
-         * copy of this one, and returns it.
-         * @returns cloned copy of this object
-         */
         virtual cms::Destination* clone() const {
             return dynamic_cast<cms::Destination*>(
                 this->cloneDataStructure() );
         }
 
-        /**
-         * Copies the contents of the given Destinastion object to this one.
-         * @param source The source Destination object.
-         */
         virtual void copy( const cms::Destination& source ) {
             this->copyDataStructure(
                 dynamic_cast<const DataStructure*>( &source ) );
         }
 
-        /**
-         * Retrieve any properties that might be part of the destination
-         * that was specified.  This is a deviation from the JMS spec
-         * but necessary due to C++ restrictions.
-         * @return const reference to a properties object.
-         */
         virtual const cms::CMSProperties& getCMSProperties() const {
             return this->getOptions();
         }
 
     public:  // CMS Queue
 
-        /**
-         * Gets the name of this queue.
-         * @return The queue name.
-         */
-        virtual std::string getQueueName() const throw( cms::CMSException ) {
+        virtual std::string getQueueName() const {
             return this->getPhysicalName();
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp Tue Jun 29 17:58:29 2010
@@ -113,7 +113,7 @@ bool ActiveMQStreamMessage::equals( cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::clearBody() throw( cms::CMSException ) {
+void ActiveMQStreamMessage::clearBody() {
 
     // Invoke base class's version.
     ActiveMQMessageTemplate<cms::StreamMessage>::clearBody();
@@ -132,7 +132,7 @@ void ActiveMQStreamMessage::onSend() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::reset() throw ( cms::CMSException ) {
+void ActiveMQStreamMessage::reset() {
 
     try{
         storeContent();
@@ -146,10 +146,7 @@ void ActiveMQStreamMessage::reset() thro
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ActiveMQStreamMessage::readBoolean() const throw ( cms::MessageEOFException,
-                                                        cms::MessageFormatException,
-                                                        cms::MessageNotReadableException,
-                                                        cms::CMSException ) {
+bool ActiveMQStreamMessage::readBoolean() const {
 
     try{
 
@@ -187,8 +184,7 @@ bool ActiveMQStreamMessage::readBoolean(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeBoolean( bool value ) throw ( cms::MessageNotWriteableException,
-                                                               cms::CMSException ) {
+void ActiveMQStreamMessage::writeBoolean( bool value ) {
 
     initializeWriting();
     try{
@@ -199,10 +195,7 @@ void ActiveMQStreamMessage::writeBoolean
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned char ActiveMQStreamMessage::readByte() const throw ( cms::MessageEOFException,
-                                                              cms::MessageFormatException,
-                                                              cms::MessageNotReadableException,
-                                                              cms::CMSException ) {
+unsigned char ActiveMQStreamMessage::readByte() const {
 
     initializeReading();
     try {
@@ -248,8 +241,7 @@ unsigned char ActiveMQStreamMessage::rea
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeByte( unsigned char value ) throw ( cms::MessageNotWriteableException,
-                                                                     cms::CMSException ) {
+void ActiveMQStreamMessage::writeByte( unsigned char value ) {
 
     initializeWriting();
     try{
@@ -260,11 +252,7 @@ void ActiveMQStreamMessage::writeByte( u
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ActiveMQStreamMessage::readBytes( std::vector<unsigned char>& value ) const
-    throw ( cms::MessageEOFException,
-            cms::MessageFormatException,
-            cms::MessageNotReadableException,
-            cms::CMSException ) {
+int ActiveMQStreamMessage::readBytes( std::vector<unsigned char>& value ) const {
 
     if( value.size() == 0 ) {
         return 0;
@@ -274,9 +262,7 @@ int ActiveMQStreamMessage::readBytes( st
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeBytes( const std::vector<unsigned char>& value )
-    throw ( cms::MessageNotWriteableException,
-            cms::CMSException ) {
+void ActiveMQStreamMessage::writeBytes( const std::vector<unsigned char>& value ) {
 
     initializeWriting();
     try{
@@ -290,11 +276,7 @@ void ActiveMQStreamMessage::writeBytes( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ActiveMQStreamMessage::readBytes( unsigned char* buffer, int length ) const
-    throw ( cms::MessageEOFException,
-            cms::MessageFormatException,
-            cms::MessageNotReadableException,
-            cms::CMSException ) {
+int ActiveMQStreamMessage::readBytes( unsigned char* buffer, int length ) const {
 
     initializeReading();
     try {
@@ -345,8 +327,7 @@ int ActiveMQStreamMessage::readBytes( un
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeBytes( const unsigned char* value, int offset, int length )
-    throw ( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQStreamMessage::writeBytes( const unsigned char* value, int offset, int length ) {
 
     initializeWriting();
     try{
@@ -358,10 +339,7 @@ void ActiveMQStreamMessage::writeBytes( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-char ActiveMQStreamMessage::readChar() const throw ( cms::MessageEOFException,
-                                                     cms::MessageFormatException,
-                                                     cms::MessageNotReadableException,
-                                                     cms::CMSException ) {
+char ActiveMQStreamMessage::readChar() const {
 
     initializeReading();
     try {
@@ -404,8 +382,7 @@ char ActiveMQStreamMessage::readChar() c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeChar( char value ) throw ( cms::MessageNotWriteableException,
-                                                            cms::CMSException ) {
+void ActiveMQStreamMessage::writeChar( char value ) {
 
     initializeWriting();
     try{
@@ -416,10 +393,7 @@ void ActiveMQStreamMessage::writeChar( c
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-float ActiveMQStreamMessage::readFloat() const throw ( cms::MessageEOFException,
-                                                       cms::MessageFormatException,
-                                                       cms::MessageNotReadableException,
-                                                       cms::CMSException ) {
+float ActiveMQStreamMessage::readFloat() const {
 
     initializeReading();
     try {
@@ -465,8 +439,7 @@ float ActiveMQStreamMessage::readFloat()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeFloat( float value ) throw ( cms::MessageNotWriteableException,
-                                                              cms::CMSException ) {
+void ActiveMQStreamMessage::writeFloat( float value ) {
 
     initializeWriting();
     try{
@@ -477,10 +450,7 @@ void ActiveMQStreamMessage::writeFloat( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-double ActiveMQStreamMessage::readDouble() const throw ( cms::MessageEOFException,
-                                                         cms::MessageFormatException,
-                                                         cms::MessageNotReadableException,
-                                                         cms::CMSException ) {
+double ActiveMQStreamMessage::readDouble() const {
 
     initializeReading();
     try {
@@ -529,8 +499,7 @@ double ActiveMQStreamMessage::readDouble
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeDouble( double value ) throw ( cms::MessageNotWriteableException,
-                                                                cms::CMSException ) {
+void ActiveMQStreamMessage::writeDouble( double value ) {
 
     initializeWriting();
     try{
@@ -541,10 +510,7 @@ void ActiveMQStreamMessage::writeDouble(
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-short ActiveMQStreamMessage::readShort() const throw ( cms::MessageEOFException,
-                                                       cms::MessageFormatException,
-                                                       cms::MessageNotReadableException,
-                                                       cms::CMSException ) {
+short ActiveMQStreamMessage::readShort() const {
 
     initializeReading();
     try {
@@ -593,8 +559,7 @@ short ActiveMQStreamMessage::readShort()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeShort( short value ) throw ( cms::MessageNotWriteableException,
-                                                              cms::CMSException ) {
+void ActiveMQStreamMessage::writeShort( short value ) {
 
     initializeWriting();
     try{
@@ -605,10 +570,7 @@ void ActiveMQStreamMessage::writeShort( 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-unsigned short ActiveMQStreamMessage::readUnsignedShort() const throw ( cms::MessageEOFException,
-                                                                        cms::MessageFormatException,
-                                                                        cms::MessageNotReadableException,
-                                                                        cms::CMSException ) {
+unsigned short ActiveMQStreamMessage::readUnsignedShort() const {
 
     initializeReading();
     try {
@@ -657,9 +619,7 @@ unsigned short ActiveMQStreamMessage::re
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeUnsignedShort( unsigned short value )
-    throw ( cms::MessageNotWriteableException,
-            cms::CMSException ) {
+void ActiveMQStreamMessage::writeUnsignedShort( unsigned short value ) {
 
     initializeWriting();
     try{
@@ -670,10 +630,7 @@ void ActiveMQStreamMessage::writeUnsigne
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int ActiveMQStreamMessage::readInt() const throw ( cms::MessageEOFException,
-                                                   cms::MessageFormatException,
-                                                   cms::MessageNotReadableException,
-                                                   cms::CMSException ) {
+int ActiveMQStreamMessage::readInt() const {
 
     initializeReading();
     try {
@@ -725,8 +682,7 @@ int ActiveMQStreamMessage::readInt() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeInt( int value ) throw ( cms::MessageNotWriteableException,
-                                                          cms::CMSException ) {
+void ActiveMQStreamMessage::writeInt( int value ) {
 
     initializeWriting();
     try{
@@ -737,10 +693,7 @@ void ActiveMQStreamMessage::writeInt( in
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-long long ActiveMQStreamMessage::readLong() const throw ( cms::MessageEOFException,
-                                                          cms::MessageFormatException,
-                                                          cms::MessageNotReadableException,
-                                                          cms::CMSException ) {
+long long ActiveMQStreamMessage::readLong() const {
 
     initializeReading();
     try {
@@ -795,8 +748,7 @@ long long ActiveMQStreamMessage::readLon
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeLong( long long value ) throw ( cms::MessageNotWriteableException,
-                                                                 cms::CMSException ) {
+void ActiveMQStreamMessage::writeLong( long long value ) {
 
     initializeWriting();
     try{
@@ -807,10 +759,7 @@ void ActiveMQStreamMessage::writeLong( l
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string ActiveMQStreamMessage::readString() const throw ( cms::MessageEOFException,
-                                                              cms::MessageFormatException,
-                                                              cms::MessageNotReadableException,
-                                                              cms::CMSException ) {
+std::string ActiveMQStreamMessage::readString() const {
 
     initializeReading();
     try {
@@ -879,8 +828,7 @@ std::string ActiveMQStreamMessage::readS
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQStreamMessage::writeString( const std::string& value ) throw ( cms::MessageNotWriteableException,
-                                                                            cms::CMSException ) {
+void ActiveMQStreamMessage::writeString( const std::string& value ) {
 
     initializeWriting();
     try{

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.h Tue Jun 29 17:58:29 2010
@@ -67,434 +67,75 @@ namespace commands{
 
         virtual unsigned char getDataStructureType() const;
 
-        /**
-         * Clone this object and return a new instance that the
-         * caller now owns, this will be an exact copy of this one
-         * @returns new copy of this object.
-         */
         virtual ActiveMQStreamMessage* cloneDataStructure() const;
 
-        /**
-         * Copy the contents of the passed object into this objects
-         * members, overwriting any existing data.
-         * @return src - Source Object
-         */
         virtual void copyDataStructure( const DataStructure* src );
 
-        /**
-         * Returns a string containing the information for this DataStructure
-         * such as its type and value of its elements.
-         * @return formatted string useful for debugging.
-         */
         virtual std::string toString() const;
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const;
 
-        /**
-         * Store the Data that was written to the stream before a send
-         */
         virtual void onSend();
 
     public:   // CMS Message
 
-        /**
-         * Clone this message exactly, returns a new instance that the
-         * caller is required to delete.
-         * @return new copy of this message
-         */
         virtual cms::StreamMessage* clone() const {
             return dynamic_cast<cms::StreamMessage*>( this->cloneDataStructure() );
         }
 
-        /**
-         * Clears out the body of the message.  This does not clear the
-         * headers or properties.
-         */
-        virtual void clearBody() throw( cms::CMSException );
+        virtual void clearBody();
 
     public: // CMS Stream Message
 
-        /**
-         * Puts the message body in read-only mode and repositions the stream
-         * of bytes to the beginning.
-         * @throws CMSException
-         */
-        virtual void reset() throw ( cms::CMSException );
-
-        /**
-         * Reads a Boolean from the Stream message stream
-         * @returns boolean value from stream
-         *
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual bool readBoolean() const throw ( cms::MessageEOFException,
-                                                 cms::MessageFormatException,
-                                                 cms::MessageNotReadableException,
-                                                 cms::CMSException );
-
-        /**
-         * Writes a boolean to the Stream message stream as a 1-byte value.
-         * The value true is written as the value (byte)1; the value false
-         * is written as the value (byte)0.
-         *
-         * @param value
-         *      boolean to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeBoolean( bool value ) throw ( cms::MessageNotWriteableException,
-                                                        cms::CMSException );
-
-        /**
-         * Reads a Byte from the Stream message stream
-         *
-         * @returns unsigned char value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual unsigned char readByte() const throw ( cms::MessageEOFException,
-                                                       cms::MessageFormatException,
-                                                       cms::MessageNotReadableException,
-                                                       cms::CMSException );
-
-        /**
-         * Writes a byte to the Stream message stream as a 1-byte value
-         *
-         * @param value
-         *      byte to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeByte( unsigned char value ) throw ( cms::MessageNotWriteableException,
-                                                              cms::CMSException );
-
-        /**
-         * Reads a byte array from the Stream message stream.
-         *
-         * If the length of vector value is less than the number of bytes
-         * remaining to be read from the stream, the vector should be filled. A
-         * subsequent call reads the next increment, and so on.
-         *
-         * If the number of bytes remaining in the stream is less than the
-         * length of vector value, the bytes should be read into the vector. The
-         * return value of the total number of bytes read will be less than the
-         * length of the vector, indicating that there are no more bytes left to
-         * be read from the stream. The next read of the stream returns -1.
-         *
-         * @param value
-         *      buffer to place data in
-         * @returns the total number of bytes read into the buffer, or -1 if
-         *          there is no more data because the end of the stream has
-         *          been reached
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual int readBytes( std::vector<unsigned char>& value ) const
-            throw ( cms::MessageEOFException,
-                    cms::MessageFormatException,
-                    cms::MessageNotReadableException,
-                    cms::CMSException );
-
-        /**
-         * Writes a byte array to the Stream message stream using the vector
-         * size as the number of bytes to write.
-         *
-         * @param value
-         *      bytes to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeBytes( const std::vector<unsigned char>& value )
-            throw ( cms::MessageNotWriteableException,
-                    cms::CMSException );
-
-        /**
-         * Reads a portion of the Stream message stream.
-         *
-         * If the length of array value is less than the number of bytes
-         * remaining to be read from the stream, the array should be filled. A
-         * subsequent call reads the next increment, and so on.
-         *
-         * If the number of bytes remaining in the stream is less than the
-         * length of array value, the bytes should be read into the array. The
-         * return value of the total number of bytes read will be less than the
-         * length of the array, indicating that there are no more bytes left to
-         * be read from the stream. The next read of the stream returns -1.
-         *
-         * If length is negative, or length is greater than the length of the
-         * array value, then an CMSException is thrown. No bytes
-         * will be read from the stream for this exception case.
-         *
-         * @param buffer
-         *      the buffer into which the data is read
-         * @param length
-         *      the number of bytes to read; must be less than or equal to
-         *      value.length
-         * @returns the total number of bytes read into the buffer, or -1 if
-         *          there is no more data because the end of the stream has
-         *          been reached
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual int readBytes( unsigned char* buffer, int length ) const
-            throw ( cms::MessageEOFException,
-                    cms::MessageFormatException,
-                    cms::MessageNotReadableException,
-                    cms::CMSException );
-
-        /**
-         * Writes a portion of a byte array to the Stream message stream.
-         * size as the number of bytes to write.
-         *
-         * @param value
-         *      bytes to write to the stream
-         * @param offset
-         *      the initial offset within the byte array
-         * @param length
-         *      the number of bytes to use
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeBytes( const unsigned char* value, int offset, int length )
-            throw ( cms::MessageNotWriteableException,
-                    cms::CMSException );
-
-        /**
-         * Reads a Char from the Stream message stream
-         *
-         * @returns char value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual char readChar() const throw ( cms::MessageEOFException,
-                                              cms::MessageFormatException,
-                                              cms::MessageNotReadableException,
-                                              cms::CMSException );
-
-        /**
-         * Writes a char to the Stream message stream as a 1-byte value
-         *
-         * @param value
-         *      char to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeChar( char value ) throw ( cms::MessageNotWriteableException,
-                                                     cms::CMSException );
-
-        /**
-         * Reads a 32 bit float from the Stream message stream
-         *
-         * @returns double value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual float readFloat() const throw ( cms::MessageEOFException,
-                                                cms::MessageFormatException,
-                                                cms::MessageNotReadableException,
-                                                cms::CMSException );
-
-        /**
-         * Writes a float to the Stream message stream as a 4 byte value
-         * @param value
-         *      float to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeFloat( float value ) throw ( cms::MessageNotWriteableException,
-                                                       cms::CMSException );
-
-        /**
-         * Reads a 64 bit double from the Stream message stream
-         *
-         * @returns double value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual double readDouble() const throw ( cms::MessageEOFException,
-                                                  cms::MessageFormatException,
-                                                  cms::MessageNotReadableException,
-                                                  cms::CMSException );
-
-        /**
-         * Writes a double to the Stream message stream as a 8 byte value
-         * @param value
-         *      double to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeDouble( double value ) throw ( cms::MessageNotWriteableException,
-                                                         cms::CMSException );
-
-        /**
-         * Reads a 16 bit signed short from the Stream message stream
-         *
-         * @returns short value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual short readShort() const throw ( cms::MessageEOFException,
-                                                cms::MessageFormatException,
-                                                cms::MessageNotReadableException,
-                                                cms::CMSException );
-
-        /**
-         * Writes a signed short to the Stream message stream as a 2 byte value
-         *
-         * @param value
-         *      signed short to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeShort( short value ) throw ( cms::MessageNotWriteableException,
-                                                       cms::CMSException );
-
-        /**
-         * Reads a 16 bit unsigned short from the Stream message stream
-         *
-         * @returns unsigned short value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual unsigned short readUnsignedShort() const throw ( cms::MessageEOFException,
-                                                                 cms::MessageFormatException,
-                                                                 cms::MessageNotReadableException,
-                                                                 cms::CMSException );
-
-        /**
-         * Writes a unsigned short to the Stream message stream as a 2 byte value
-         *
-         * @param value
-         *      unsigned short to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeUnsignedShort( unsigned short value ) throw ( cms::MessageNotWriteableException,
-                                                                        cms::CMSException );
-
-        /**
-         * Reads a 32 bit signed integer from the Stream message stream
-         *
-         * @returns int value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual int readInt() const throw ( cms::MessageEOFException,
-                                            cms::MessageFormatException,
-                                            cms::MessageNotReadableException,
-                                            cms::CMSException );
-
-        /**
-         * Writes a signed int to the Stream message stream as a 4 byte value
-         *
-         * @param value
-         *      signed int to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeInt( int value ) throw ( cms::MessageNotWriteableException,
-                                                   cms::CMSException );
-
-        /**
-         * Reads a 64 bit long from the Stream message stream
-         *
-         * @returns long long value from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual long long readLong() const throw ( cms::MessageEOFException,
-                                                   cms::MessageFormatException,
-                                                   cms::MessageNotReadableException,
-                                                   cms::CMSException );
-
-        /**
-         * Writes a long long to the Stream message stream as a 8 byte value
-         *
-         * @param value
-         *      signed long long to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeLong( long long value ) throw ( cms::MessageNotWriteableException,
-                                                          cms::CMSException );
-
-        /**
-         * Reads an ASCII String from the Stream message stream
-         *
-         * @returns String from stream
-         * @throw CMSException - if the CMS provider fails to read the message
-         *                       due to some internal error.
-         * @throw MessageEOFException - if unexpected end of message stream has been reached.
-         * @throw MessageFormatException - if this type conversion is invalid.
-         * @throw MessageNotReadableException - if the message is in write-only mode.
-         */
-        virtual std::string readString() const throw ( cms::MessageEOFException,
-                                                       cms::MessageFormatException,
-                                                       cms::MessageNotReadableException,
-                                                       cms::CMSException );
-
-        /**
-         * Writes an ASCII String to the Stream message stream
-         *
-         * @param value
-         *      String to write to the stream
-         * @throws CMSException - if the CMS provider fails to write the message due
-         *                        to some internal error.
-         * @throws MessageNotWriteableException - if the message is in read-only mode.
-         */
-        virtual void writeString( const std::string& value )throw ( cms::MessageNotWriteableException,
-                                                                    cms::CMSException );
+        virtual void reset();
+
+        virtual bool readBoolean() const;
+
+        virtual void writeBoolean( bool value );
+
+        virtual unsigned char readByte() const;
+
+        virtual void writeByte( unsigned char value );
+
+        virtual int readBytes( std::vector<unsigned char>& value ) const;
+
+        virtual void writeBytes( const std::vector<unsigned char>& value );
+
+        virtual int readBytes( unsigned char* buffer, int length ) const;
+
+        virtual void writeBytes( const unsigned char* value, int offset, int length );
+
+        virtual char readChar() const;
+
+        virtual void writeChar( char value );
+
+        virtual float readFloat() const;
+
+        virtual void writeFloat( float value );
+
+        virtual double readDouble() const;
+
+        virtual void writeDouble( double value );
+
+        virtual short readShort() const;
+
+        virtual void writeShort( short value );
+
+        virtual unsigned short readUnsignedShort() const;
+
+        virtual void writeUnsignedShort( unsigned short value );
+
+        virtual int readInt() const;
+
+        virtual void writeInt( int value );
+
+        virtual long long readLong() const;
+
+        virtual void writeLong( long long value );
+
+        virtual std::string readString() const;
+
+        virtual void writeString( const std::string& value );
 
     private:
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.cpp?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.cpp Tue Jun 29 17:58:29 2010
@@ -50,7 +50,7 @@ std::string ActiveMQTempDestination::toS
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTempDestination::close() throw( cms::CMSException ) {
+void ActiveMQTempDestination::close() {
     try {
         if( this->connection != NULL ) {
             this->connection->destroyDestination( this );

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempDestination.h Tue Jun 29 17:58:29 2010
@@ -63,54 +63,28 @@ namespace commands{
 
         virtual unsigned char getDataStructureType() const;
 
-        /**
-         * Clone this object and return a new instance that the
-         * caller now owns, this will be an exact copy of this one
-         * @returns new copy of this object.
-         */
         virtual ActiveMQTempDestination* cloneDataStructure() const {
             return NULL;
         }
 
-        /**
-         * Copy the contents of the passed object into this objects
-         * members, overwriting any existing data.
-         * @return src - Source Object
-         */
         virtual void copyDataStructure( const DataStructure* src ) {
             ActiveMQDestination::copyDataStructure( src );
         }
 
-        /**
-         * Returns a string containing the information for this DataStructure
-         * such as its type and value of its elements.
-         * @return formatted string useful for debugging.
-         */
         virtual std::string toString() const;
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const {
             return ActiveMQDestination::equals( value );
         }
 
-        /**
-         * Closes down this Destination resulting in a call to dispose of the
-         * TempDestination resource at the Broker.  This should only be called
-         * when the user is certain that they are finished with this destination.
-         * The TempDestination is not closed automatically on shutdown.
-         * throws cms::CMSException
-         */
-        virtual void close() throw( cms::CMSException );
+        virtual void close();
 
         /**
          * Sets the Parent Connection that is notified when this destination is
          * destroyed.
-         * @param connection - The parent connection.
+         *
+         * @param connection
+         *      The parent connection to be used to destroy this destination if closed..
          */
         void setConnection( core::ActiveMQConnection* connection ) {
             this->connection = connection;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.cpp?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.cpp Tue Jun 29 17:58:29 2010
@@ -68,7 +68,7 @@ bool ActiveMQTempQueue::equals( const Da
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTempQueue::destroy() throw ( cms::CMSException ) {
+void ActiveMQTempQueue::destroy() {
     try{
         close();
     }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempQueue.h Tue Jun 29 17:58:29 2010
@@ -52,96 +52,45 @@ namespace commands{
 
         virtual unsigned char getDataStructureType() const;
 
-        /**
-         * Clone this object and return a new instance that the
-         * caller now owns, this will be an exact copy of this one
-         * @returns new copy of this object.
-         */
         virtual ActiveMQTempQueue* cloneDataStructure() const;
 
-        /**
-         * Copy the contents of the passed object into this objects
-         * members, overwriting any existing data.
-         * @return src - Source Object
-         */
         virtual void copyDataStructure( const DataStructure* src );
 
-        /**
-         * Converts the Destination Name into a String
-         * @return string name
-         */
         virtual std::string toString() const;
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const;
 
-        /**
-         * @returns the cms::Destination interface pointer that the
-         *          objects that derive from this class implement.
-         */
         virtual const cms::Destination* getCMSDestination() const {
             return this;
         }
 
     public:   // CMS Destination
 
-        /**
-         * Retrieve the Destination Type for this Destination
-         * @return The Destination Type
-         */
         virtual cms::Destination::DestinationType getDestinationType() const {
             return cms::Destination::TEMPORARY_QUEUE;
         }
 
-        /**
-         * Creates a new instance of this destination type that is a
-         * copy of this one, and returns it.
-         * @returns cloned copy of this object
-         */
         virtual cms::Destination* clone() const {
             return dynamic_cast<cms::Destination*>(
                 this->cloneDataStructure() );
         }
 
-        /**
-         * Copies the contents of the given Destinastion object to this one.
-         * @param source The source Destination object.
-         */
         virtual void copy( const cms::Destination& source ) {
             this->copyDataStructure(
                 dynamic_cast<const DataStructure*>( &source ) );
         }
 
-        /**
-         * Retrieve any properties that might be part of the destination
-         * that was specified.  This is a deviation from the JMS spec
-         * but necessary due to C++ restrictions.
-         * @return const reference to a properties object.
-         */
         virtual const cms::CMSProperties& getCMSProperties() const {
             return this->getOptions();
         }
 
     public:
 
-        /**
-         * Gets the name of this queue.
-         * @return The queue name.
-         */
-        virtual std::string getQueueName() const throw( cms::CMSException ) {
+        virtual std::string getQueueName() const {
             return this->getPhysicalName();
         }
 
-        /**
-         * Destroy's the Temp Destination at the Broker
-         * @throws CMSException
-         */
-        virtual void destroy() throw ( cms::CMSException );
+        virtual void destroy();
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.cpp?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.cpp Tue Jun 29 17:58:29 2010
@@ -67,7 +67,7 @@ bool ActiveMQTempTopic::equals( const Da
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTempTopic::destroy() throw ( cms::CMSException ) {
+void ActiveMQTempTopic::destroy() {
     try{
         close();
     }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.h?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTempTopic.h Tue Jun 29 17:58:29 2010
@@ -52,95 +52,45 @@ namespace commands{
 
         virtual unsigned char getDataStructureType() const;
 
-        /**
-         * Clone this object and return a new instance that the
-         * caller now owns, this will be an exact copy of this one
-         * @returns new copy of this object.
-         */
         virtual ActiveMQTempTopic* cloneDataStructure() const;
 
-        /**
-         * Copy the contents of the passed object into this objects
-         * members, overwriting any existing data.
-         * @return src - Source Object
-         */
         virtual void copyDataStructure( const DataStructure* src );
-        /**
-         * Converts the Destination Name into a String
-         * @return string name
-         */
+
         virtual std::string toString() const;
 
-        /**
-         * Compares the DataStructure passed in to this one, and returns if
-         * they are equivalent.  Equivalent here means that they are of the
-         * same type, and that each element of the objects are the same.
-         * @returns true if DataStructure's are Equal.
-         */
         virtual bool equals( const DataStructure* value ) const;
 
-        /**
-         * @returns the cms::Destination interface pointer that the
-         *          objects that derive from this class implement.
-         */
         virtual const cms::Destination* getCMSDestination() const {
             return this;
         }
 
     public:   // CMS Destination
 
-        /**
-         * Retrieve the Destination Type for this Destination
-         * @return The Destination Type
-         */
         virtual cms::Destination::DestinationType getDestinationType() const {
             return cms::Destination::TEMPORARY_TOPIC;
         }
 
-        /**
-         * Creates a new instance of this destination type that is a
-         * copy of this one, and returns it.
-         * @returns cloned copy of this object
-         */
         virtual cms::Destination* clone() const {
             return dynamic_cast<cms::Destination*>(
                 this->cloneDataStructure() );
         }
 
-        /**
-         * Copies the contents of the given Destinastion object to this one.
-         * @param source The source Destination object.
-         */
         virtual void copy( const cms::Destination& source ) {
             this->copyDataStructure(
                 dynamic_cast<const DataStructure*>( &source ) );
         }
 
-        /**
-         * Retrieve any properties that might be part of the destination
-         * that was specified.  This is a deviation from the JMS spec
-         * but necessary due to C++ restrictions.
-         * @return const reference to a properties object.
-         */
         virtual const cms::CMSProperties& getCMSProperties() const {
             return this->getOptions();
         }
 
     public:  // CMS Temporary Topic
 
-        /**
-         * Gets the name of this topic.
-         * @return The topic name.
-         */
-        virtual std::string getTopicName() const throw( cms::CMSException ) {
+        virtual std::string getTopicName() const {
             return this->getPhysicalName();
         }
 
-        /**
-         * Destroy's the Temp Destination at the Broker
-         * @throws CMSException
-         */
-        virtual void destroy() throw ( cms::CMSException );
+        virtual void destroy();
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTextMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTextMessage.cpp?rev=959054&r1=959053&r2=959054&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTextMessage.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQTextMessage.cpp Tue Jun 29 17:58:29 2010
@@ -107,14 +107,13 @@ bool ActiveMQTextMessage::equals( const 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTextMessage::clearBody() throw( cms::CMSException ) {
+void ActiveMQTextMessage::clearBody() {
     ActiveMQMessageTemplate<cms::TextMessage>::clearBody();
     this->text.reset( NULL );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTextMessage::beforeMarshal( wireformat::WireFormat* wireFormat )
-    throw ( decaf::io::IOException ) {
+void ActiveMQTextMessage::beforeMarshal( wireformat::WireFormat* wireFormat ) {
 
     ActiveMQMessageTemplate<cms::TextMessage>::beforeMarshal( wireFormat );
 
@@ -164,7 +163,7 @@ unsigned int ActiveMQTextMessage::getSiz
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::string ActiveMQTextMessage::getText() const throw( cms::CMSException ) {
+std::string ActiveMQTextMessage::getText() const {
 
     try{
 
@@ -201,8 +200,7 @@ std::string ActiveMQTextMessage::getText
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTextMessage::setText( const char* msg )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQTextMessage::setText( const char* msg ) {
 
     try{
         setText( std::string(msg) );
@@ -211,8 +209,7 @@ void ActiveMQTextMessage::setText( const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ActiveMQTextMessage::setText( const std::string& msg )
-    throw( cms::MessageNotWriteableException, cms::CMSException ) {
+void ActiveMQTextMessage::setText( const std::string& msg ) {
 
     try{
         failIfReadOnlyBody();



Mime
View raw message