summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
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 );