blob: 9f82d91ffb0f692393cf280b5f0f93779c2d389d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#include <pch.hpp>
#include "../dvbsiHelpers.h"
#include "../p2Helpers.h"
template<>
void
CreateColumns<DVBSI::ServicePtr>(const ColumnCreator & cc)
{
cc("serviceId", true);
cc("transportStreamId", true);
cc("name", false);
cc("providerName", false);
cc("defaultAuthority", false);
cc("runningStatus", false);
cc("eitSchedule", false);
cc("eitPresentFollowing", false);
cc("freeCAMode", false);
}
template<>
void
BindColumns(RowState & rs, const DVBSI::ServicePtr & s)
{
rs.fields[0] << s->ServiceId;
rs.fields[1] << s->TransportStreamId;
rs.fields[2] << s->Name;
rs.fields[3] << s->ProviderName;
rs.fields[4] << s->DefaultAuthority;
rs.fields[5] << s->RunningStatus;
rs.fields[6] << s->EitSchedule;
rs.fields[7] << s->EitPresentFollowing;
rs.fields[8] << s->FreeCaMode;
}
template<>
void
UnbindColumns(RowState & rs, DVBSI::ServicePtr const & s)
{
rs.fields[0] >> s->ServiceId;
rs.fields[1] >> s->TransportStreamId;
rs.fields[2] >> s->Name;
rs.fields[3] >> s->ProviderName;
rs.fields[4] >> s->DefaultAuthority;
rs.fields[5] >> s->RunningStatus;
rs.fields[6] >> s->EitSchedule;
rs.fields[7] >> s->EitPresentFollowing;
rs.fields[8] >> s->FreeCaMode;
}
|