| Kea 3.0.2-git

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::id_
uint64_t id_
Database identifier of the configuration element.
Definition base_stamped_element.h:71
isc::data::BaseStampedElement::BaseStampedElement
BaseStampedElement()
Constructor.
Definition base_stamped_element.cc:14
isc::data::BaseStampedElement::setModificationTime
void setModificationTime(const boost::posix_time::ptime &timestamp)
Sets timestamp to the explicitly provided value.
Definition base_stamped_element.h:53
isc::data::BaseStampedElement::timestamp_
boost::posix_time::ptime timestamp_
Holds timestamp value.
Definition base_stamped_element.h:74
isc::data
Definition base_stamped_element.cc:12
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148