Kea
2.7.5
base_stamped_element.cc
Go to the documentation of this file.
1
// Copyright (C) 2019-2020 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 <config.h>
8
9
#include <
cc/base_stamped_element.h
>
10
11
namespace
isc
{
12
namespace
data {
13
14
BaseStampedElement::BaseStampedElement
()
17
: id_(0), timestamp_(
boost
::posix_time::second_clock::local_time()) {
18
}
19
20
void
21
BaseStampedElement::updateModificationTime
() {
24
setModificationTime
(boost::posix_time::second_clock::local_time());
25
}
26
27
}
// end of namespace isc::data
28
}
// end of namespace isc
base_stamped_element.h
isc::data::BaseStampedElement::updateModificationTime
void updateModificationTime()
Sets timestamp to the current time.
Definition
base_stamped_element.cc:21
isc::data::BaseStampedElement::BaseStampedElement
BaseStampedElement()
Constructor.
Definition
base_stamped_element.cc:14
isc::data::BaseStampedElement::setModificationTime
void setModificationTime(const boost::posix_time::ptime ×tamp)
Sets timestamp to the explicitly provided value.
Definition
base_stamped_element.h:53
boost
Definition
io_service.h:15
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
cc
base_stamped_element.cc
Generated on Wed Nov 20 2024 11:53:23 for Kea by
1.10.0