summaryrefslogtreecommitdiff
path: root/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp')
-rw-r--r--p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp b/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp
new file mode 100644
index 0000000..bdc7c4f
--- /dev/null
+++ b/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp
@@ -0,0 +1,23 @@
+#include <pch.hpp>
+#include "../dvbsiHelpers.h"
+#include "../p2Helpers.h"
+
+template<>
+void
+CreateColumns<DVBSI::NetworkTransportStreamPtr>(const ColumnCreator & cc)
+{
+ cc("transportStreamId", true);
+ cc("networkId", false);
+ cc("originalNetworkId", false);
+}
+
+template<>
+void
+BindColumns(RowState & rs, const DVBSI::NetworkTransportStreamPtr & ts)
+{
+ rs.fields[0] << ts->TransportStreamId;
+ rs.fields[1] << ts->NetworkId;
+ rs.fields[2] << ts->OriginalNetworkId;
+}
+
+