diff options
| author | Alan Conway <aconway@apache.org> | 2008-03-11 22:13:10 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-03-11 22:13:10 +0000 |
| commit | eadb91781ab0d6e786500a3798f1bf2a83293a05 (patch) | |
| tree | e582626920f3583e27deda835a2e2389c9c5e8c7 /cpp/src/qpid/sys/Time.h | |
| parent | 2250ec787ae5fb84fbebfee35bd9925ebd1dd679 (diff) | |
| download | qpid-python-eadb91781ab0d6e786500a3798f1bf2a83293a05.tar.gz | |
rubygen/0-10/specification.rb:
- Simplified enum mapping/encoding.
- struct encoding
- ostream << operators
src/qpid/Serializer.h
- free funciton serialization
- separate Encoder/Decoder for const correctness
- split() to allow separate encode/decode for complex cases.
src/qpid/amqp_0_10/Assembly.cpp, Assembly.h: AMQP 0-10 final Assembly
src/qpid/amqp_0_10/Codec.h
- Replaced enable_if with overloads, simpler & more flexible.
src/qpid/amqp_0_10/Frame.cpp, .h: AMQP 0-10 final frame.
src/qpid/amqp_0_10/Holder.h:
- provide const and non-const apply
src/qpid/amqp_0_10/Segment.cpp, .h: AMQP 0-10 final Segment.
src/qpid/amqp_0_10/apply.h
- ConstApplyFunctor for const apply.
src/qpid/amqp_0_10/built_in_types.h
- SerializableString encoding
src/qpid/amqp_0_10/complex_types.cpp, .h
- const application
- Action base class for command/control.
src/qpid/framing/AMQBody.h
- removed 0-10 final changes, moving integration point down the stack.
src/qpid/sys/Shlib.h
- removed unused and uncompilable (on some compilers) function.
src/qpid/sys/Time.h, .cpp
- ostream << for AbsTime and Duration.
src/tests/Assembly.cpp, Segment.cpp, apply.cpp, serialize.cpp: testing new code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@636126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/Time.h')
| -rw-r--r-- | cpp/src/qpid/sys/Time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/Time.h b/cpp/src/qpid/sys/Time.h index c87bd6f05b..860fc49097 100644 --- a/cpp/src/qpid/sys/Time.h +++ b/cpp/src/qpid/sys/Time.h @@ -24,6 +24,7 @@ #include <stdint.h> #include <limits> +#include <iosfwd> namespace qpid { namespace sys { @@ -54,6 +55,8 @@ class AbsTime { friend bool operator>(const AbsTime& a, const AbsTime& b); }; +std::ostream& operator << (std::ostream&, const AbsTime&); + class Duration { static int64_t max() { return std::numeric_limits<int64_t>::max(); } int64_t nanosecs; @@ -67,6 +70,7 @@ class Duration { inline operator int64_t() const; }; +std::ostream& operator << (std::ostream&, const Duration&); AbsTime::AbsTime(const AbsTime& t, const Duration& d) : time_ns(d == Duration::max() ? max() : t.time_ns+d.nanosecs) |
