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
12namespace isc {
13namespace data {
14
32public:
33
38
42 void setModificationTime(const boost::posix_time::ptime& timestamp) {
43 timestamp_ = timestamp;
44 }
45
48
50 boost::posix_time::ptime getModificationTime() const {
51 return (timestamp_);
52 }
53
54private:
55
57 boost::posix_time::ptime timestamp_;
58
59};
60
61} // end of namespace isc::data
62} // end of namespace isc
63
64#endif
This class represents configuration element which is associated with the modification timestamp.
void updateModificationTime()
Sets timestmp to the current time.
boost::posix_time::ptime getModificationTime() const
Returns timestamp.
void setModificationTime(const boost::posix_time::ptime &timestamp)
Sets timestamp to the explicitly provided value.
Defines the logger used by the top-level component of kea-dhcp-ddns.