diff options
author | Alan Conway <aconway@apache.org> | 2007-08-30 17:06:44 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-08-30 17:06:44 +0000 |
commit | efa3feb65f59e10a378b9074ac2d01b540a3278c (patch) | |
tree | 5cb9c87f71b6f428365e377376280d2792481b40 /cpp/src/qpid/cluster/ClassifierHandler.h | |
parent | f6c5c0d464efd4a19af54cbbb68a2ae315fbfd96 (diff) | |
download | qpid-python-efa3feb65f59e10a378b9074ac2d01b540a3278c.tar.gz |
- 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
Diffstat (limited to 'cpp/src/qpid/cluster/ClassifierHandler.h')
-rw-r--r-- | cpp/src/qpid/cluster/ClassifierHandler.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cpp/src/qpid/cluster/ClassifierHandler.h b/cpp/src/qpid/cluster/ClassifierHandler.h index 8c2f4ef85f..696e457c04 100644 --- a/cpp/src/qpid/cluster/ClassifierHandler.h +++ b/cpp/src/qpid/cluster/ClassifierHandler.h @@ -20,9 +20,6 @@ */ #include "qpid/framing/FrameHandler.h" -#include "qpid/framing/amqp_types.h" - -#include <map> namespace qpid { namespace cluster { @@ -33,12 +30,17 @@ namespace cluster { class ClassifierHandler : public framing::FrameHandler { public: - ClassifierHandler(Chain wiring, Chain other); - - void handle(framing::AMQFrame& frame); + ClassifierHandler(framing::FrameHandler& wiring_, + framing::FrameHandler& other_) + : wiring(wiring_), other(other_) {} + void handle(framing::AMQFrame&); + private: - std::map<uint32_t, framing::FrameHandler::Chain> map; + struct Visitor; + friend struct Visitor; + framing::FrameHandler& wiring; + framing::FrameHandler& other; }; }} // namespace qpid::cluster |