diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-12 22:05:30 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-12 22:05:30 +0000 |
commit | 2cb8c257e0693fe8c7c7bdfe2b2dbe5c6b156bbe (patch) | |
tree | f725782ef5c1a47fbf15d705fade594bc6ef0aa0 /tools.h | |
parent | b405e4e3d31ceda6fa3de366d8c5374a160e1266 (diff) | |
download | vdr-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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 ); |