diff options
Diffstat (limited to 'cpp/src/qpid/cluster/ErrorCheck.h')
-rw-r--r-- | cpp/src/qpid/cluster/ErrorCheck.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/ErrorCheck.h b/cpp/src/qpid/cluster/ErrorCheck.h index 51312046b8..550cd36b75 100644 --- a/cpp/src/qpid/cluster/ErrorCheck.h +++ b/cpp/src/qpid/cluster/ErrorCheck.h @@ -62,11 +62,14 @@ class ErrorCheck /**@pre canProcess **/ EventFrame getNext(); - bool canProcess() const; + bool canProcess() const { return type == NONE && !frames.empty(); } + + bool isUnresolved() const { return type != NONE; } + - bool isUnresolved() const; private: + static const ErrorType NONE = framing::cluster::ERROR_TYPE_NONE; typedef std::deque<EventFrame> FrameQueue; FrameQueue::iterator review(const FrameQueue::iterator&); void checkResolved(); |