Kea
1.5.0
stamped_element.cc
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
#include <
cc/stamped_element.h
>
8
9
namespace
isc
{
10
namespace
data {
11
12
StampedElement::StampedElement
()
13
: timestamp_(
boost
::posix_time::second_clock::universal_time()) {
14
}
15
16
void
17
StampedElement::updateModificationTime
() {
18
setModificationTime
(boost::posix_time::second_clock::universal_time());
19
}
20
21
}
// end of namespace isc::data
22
}
// end of namespace isc
stamped_element.h
boost
Definition:
io_service.h:12
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::StampedElement
StampedElement()
Constructor.
Definition:
stamped_element.cc:12
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.cc
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18