qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1059846 - in /qpid/trunk/qpid/cpp: include/qpid/messaging/Connection.h src/qpid/client/amqp0_10/ConnectionImpl.cpp src/qpid/client/amqp0_10/ConnectionImpl.h src/qpid/messaging/Connection.cpp src/qpid/messaging/ConnectionImpl.h
Date Mon, 17 Jan 2011 10:24:36 GMT
Author: gsim
Date: Mon Jan 17 10:24:35 2011
New Revision: 1059846

URL: http://svn.apache.org/viewvc?rev=1059846&view=rev
Log:
QPID-3001: Add const version of Connection::isOpen()

Modified:
    qpid/trunk/qpid/cpp/include/qpid/messaging/Connection.h
    qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
    qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.h
    qpid/trunk/qpid/cpp/src/qpid/messaging/Connection.cpp
    qpid/trunk/qpid/cpp/src/qpid/messaging/ConnectionImpl.h

Modified: qpid/trunk/qpid/cpp/include/qpid/messaging/Connection.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/messaging/Connection.h?rev=1059846&r1=1059845&r2=1059846&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/messaging/Connection.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/messaging/Connection.h Mon Jan 17 10:24:35 2011
@@ -90,6 +90,7 @@ class Connection : public qpid::messagin
     QPID_MESSAGING_EXTERN void setOption(const std::string& name, const qpid::types::Variant&
value);
     QPID_MESSAGING_EXTERN void open();
     QPID_MESSAGING_EXTERN bool isOpen();
+    QPID_MESSAGING_EXTERN bool isOpen() const;
     /**
      * Closes a connection and all sessions associated with it. An
      * opened connection must be closed before the last handle is

Modified: qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp?rev=1059846&r1=1059845&r2=1059846&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp Mon Jan 17 10:24:35 2011
@@ -166,7 +166,7 @@ void ConnectionImpl::detach()
     connection.close();
 }
 
-bool ConnectionImpl::isOpen()
+bool ConnectionImpl::isOpen() const
 {
     qpid::sys::Mutex::ScopedLock l(lock);
     return connection.isOpen();

Modified: qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.h?rev=1059846&r1=1059845&r2=1059846&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.h Mon Jan 17 10:24:35 2011
@@ -43,7 +43,7 @@ class ConnectionImpl : public qpid::mess
   public:
     ConnectionImpl(const std::string& url, const qpid::types::Variant::Map& options);
     void open();
-    bool isOpen();
+    bool isOpen() const;
     void close();
     qpid::messaging::Session newSession(bool transactional, const std::string& name);
     qpid::messaging::Session getSession(const std::string& name) const;

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/Connection.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/Connection.cpp?rev=1059846&r1=1059845&r2=1059846&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/Connection.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/Connection.cpp Mon Jan 17 10:24:35 2011
@@ -63,6 +63,7 @@ Connection::Connection()
 
 void Connection::open() { impl->open(); }
 bool Connection::isOpen() { return impl->isOpen(); }
+bool Connection::isOpen() const { return impl->isOpen(); }
 void Connection::close() { impl->close(); }
 Session Connection::createSession(const std::string& name) { return impl->newSession(false,
name); }
 Session Connection::createTransactionalSession(const std::string& name)

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/ConnectionImpl.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/ConnectionImpl.h?rev=1059846&r1=1059845&r2=1059846&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/ConnectionImpl.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/ConnectionImpl.h Mon Jan 17 10:24:35 2011
@@ -39,7 +39,7 @@ class ConnectionImpl : public virtual qp
   public:
     virtual ~ConnectionImpl() {}
     virtual void open() = 0;
-    virtual bool isOpen() = 0;
+    virtual bool isOpen() const = 0;
     virtual void close() = 0;
     virtual Session newSession(bool transactional, const std::string& name) = 0;
     virtual Session getSession(const std::string& name) const = 0;



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message