activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r501173 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/
Date Mon, 29 Jan 2007 20:25:26 GMT
Author: tabish
Date: Mon Jan 29 12:25:23 2007
New Revision: 501173

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

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.cpp
Mon Jan 29 12:25:23 2007
@@ -135,17 +135,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<BrokerInfo*> BrokerInfo::getPeerBrokerInfos() const {
+const std::vector<BrokerInfo*>& BrokerInfo::getPeerBrokerInfos() const {
     return peerBrokerInfos;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<BrokerInfo*> BrokerInfo::getPeerBrokerInfos() {
+std::vector<BrokerInfo*>& BrokerInfo::getPeerBrokerInfos() {
     return peerBrokerInfos;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void BrokerInfo::setPeerBrokerInfos(std::vector<BrokerInfo*> peerBrokerInfos ) {
+void BrokerInfo::setPeerBrokerInfos(const std::vector<BrokerInfo*>& peerBrokerInfos
) {
     this->peerBrokerInfos = peerBrokerInfos;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BrokerInfo.h
Mon Jan 29 12:25:23 2007
@@ -97,9 +97,9 @@
         virtual std::string& getBrokerURL();
         virtual void setBrokerURL( const std::string& brokerURL );
 
-        virtual const std::vector<BrokerInfo*> getPeerBrokerInfos() const;
-        virtual std::vector<BrokerInfo*> getPeerBrokerInfos();
-        virtual void setPeerBrokerInfos( std::vector<BrokerInfo*> peerBrokerInfos );
+        virtual const std::vector<BrokerInfo*>& getPeerBrokerInfos() const;
+        virtual std::vector<BrokerInfo*>& getPeerBrokerInfos();
+        virtual void setPeerBrokerInfos( const std::vector<BrokerInfo*>& peerBrokerInfos
);
 
         virtual const std::string& getBrokerName() const;
         virtual std::string& getBrokerName();

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.cpp
Mon Jan 29 12:25:23 2007
@@ -161,17 +161,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<BrokerId*> ConnectionInfo::getBrokerPath() const {
+const std::vector<BrokerId*>& ConnectionInfo::getBrokerPath() const {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<BrokerId*> ConnectionInfo::getBrokerPath() {
+std::vector<BrokerId*>& ConnectionInfo::getBrokerPath() {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ConnectionInfo::setBrokerPath(std::vector<BrokerId*> brokerPath ) {
+void ConnectionInfo::setBrokerPath(const std::vector<BrokerId*>& brokerPath ) {
     this->brokerPath = brokerPath;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConnectionInfo.h
Mon Jan 29 12:25:23 2007
@@ -103,9 +103,9 @@
         virtual std::string& getUserName();
         virtual void setUserName( const std::string& userName );
 
-        virtual const std::vector<BrokerId*> getBrokerPath() const;
-        virtual std::vector<BrokerId*> getBrokerPath();
-        virtual void setBrokerPath( std::vector<BrokerId*> brokerPath );
+        virtual const std::vector<BrokerId*>& getBrokerPath() const;
+        virtual std::vector<BrokerId*>& getBrokerPath();
+        virtual void setBrokerPath( const std::vector<BrokerId*>& brokerPath );
 
         virtual const bool isBrokerMasterConnector() const;
         virtual bool isBrokerMasterConnector();

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.cpp
Mon Jan 29 12:25:23 2007
@@ -305,17 +305,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<BrokerId*> ConsumerInfo::getBrokerPath() const {
+const std::vector<BrokerId*>& ConsumerInfo::getBrokerPath() const {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<BrokerId*> ConsumerInfo::getBrokerPath() {
+std::vector<BrokerId*>& ConsumerInfo::getBrokerPath() {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ConsumerInfo::setBrokerPath(std::vector<BrokerId*> brokerPath ) {
+void ConsumerInfo::setBrokerPath(const std::vector<BrokerId*>& brokerPath ) {
     this->brokerPath = brokerPath;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ConsumerInfo.h
Mon Jan 29 12:25:23 2007
@@ -146,9 +146,9 @@
         virtual unsigned char getPriority();
         virtual void setPriority( unsigned char priority );
 
-        virtual const std::vector<BrokerId*> getBrokerPath() const;
-        virtual std::vector<BrokerId*> getBrokerPath();
-        virtual void setBrokerPath( std::vector<BrokerId*> brokerPath );
+        virtual const std::vector<BrokerId*>& getBrokerPath() const;
+        virtual std::vector<BrokerId*>& getBrokerPath();
+        virtual void setBrokerPath( const std::vector<BrokerId*>& brokerPath );
 
         virtual const BooleanExpression* getAdditionalPredicate() const;
         virtual BooleanExpression* getAdditionalPredicate();

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.cpp
Mon Jan 29 12:25:23 2007
@@ -84,17 +84,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<DataStructure*> DataArrayResponse::getData() const {
+const std::vector<DataStructure*>& DataArrayResponse::getData() const {
     return data;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<DataStructure*> DataArrayResponse::getData() {
+std::vector<DataStructure*>& DataArrayResponse::getData() {
     return data;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DataArrayResponse::setData(std::vector<DataStructure*> data ) {
+void DataArrayResponse::setData(const std::vector<DataStructure*>& data ) {
     this->data = data;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DataArrayResponse.h
Mon Jan 29 12:25:23 2007
@@ -79,9 +79,9 @@
          */
         virtual void copyDataStructure( const DataStructure* src );
 
-        virtual const std::vector<DataStructure*> getData() const;
-        virtual std::vector<DataStructure*> getData();
-        virtual void setData( std::vector<DataStructure*> data );
+        virtual const std::vector<DataStructure*>& getData() const;
+        virtual std::vector<DataStructure*>& getData();
+        virtual void setData( const std::vector<DataStructure*>& data );
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.cpp
Mon Jan 29 12:25:23 2007
@@ -158,17 +158,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<BrokerId*> DestinationInfo::getBrokerPath() const {
+const std::vector<BrokerId*>& DestinationInfo::getBrokerPath() const {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<BrokerId*> DestinationInfo::getBrokerPath() {
+std::vector<BrokerId*>& DestinationInfo::getBrokerPath() {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void DestinationInfo::setBrokerPath(std::vector<BrokerId*> brokerPath ) {
+void DestinationInfo::setBrokerPath(const std::vector<BrokerId*>& brokerPath )
{
     this->brokerPath = brokerPath;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/DestinationInfo.h
Mon Jan 29 12:25:23 2007
@@ -101,9 +101,9 @@
         virtual long long getTimeout();
         virtual void setTimeout( long long timeout );
 
-        virtual const std::vector<BrokerId*> getBrokerPath() const;
-        virtual std::vector<BrokerId*> getBrokerPath();
-        virtual void setBrokerPath( std::vector<BrokerId*> brokerPath );
+        virtual const std::vector<BrokerId*>& getBrokerPath() const;
+        virtual std::vector<BrokerId*>& getBrokerPath();
+        virtual void setBrokerPath( const std::vector<BrokerId*>& brokerPath );
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.cpp
Mon Jan 29 12:25:23 2007
@@ -384,32 +384,32 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<unsigned char> Message::getContent() const {
+const std::vector<unsigned char>& Message::getContent() const {
     return content;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<unsigned char> Message::getContent() {
+std::vector<unsigned char>& Message::getContent() {
     return content;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Message::setContent(std::vector<unsigned char> content ) {
+void Message::setContent(const std::vector<unsigned char>& content ) {
     this->content = content;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<unsigned char> Message::getMarshalledProperties() const {
+const std::vector<unsigned char>& Message::getMarshalledProperties() const {
     return marshalledProperties;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<unsigned char> Message::getMarshalledProperties() {
+std::vector<unsigned char>& Message::getMarshalledProperties() {
     return marshalledProperties;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Message::setMarshalledProperties(std::vector<unsigned char> marshalledProperties
) {
+void Message::setMarshalledProperties(const std::vector<unsigned char>& marshalledProperties
) {
     this->marshalledProperties = marshalledProperties;
 }
 
@@ -474,17 +474,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<BrokerId*> Message::getBrokerPath() const {
+const std::vector<BrokerId*>& Message::getBrokerPath() const {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<BrokerId*> Message::getBrokerPath() {
+std::vector<BrokerId*>& Message::getBrokerPath() {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void Message::setBrokerPath(std::vector<BrokerId*> brokerPath ) {
+void Message::setBrokerPath(const std::vector<BrokerId*>& brokerPath ) {
     this->brokerPath = brokerPath;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/Message.h
Mon Jan 29 12:25:23 2007
@@ -173,13 +173,13 @@
         virtual std::string& getType();
         virtual void setType( const std::string& type );
 
-        virtual const std::vector<unsigned char> getContent() const;
-        virtual std::vector<unsigned char> getContent();
-        virtual void setContent( std::vector<unsigned char> content );
-
-        virtual const std::vector<unsigned char> getMarshalledProperties() const;
-        virtual std::vector<unsigned char> getMarshalledProperties();
-        virtual void setMarshalledProperties( std::vector<unsigned char> marshalledProperties
);
+        virtual const std::vector<unsigned char>& getContent() const;
+        virtual std::vector<unsigned char>& getContent();
+        virtual void setContent( const std::vector<unsigned char>& content );
+
+        virtual const std::vector<unsigned char>& getMarshalledProperties() const;
+        virtual std::vector<unsigned char>& getMarshalledProperties();
+        virtual void setMarshalledProperties( const std::vector<unsigned char>&
marshalledProperties );
 
         virtual const DataStructure* getDataStructure() const;
         virtual DataStructure* getDataStructure();
@@ -197,9 +197,9 @@
         virtual int getRedeliveryCounter();
         virtual void setRedeliveryCounter( int redeliveryCounter );
 
-        virtual const std::vector<BrokerId*> getBrokerPath() const;
-        virtual std::vector<BrokerId*> getBrokerPath();
-        virtual void setBrokerPath( std::vector<BrokerId*> brokerPath );
+        virtual const std::vector<BrokerId*>& getBrokerPath() const;
+        virtual std::vector<BrokerId*>& getBrokerPath();
+        virtual void setBrokerPath( const std::vector<BrokerId*>& brokerPath );
 
         virtual const long long getArrival() const;
         virtual long long getArrival();

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.cpp
Mon Jan 29 12:25:23 2007
@@ -94,17 +94,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<unsigned char> PartialCommand::getData() const {
+const std::vector<unsigned char>& PartialCommand::getData() const {
     return data;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<unsigned char> PartialCommand::getData() {
+std::vector<unsigned char>& PartialCommand::getData() {
     return data;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void PartialCommand::setData(std::vector<unsigned char> data ) {
+void PartialCommand::setData(const std::vector<unsigned char>& data ) {
     this->data = data;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/PartialCommand.h
Mon Jan 29 12:25:23 2007
@@ -83,9 +83,9 @@
         virtual int getCommandId();
         virtual void setCommandId( int commandId );
 
-        virtual const std::vector<unsigned char> getData() const;
-        virtual std::vector<unsigned char> getData();
-        virtual void setData( std::vector<unsigned char> data );
+        virtual const std::vector<unsigned char>& getData() const;
+        virtual std::vector<unsigned char>& getData();
+        virtual void setData( const std::vector<unsigned char>& data );
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.cpp
Mon Jan 29 12:25:23 2007
@@ -126,17 +126,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<BrokerId*> ProducerInfo::getBrokerPath() const {
+const std::vector<BrokerId*>& ProducerInfo::getBrokerPath() const {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<BrokerId*> ProducerInfo::getBrokerPath() {
+std::vector<BrokerId*>& ProducerInfo::getBrokerPath() {
     return brokerPath;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void ProducerInfo::setBrokerPath(std::vector<BrokerId*> brokerPath ) {
+void ProducerInfo::setBrokerPath(const std::vector<BrokerId*>& brokerPath ) {
     this->brokerPath = brokerPath;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ProducerInfo.h
Mon Jan 29 12:25:23 2007
@@ -92,9 +92,9 @@
         virtual ActiveMQDestination* getDestination();
         virtual void setDestination( ActiveMQDestination* destination );
 
-        virtual const std::vector<BrokerId*> getBrokerPath() const;
-        virtual std::vector<BrokerId*> getBrokerPath();
-        virtual void setBrokerPath( std::vector<BrokerId*> brokerPath );
+        virtual const std::vector<BrokerId*>& getBrokerPath() const;
+        virtual std::vector<BrokerId*>& getBrokerPath();
+        virtual void setBrokerPath( const std::vector<BrokerId*>& brokerPath );
 
         virtual const bool isDispatchAsync() const;
         virtual bool isDispatchAsync();

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.cpp
Mon Jan 29 12:25:23 2007
@@ -95,32 +95,32 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<unsigned char> XATransactionId::getGlobalTransactionId() const {
+const std::vector<unsigned char>& XATransactionId::getGlobalTransactionId() const
{
     return globalTransactionId;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<unsigned char> XATransactionId::getGlobalTransactionId() {
+std::vector<unsigned char>& XATransactionId::getGlobalTransactionId() {
     return globalTransactionId;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void XATransactionId::setGlobalTransactionId(std::vector<unsigned char> globalTransactionId
) {
+void XATransactionId::setGlobalTransactionId(const std::vector<unsigned char>&
globalTransactionId ) {
     this->globalTransactionId = globalTransactionId;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-const std::vector<unsigned char> XATransactionId::getBranchQualifier() const {
+const std::vector<unsigned char>& XATransactionId::getBranchQualifier() const {
     return branchQualifier;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-std::vector<unsigned char> XATransactionId::getBranchQualifier() {
+std::vector<unsigned char>& XATransactionId::getBranchQualifier() {
     return branchQualifier;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void XATransactionId::setBranchQualifier(std::vector<unsigned char> branchQualifier
) {
+void XATransactionId::setBranchQualifier(const std::vector<unsigned char>& branchQualifier
) {
     this->branchQualifier = branchQualifier;
 }
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.h?view=diff&rev=501173&r1=501172&r2=501173
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/XATransactionId.h
Mon Jan 29 12:25:23 2007
@@ -84,13 +84,13 @@
         virtual int getFormatId();
         virtual void setFormatId( int formatId );
 
-        virtual const std::vector<unsigned char> getGlobalTransactionId() const;
-        virtual std::vector<unsigned char> getGlobalTransactionId();
-        virtual void setGlobalTransactionId( std::vector<unsigned char> globalTransactionId
);
+        virtual const std::vector<unsigned char>& getGlobalTransactionId() const;
+        virtual std::vector<unsigned char>& getGlobalTransactionId();
+        virtual void setGlobalTransactionId( const std::vector<unsigned char>&
globalTransactionId );
 
-        virtual const std::vector<unsigned char> getBranchQualifier() const;
-        virtual std::vector<unsigned char> getBranchQualifier();
-        virtual void setBranchQualifier( std::vector<unsigned char> branchQualifier
);
+        virtual const std::vector<unsigned char>& getBranchQualifier() const;
+        virtual std::vector<unsigned char>& getBranchQualifier();
+        virtual void setBranchQualifier( const std::vector<unsigned char>& branchQualifier
);
 
     };
 



Mime
View raw message