activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r737744 - in /activemq/activemq-cpp/trunk/src/main/decaf/net: URI.cpp URI.h
Date Mon, 26 Jan 2009 16:45:48 GMT
Author: tabish
Date: Mon Jan 26 16:45:48 2009
New Revision: 737744

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

Allow URI to be create from default constructor as empty and add a copy constructor.

Modified:
    activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp
    activemq/activemq-cpp/trunk/src/main/decaf/net/URI.h

Modified: activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp?rev=737744&r1=737743&r2=737744&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/net/URI.cpp Mon Jan 26 16:45:48 2009
@@ -44,6 +44,12 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+URI::URI( const URI& uri ) throw ( URISyntaxException ) {
+    this->uri = uri.uri;
+    this->uriString = uri.uriString;
+}
+
+////////////////////////////////////////////////////////////////////////////////
 URI::URI( const std::string& uri ) throw ( URISyntaxException) {
 
     this->uriString = uri;

Modified: activemq/activemq-cpp/trunk/src/main/decaf/net/URI.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/net/URI.h?rev=737744&r1=737743&r2=737744&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/net/URI.h (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/net/URI.h Mon Jan 26 16:45:48 2009
@@ -51,6 +51,17 @@
     public:
 
         /**
+         * Default Constructor, same as calling a Constructor with all fields empty.
+         */
+        URI();
+
+        /**
+         * Constructs a URI as a copy of another URI
+         * @param uri - uri to copy
+         */
+        URI( const URI& uri ) throw ( URISyntaxException );
+
+        /**
          * Constructs a URI from the given string
          * @param uri - string uri to parse.
          */
@@ -408,13 +419,6 @@
         static URI create( const std::string uri )
             throw ( lang::exceptions::IllegalArgumentException );
 
-    protected:
-
-        /**
-         * Default Constructor
-         */
-        URI();
-
     private:
 
         /**



Mime
View raw message