From efa3feb65f59e10a378b9074ac2d01b540a3278c Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 30 Aug 2007 17:06:44 +0000 Subject: - Update cluster code to work with new FrameHandler - Update ClassifierHandler to use Visitor rather than map. - Replace heap allocation in cluster classes with boost::optional. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@571246 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Cpg.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp/src/qpid/cluster/Cpg.cpp') diff --git a/cpp/src/qpid/cluster/Cpg.cpp b/cpp/src/qpid/cluster/Cpg.cpp index 87e483141e..506703d105 100644 --- a/cpp/src/qpid/cluster/Cpg.cpp +++ b/cpp/src/qpid/cluster/Cpg.cpp @@ -25,6 +25,8 @@ #include #include +#include + namespace qpid { namespace cluster { @@ -174,6 +176,11 @@ ostream& operator <<(ostream& out, const cpg_name& name) { return out << string(name.value, name.length); } + +Cpg::Id Cpg::Id::self(Cpg& cpg) { + return Id(cpg.getLocalNoideId(), getpid()); +} + }} // namespace qpid::cluster -- cgit v1.2.1