summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-02-21 02:58:37 +0000
committerAlan Conway <aconway@apache.org>2008-02-21 02:58:37 +0000
commitcc55340d5d7cf74d045f5f7608aa03c5fa7a4675 (patch)
treeb4fab5adce9886a328d3f646be674c108503a94a /cpp/src/qpid/sys
parenta00fe37e0854df1bdd9e0187873d3d1c8972eeb8 (diff)
downloadqpid-python-cc55340d5d7cf74d045f5f7608aa03c5fa7a4675.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/sys')
-rw-r--r--cpp/src/qpid/sys/Time.h3
1 files changed, 3 insertions, 0 deletions
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 <class S> 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);