diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-09 14:06:07 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-09 14:06:07 +0000 |
| commit | 833cf68a5bf58e882f377d144768ceb546e5e036 (patch) | |
| tree | 8b2ca57e790956a38c33583970a5c4198b407073 /cpp/src/qpid/SessionState.cpp | |
| parent | 7feb5546e82e0d003f26027524ceb07e9b9b0452 (diff) | |
| download | qpid-python-833cf68a5bf58e882f377d144768ceb546e5e036.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/SessionState.cpp')
| -rw-r--r-- | cpp/src/qpid/SessionState.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <boost/bind.hpp> #include <numeric> @@ -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 |
