From cc55340d5d7cf74d045f5f7608aa03c5fa7a4675 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 21 Feb 2008 02:58:37 +0000 Subject: AMQP 0-10 type system: - new lightweight templated serialization framework - all fixed-size built-in types tested and working - all vbin & str types implemented, tests disabled need to fix encoding. The following types remain to be implemented: byte-ranges 2 byte ranges within a 64-bit payload sequence-set 2 ranged set representation map 0xa8 4 a mapping of keys to typed values list 0xa9 4 a series of consecutive type-value pairs array 0xaa 4 a defined length collection of values of a single type struct32 0xab 4 a coded struct with a 32-bit size git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@629679 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Time.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src/qpid/sys/Time.h') diff --git a/cpp/src/qpid/sys/Time.h b/cpp/src/qpid/sys/Time.h index 9c9b3de5c2..c87bd6f05b 100644 --- a/cpp/src/qpid/sys/Time.h +++ b/cpp/src/qpid/sys/Time.h @@ -46,6 +46,9 @@ class AbsTime { static AbsTime now(); inline static AbsTime FarFuture(); + int64_t timeValue() const { return time_ns; } + bool operator==(const AbsTime& t) const { return t.time_ns == time_ns; } + template void serialize(S& s) { s(time_ns); } friend bool operator<(const AbsTime& a, const AbsTime& b); friend bool operator>(const AbsTime& a, const AbsTime& b); -- cgit v1.2.1