summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-10-19 15:31:29 +0000
committerAlan Conway <aconway@apache.org>2010-10-19 15:31:29 +0000
commitb35d3ed3ae1d1b5623f68433c4cae3ec777a6be4 (patch)
treefae9b61388e3c7195812833e472b6cd9cd87ab20 /cpp/src
parenta08d54e27d4e91b52c5979cc566ab3e933878983 (diff)
downloadqpid-python-b35d3ed3ae1d1b5623f68433c4cae3ec777a6be4.tar.gz
Fix compile error: outline set/getCluster fucntions on Broker.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1024275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/Broker.cpp4
-rw-r--r--cpp/src/qpid/broker/Broker.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp
index a288da00c7..c93949e33f 100644
--- a/cpp/src/qpid/broker/Broker.cpp
+++ b/cpp/src/qpid/broker/Broker.cpp
@@ -512,5 +512,9 @@ void Broker::setClusterTimer(std::auto_ptr<sys::Timer> t) {
const std::string Broker::TCP_TRANSPORT("tcp");
+void Broker::setCluster(std::auto_ptr<Cluster> c) { cluster = c; }
+
+Cluster& Broker::getCluster() { return *cluster; }
+
}} // namespace qpid::broker
diff --git a/cpp/src/qpid/broker/Broker.h b/cpp/src/qpid/broker/Broker.h
index dcb20c4fe3..d589b15f19 100644
--- a/cpp/src/qpid/broker/Broker.h
+++ b/cpp/src/qpid/broker/Broker.h
@@ -275,8 +275,8 @@ public:
void setClusterUpdatee(bool set) { clusterUpdatee = set; }
bool isClusterUpdatee() const { return clusterUpdatee; }
- QPID_BROKER_EXTERN void setCluster(std::auto_ptr<Cluster> c) { cluster = c; }
- QPID_BROKER_EXTERN Cluster& getCluster() { return *cluster; }
+ QPID_BROKER_EXTERN void setCluster(std::auto_ptr<Cluster> c);
+ QPID_BROKER_EXTERN Cluster& getCluster();
management::ManagementAgent* getManagementAgent() { return managementAgent.get(); }