Kea
1.5.0
stamped_element.h
Go to the documentation of this file.
1
// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#ifndef STAMPED_ELEMENT_H
8
#define STAMPED_ELEMENT_H
9
10
#include <boost/date_time/posix_time/posix_time.hpp>
11
12
namespace
isc
{
13
namespace
data {
14
31
class
StampedElement
{
32
public
:
33
37
StampedElement
();
38
42
void
setModificationTime
(
const
boost::posix_time::ptime& timestamp) {
43
timestamp_ = timestamp;
44
}
45
47
void
updateModificationTime
();
48
50
boost::posix_time::ptime
getModificationTime
()
const
{
51
return
(timestamp_);
52
}
53
54
private
:
55
57
boost::posix_time::ptime timestamp_;
58
59
};
60
61
}
// end of namespace isc::data
62
}
// end of namespace isc
63
64
#endif
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
isc::data::StampedElement::updateModificationTime
void updateModificationTime()
Sets timestmp to the current time.
Definition:
stamped_element.cc:17
isc::data::StampedElement
This class represents configuration element which is associated with the modification timestamp.
Definition:
stamped_element.h:31
isc::data::StampedElement::StampedElement
StampedElement()
Constructor.
Definition:
stamped_element.cc:12
isc::data::StampedElement::getModificationTime
boost::posix_time::ptime getModificationTime() const
Returns timestamp.
Definition:
stamped_element.h:50
isc::data::StampedElement::setModificationTime
void setModificationTime(const boost::posix_time::ptime ×tamp)
Sets timestamp to the explicitly provided value.
Definition:
stamped_element.h:42
src
lib
cc
stamped_element.h
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18