summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-12 22:05:30 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-12 22:05:30 +0000
commit2cb8c257e0693fe8c7c7bdfe2b2dbe5c6b156bbe (patch)
treef725782ef5c1a47fbf15d705fade594bc6ef0aa0 /tools.h
parentb405e4e3d31ceda6fa3de366d8c5374a160e1266 (diff)
downloadvdr-plugin-live-2cb8c257e0693fe8c7c7bdfe2b2dbe5c6b156bbe.tar.gz
vdr-plugin-live-2cb8c257e0693fe8c7c7bdfe2b2dbe5c6b156bbe.tar.bz2
- added operators for streaming tChannelID
- passing tChannelID consistently
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h11
1 files changed, 11 insertions, 0 deletions
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 <ctime>
+#include <istream>
+#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
+#include <vdr/channels.h>
#include <vdr/thread.h>
+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 );