summaryrefslogtreecommitdiff
path: root/p2pvr/lib/dvbsiHelpers/networkService.cpp
blob: 60b357ad02d33b948e0257a9668367f8aef447ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "../dvbsiHelpers.h"
#include "../p2Helpers.h"

template<>
void
CreateColumns<DVBSI::NetworkService>(const ColumnCreator & cc)
{
	cc("serviceId", true);
	cc("type", false);
	cc("transportStreamId", false);
}

template<>
void
BindColumns(RowState & rs, const DVBSI::NetworkService & s, const DVBSI::NetworkTransportStreamPtr & ts)
{
	rs.fields[0] << s.ServiceId;
	rs.fields[1] << s.ServiceType;
	rs.fields[2] << ts->TransportStreamId;
}