summaryrefslogtreecommitdiff
path: root/cpp/broker/inc/ExchangeRegistry.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-09-21 18:26:31 +0000
committerAlan Conway <aconway@apache.org>2006-09-21 18:26:31 +0000
commit474ed3cf1e125360d26dad4376e106e8b48541ac (patch)
tree4f1043da7f03a5ec230539a62afac3fb0f0f0b73 /cpp/broker/inc/ExchangeRegistry.h
parent82e07bb30905feb2c11bb6d9f3624f976ab070a5 (diff)
downloadqpid-python-474ed3cf1e125360d26dad4376e106e8b48541ac.tar.gz
Implemented topic pattern matching for the TopicExchange.
Corrected default bindings to use the exchange named "" rather than "amqp.direct". Added python and unit tests for all of the above. Minor improvements to testlib.py, also some tests for testlib itself. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@448624 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/broker/inc/ExchangeRegistry.h')
-rw-r--r--cpp/broker/inc/ExchangeRegistry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/broker/inc/ExchangeRegistry.h b/cpp/broker/inc/ExchangeRegistry.h
index 0f0eaae0d0..a4a778482c 100644
--- a/cpp/broker/inc/ExchangeRegistry.h
+++ b/cpp/broker/inc/ExchangeRegistry.h
@@ -25,13 +25,15 @@
namespace qpid {
namespace broker {
class ExchangeRegistry{
- std::map<string, Exchange*> exchanges;
+ typedef std::map<string, Exchange*> ExchangeMap;
+ ExchangeMap exchanges;
qpid::concurrent::Monitor* lock;
public:
ExchangeRegistry();
void declare(Exchange* exchange);
void destroy(const string& name);
Exchange* get(const string& name);
+ Exchange* getDefault();
inline qpid::concurrent::Monitor* getLock(){ return lock; }
~ExchangeRegistry();
};