diff options
| author | Alan Conway <aconway@apache.org> | 2007-07-04 05:26:26 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-07-04 05:26:26 +0000 |
| commit | d4be469092c558ca9031d82b963b8b845fa1e1bd (patch) | |
| tree | 745ccfec0f180932ab2f3a9abe31a708a49c020c /cpp/src/qpid/framing/Uuid.h | |
| parent | 90e275cc082f3ec71c4b879c2ea4d037d4128278 (diff) | |
| download | qpid-python-d4be469092c558ca9031d82b963b8b845fa1e1bd.tar.gz | |
Encode/decode for UUIDs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@553083 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/Uuid.h')
| -rw-r--r-- | cpp/src/qpid/framing/Uuid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/Uuid.h b/cpp/src/qpid/framing/Uuid.h index 8fa5abd4dc..a2f415b118 100644 --- a/cpp/src/qpid/framing/Uuid.h +++ b/cpp/src/qpid/framing/Uuid.h @@ -26,6 +26,8 @@ namespace qpid { namespace framing { +class Buffer; + /** * A UUID is represented as a boost::array of 16 bytes. * @@ -41,6 +43,9 @@ struct Uuid : public boost::array<uint8_t, 16> { // Default op= and copy ctor are fine. // boost::array gives us ==, < etc. + + void encode(framing::Buffer& buf); + void decode(framing::Buffer& buf); }; /** Print in format 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb */ |
