From 833cf68a5bf58e882f377d144768ceb546e5e036 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 9 Sep 2008 14:06:07 +0000 Subject: Generate c++ enum types for AMQP enums in framing/enum.h. Modified enum scheme to avoid name clashes: namespace amqp_class { EnumName { ENUM_NAME_X=1, ENUM_NAME_X=2 ...}}; git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@693465 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/SessionState.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/SessionState.cpp') diff --git a/cpp/src/qpid/SessionState.cpp b/cpp/src/qpid/SessionState.cpp index 1be0111489..52c0ca229c 100644 --- a/cpp/src/qpid/SessionState.cpp +++ b/cpp/src/qpid/SessionState.cpp @@ -22,6 +22,7 @@ #include "SessionState.h" #include "qpid/framing/reply_exceptions.h" #include "qpid/framing/AMQMethodBody.h" +#include "qpid/framing/enum.h" #include "qpid/log/Statement.h" #include #include @@ -37,10 +38,10 @@ using framing::FramingErrorException; namespace { bool isControl(const AMQFrame& f) { - return f.getMethod() && f.getMethod()->type() == framing::CONTROL; + return f.getMethod() && f.getMethod()->type() == framing::SEGMENT_TYPE_CONTROL; } bool isCommand(const AMQFrame& f) { - return f.getMethod() && f.getMethod()->type() == framing::COMMAND; + return f.getMethod() && f.getMethod()->type() == framing::SEGMENT_TYPE_COMMAND; } } // namespace -- cgit v1.2.1