activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r507331 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands: ActiveMQQueue.h ActiveMQTempQueue.h ActiveMQTempTopic.h ActiveMQTopic.h
Date Wed, 14 Feb 2007 00:28:57 GMT
Author: tabish
Date: Tue Feb 13 16:28:56 2007
New Revision: 507331

URL: http://svn.apache.org/viewvc?view=rev&rev=507331
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQQueue.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempQueue.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempTopic.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTopic.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQQueue.h?view=diff&rev=507331&r1=507330&r2=507331
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQQueue.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQQueue.h
Tue Feb 13 16:28:56 2007
@@ -68,6 +68,21 @@
         }
 
         /**
+         * 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 {
+            std::ostringstream stream;
+
+            stream << "Begin Class = ActiveMQQueue" << std::endl;
+            stream << ActiveMQDestination::toString();
+            stream << "Begin Class = ActiveMQQueue" << std::endl;
+
+            return stream.str();
+        }
+
+        /**
          * 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.
@@ -85,14 +100,6 @@
          */
         virtual cms::Destination::DestinationType getDestinationType(void) const {
             return cms::Destination::QUEUE;
-        }
-
-        /**
-         * Converts the Destination Name into a String
-         * @return string name
-         */
-        virtual std::string toString(void) const {
-            return this->getPhysicalName();
         }
 
         /**

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempQueue.h?view=diff&rev=507331&r1=507330&r2=507331
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempQueue.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempQueue.h
Tue Feb 13 16:28:56 2007
@@ -71,6 +71,20 @@
         }
 
         /**
+         * Converts the Destination Name into a String
+         * @return string name
+         */
+        virtual std::string toString(void) const {
+            std::ostringstream stream;
+
+            stream << "Begin Class = ActiveMQTempQueue" << std::endl;
+            stream << ActiveMQTempDestination::toString();
+            stream << "Begin Class = ActiveMQTempQueue" << std::endl;
+
+            return stream.str();
+        }
+
+        /**
          * 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.
@@ -88,14 +102,6 @@
          */
         virtual cms::Destination::DestinationType getDestinationType(void) const {
             return cms::Destination::TEMPORARY_QUEUE;
-        }
-
-        /**
-         * Converts the Destination Name into a String
-         * @return string name
-         */
-        virtual std::string toString(void) const {
-            return this->getPhysicalName();
         }
 
         /**

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempTopic.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempTopic.h?view=diff&rev=507331&r1=507330&r2=507331
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempTopic.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTempTopic.h
Tue Feb 13 16:28:56 2007
@@ -68,6 +68,20 @@
         }
 
         /**
+         * Converts the Destination Name into a String
+         * @return string name
+         */
+        virtual std::string toString(void) const {
+            std::ostringstream stream;
+
+            stream << "Begin Class = ActiveMQTempTopic" << std::endl;
+            stream << ActiveMQTempDestination::toString();
+            stream << "Begin Class = ActiveMQTempTopic" << std::endl;
+
+            return stream.str();
+        }
+
+        /**
          * 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.
@@ -85,14 +99,6 @@
          */
         virtual cms::Destination::DestinationType getDestinationType(void) const {
             return cms::Destination::TEMPORARY_TOPIC;
-        }
-
-        /**
-         * Converts the Destination Name into a String
-         * @return string name
-         */
-        virtual std::string toString(void) const {
-            return this->getPhysicalName();
         }
 
         /**

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTopic.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTopic.h?view=diff&rev=507331&r1=507330&r2=507331
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTopic.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTopic.h
Tue Feb 13 16:28:56 2007
@@ -68,6 +68,21 @@
         }
 
         /**
+         * 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 {
+            std::ostringstream stream;
+
+            stream << "Begin Class = ActiveMQTopic" << std::endl;
+            stream << ActiveMQDestination::toString();
+            stream << "Begin Class = ActiveMQTopic" << std::endl;
+
+            return stream.str();
+        }
+
+        /**
          * 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.
@@ -85,14 +100,6 @@
          */
         virtual cms::Destination::DestinationType getDestinationType(void) const {
             return cms::Destination::TOPIC;
-        }
-
-        /**
-         * Converts the Destination Name into a String
-         * @return string name
-         */
-        virtual std::string toString(void) const {
-            return this->getPhysicalName();
         }
 
         /**



Mime
View raw message