8#include <boost/serialization/access.hpp>
9#include <boost/serialization/version.hpp>
23template<
class Base,
class Derived, ArchiveType archive_type>
43 time_created_ = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
55 std::string
hostname()
const {
return hostname_; }
58 std::string
username()
const {
return username_; }
63 template<
class Base,
class Derived, ArchiveType archive_type>
65 template<
class Base,
class Derived, ArchiveType archive_type>
70 template<
class Archive>
71 void serialize(Archive& ar,
const unsigned int version)
84 std::time_t time_created_ = std::time_t();
85 std::string hostname_;
86 std::string username_;
91#pragma GCC diagnostic push
92#pragma GCC diagnostic ignored "-Wold-style-cast"
94#pragma GCC diagnostic pop
The ArchiveDescriptor class contains metadata on an archive.
std::string hostname() const
Retrieve the hostname of the machine creating the archive.
friend class boost::serialization::access
std::string username() const
Retrieve the hostname of the machine creating the archive.
ArchiveType archive_type() const
Retrieve the type of archive.
ArchiveDescriptor(ArchiveType archive_type)
Public constructor.
std::time_t time_created() const
Retrieve the time of creation of the archive.
Defines utility functions in the fles::system namespace.
std::string current_hostname()
Retrieve current host name.
std::string current_username()
Retrieve current user name.
ArchiveType
The archive type enum (e.g., timeslice, microslice)