diff options
Diffstat (limited to 'p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp')
-rw-r--r-- | p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp b/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp new file mode 100644 index 0000000..884a7db --- /dev/null +++ b/p2pvr/lib/dvbsiHelpers/networkTransportStream.cpp @@ -0,0 +1,22 @@ +#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, const DVBSI::NetworkPtr & network) +{ + rs.fields[0] << ts->TransportStreamId; + rs.fields[1] << network->NetworkId; + rs.fields[2] << ts->OriginalNetworkId; +} + + |