Added search for boost/serialization.
[bpdyndnsd] / src / service.cpp
CommitLineData
b1be615b 1/** @file
2bc1878a 2 * @brief The abstract service class. This class represents all services.
b1be615b
BS
3 *
4 *
5 *
6 * @copyright Intra2net AG
7 * @license GPLv2
8*/
9
4545a371
BS
10#include "service.h"
11
2bc1878a 12
85a0abf9
BS
13/**
14 * Default Constructor
15 */
4545a371
BS
16Service::Service()
17{
254bbf53 18
4545a371
BS
19}
20
2bc1878a 21
85a0abf9
BS
22/**
23 * Default Destructor
24 */
4545a371
BS
25Service::~Service()
26{
254bbf53 27
4545a371
BS
28}
29
30
2bc1878a
BS
31/**
32 * Although this is an abstract class, we need the serialize function that we can serialize derived classes through a Service *.
33 * @param ar Archive.
34 * @param version Version.
35 */
36template<class Archive>
37void Service::serialize(Archive & ar, const unsigned int version)
38{
39 ar & Lastupdated;
40 ar & Timeout;
41}
42
43
44/**
45 * Setter for member Lastupdated.
46 * @param _lastupdated Value to set Lastupdated to.
47 */
48void Service::set_lastupdated(const int _lastupdated)
49{
50 Lastupdated = _lastupdated;
51}
52
53
54/**
55 * Getter for member Lastupdated.
56 * @return Value of member Lastupdated.
57 */
58int Service::get_lastupdated()
59{
60 return Lastupdated;
61}
62
63
64/**
65 * Setter for member Timeout.
66 * @param _timeout Value to set Timeout to.
67 */
68void Service::set_timeout(const int _timeout)
69{
70 Timeout = _timeout;
71}
72
73
74/**
75 * Getter for member Timeout.
76 * @return Value of member Timeout.
77 */
78int Service::get_timeout()
79{
80 return Timeout;
81}