forked from jdierkse/fast_tv_grab_nl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
channel.h
50 lines (40 loc) · 954 Bytes
/
channel.h
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
#ifndef CHANNEL_H
#define CHANNEL_H
#include <string>
#include <boost/serialization/access.hpp>
class Channel
{
public:
Channel();
bool operator==(int value) const;
bool operator<(const Channel& other) const;
std::string GetXML() const;
void Id(int id);
int Id() const;
void InternalId(const std::string& internalId);
std::string InternalId() const;
void Name(const std::string& name);
std::string Name() const;
void NameShort(const std::string& nameShort);
std::string NameShort() const;
void IconUrl(const std::string& iconUrl);
std::string IconUrl() const;
private:
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive& ar, const unsigned int version)
{
ar & m_id;
ar & m_internalId;
ar & m_name;
ar & m_nameShort;
ar & m_iconUrl;
}
private:
int m_id;
std::string m_internalId;
std::string m_name;
std::string m_nameShort;
std::string m_iconUrl;
};
#endif // CHANNEL_H