From b96d2086abd6a569f5139a51441008e93c114952 Mon Sep 17 00:00:00 2001 From: Shon Ferguson <shonferg@users.sourceforge.net> Date: Sun, 28 May 2006 18:23:49 +0000 Subject: [PATCH] Added an operator<< for Key. --- NIF_IO.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/NIF_IO.h b/NIF_IO.h index 9f5c85ce..88422259 100644 --- a/NIF_IO.h +++ b/NIF_IO.h @@ -410,6 +410,17 @@ void NifStream( Key<T> const & key, ostream& file, uint version, KeyType type ) } } +ostream & operator<<( ostream & out, PixelLayout const & val ); +template <class T> +ostream & operator<<( ostream & out, Key<T> const & val ) { + return out << "Time: " << val.time << endl + << "Data: " << val.data << endl + << "Forward Tangent: " << val.forward_tangent << endl + << "Backward Tangent: " << val.backward_tangent << endl + << "Bias: " << val.bias << endl + << "Continuity: " << val.continuity << endl; +} + template <class T> void NifStream( Key<T> const & key, ostream& file, uint version, uint type ) { NifStream( key, file, (KeyType)type ); -- GitLab