summaryrefslogtreecommitdiff
path: root/p2pvr/lib/dvbsiHelpers/programMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/lib/dvbsiHelpers/programMap.cpp')
-rw-r--r--p2pvr/lib/dvbsiHelpers/programMap.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/p2pvr/lib/dvbsiHelpers/programMap.cpp b/p2pvr/lib/dvbsiHelpers/programMap.cpp
new file mode 100644
index 0000000..d8cf400
--- /dev/null
+++ b/p2pvr/lib/dvbsiHelpers/programMap.cpp
@@ -0,0 +1,24 @@
+#include <pch.hpp>
+#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)
+{
+ rs.fields[0] << stream->ServiceId;
+ rs.fields[1] << stream->Id;
+ rs.fields[2] << stream->Type;
+}
+
+
+