diff options
Diffstat (limited to 'p2pvr/lib/dvbsiHelpers/programMap.cpp')
-rw-r--r-- | p2pvr/lib/dvbsiHelpers/programMap.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/p2pvr/lib/dvbsiHelpers/programMap.cpp b/p2pvr/lib/dvbsiHelpers/programMap.cpp new file mode 100644 index 0000000..5b543a9 --- /dev/null +++ b/p2pvr/lib/dvbsiHelpers/programMap.cpp @@ -0,0 +1,23 @@ +#include "../dvbsiHelpers.h" +#include "../p2Helpers.h" + +template<> +void +CreateColumns<DVBSI::StreamPtr>(const ColumnCreator & cc) +{ + cc("serviceId", true); + cc("id", true); + cc("type", false); +} + +template<> +void +BindColumns(RowState & rs, const DVBSI::StreamPtr & stream, const DVBSI::ProgramMapPtr & pmp) +{ + rs.fields[0] << pmp->ServiceId; + rs.fields[1] << stream->Id; + rs.fields[2] << stream->Type; +} + + + |