diff options
| author | Gordon Sim <gsim@apache.org> | 2008-04-01 17:13:43 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-04-01 17:13:43 +0000 |
| commit | fffcffa59b420aeac7931dc97eec18b76c9d1345 (patch) | |
| tree | 0abfddfaa0cd189651c989bcc8b2a9463c61abf5 /cpp/src/qpid/framing/Buffer.h | |
| parent | 0b8344c3212bf98feb4ecb869d1d9436d227ebfc (diff) | |
| download | qpid-python-fffcffa59b420aeac7931dc97eec18b76c9d1345.tar.gz | |
Added a dump method to buffer for debugging io (patch from rafaels@redhat.com)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@643478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/Buffer.h')
| -rw-r--r-- | cpp/src/qpid/framing/Buffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/Buffer.h b/cpp/src/qpid/framing/Buffer.h index 585379b09a..94cc2d320f 100644 --- a/cpp/src/qpid/framing/Buffer.h +++ b/cpp/src/qpid/framing/Buffer.h @@ -112,8 +112,12 @@ class Buffer template <class T> void put(const T& data) { data.encode(*this); } template <class T> void get(T& data) { data.decode(*this); } + + void dump(std::ostream&) const; }; +std::ostream& operator<<(std::ostream&, const Buffer&); + }} // namespace qpid::framing |
