diff options
Diffstat (limited to 'cpp/src/qpid/framing/frame_functors.h')
-rw-r--r-- | cpp/src/qpid/framing/frame_functors.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/frame_functors.h b/cpp/src/qpid/framing/frame_functors.h index 3112da8e24..7b7e24b2b3 100644 --- a/cpp/src/qpid/framing/frame_functors.h +++ b/cpp/src/qpid/framing/frame_functors.h @@ -49,6 +49,15 @@ public: uint64_t getSize() { return size; } }; +class Count +{ + uint count; +public: + Count() : count(0) {} + void operator()(const AMQFrame&) { count++; } + uint getCount() { return count; } +}; + class EncodeFrame { Buffer& buffer; |