activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r505720 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConsumerInfo.h
Date Sat, 10 Feb 2007 16:58:35 GMT
Author: tabish
Date: Sat Feb 10 08:58:34 2007
New Revision: 505720

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

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConsumerInfo.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConsumerInfo.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConsumerInfo.h?view=diff&rev=505720&r1=505719&r2=505720
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConsumerInfo.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConsumerInfo.h
Sat Feb 10 08:58:34 2007
@@ -28,24 +28,25 @@
 
         // Message Selector for this Consumer
         std::string selector;
-        
+
         // Consumer Id
         unsigned int consumerId;
-        
+
         // Destination
         cms::Destination* destination;
-        
+
         // Session Info - We do not own this
         const SessionInfo* session;
-    
+
     public:
 
-    	StompConsumerInfo(void) {
+        StompConsumerInfo(void) {
             selector = "";
             consumerId = 0;
             destination = NULL;
+            session = NULL;
         }
-        
+
         virtual ~StompConsumerInfo(void) { delete destination; }
 
         /**
@@ -55,7 +56,7 @@
         virtual const std::string& getMessageSelector(void) const {
             return selector;
         }
-        
+
         /**
          * Sets this message consumer's message selector expression.
          * @param selector This Consumer's selector expression or "".
@@ -71,7 +72,7 @@
         virtual unsigned int getConsumerId(void) const {
             return consumerId;
         }
-        
+
         /**
          * Sets the ID that is assigned to this consumer
          * @param id value of the Consumer Id.
@@ -79,7 +80,7 @@
         virtual void setConsumerId( const unsigned int id ) {
             this->consumerId = id;
         }
-        
+
         /**
          * Gets the Destination that this Consumer is subscribed on
          * @return Destination this consumer is attached to
@@ -87,7 +88,7 @@
         virtual const cms::Destination& getDestination(void) const {
             return *destination;
         }
-        
+
         /**
          * Sets the destination that this Consumer is listening on
          * @param destination Destination this consumer is attached to
@@ -95,7 +96,7 @@
         virtual void setDestination( const cms::Destination& destination ) {
             this->destination = destination.clone();
         }
-        
+
         /**
          * Gets the Session Info that this consumer is attached too
          * @return SessionnInfo pointer
@@ -103,7 +104,7 @@
         virtual const SessionInfo* getSessionInfo(void) const {
             return session;
         }
-        
+
         /**
          * Gets the Session Info that this consumer is attached too
          * @param session SessionnInfo for this consumer



Mime
View raw message