From 2cb8c257e0693fe8c7c7bdfe2b2dbe5c6b156bbe Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Fri, 12 Jan 2007 22:05:30 +0000 Subject: - added operators for streaming tChannelID - passing tChannelID consistently --- tools.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools.h') diff --git a/tools.h b/tools.h index 36f0c19..a269d22 100644 --- a/tools.h +++ b/tools.h @@ -2,12 +2,23 @@ #define VDR_LIVE_TOOLS_H #include +#include +#include #include #include #include #include +#include #include +std::istream& operator>>( std::istream& is, tChannelID& ret ); + +inline +std::ostream& operator<<( std::ostream& os, tChannelID const& id ) +{ + return os << *id.ToString(); +} + namespace vdrlive { std::string FormatDateTime( char const* format, time_t time ); -- cgit v1.2.3