DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ConfigVersion.hpp
Go to the documentation of this file.
1//
2// DUNE DAQ modification notice:
3// This file has been modified from the original ATLAS config source for the DUNE DAQ project.
4// Fork baseline commit: 67a24e731 (2022-10-27).
5// Renamed since fork: yes (from config/ConfigVersion.h to include/conffwk/ConfigVersion.hpp).
6//
7
13
14#ifndef CONFFWK_CONFIGVERSION_H_
15#define CONFFWK_CONFIGVERSION_H_
16
17#include <ctime>
18#include <string>
19#include <vector>
20
21namespace dunedaq {
22namespace conffwk {
23
29
31{
32
33 friend class Configuration;
34 friend class ConfigurationImpl;
35
36public:
43
44 Version(const std::string& id,
45 const std::string& user,
46 std::time_t ts,
47 const std::string& comment,
48 const std::vector<std::string>& files) noexcept
49 : m_id(id)
50 , m_user(user)
51 , m_timestamp(ts)
52 , m_comment(comment)
53 , m_files(files)
54 {
55 ;
56 }
57
58public:
63 const std::string& get_id() const noexcept { return m_id; }
64
69 const std::string& get_user() const noexcept { return m_user; }
70
75 std::time_t get_timestamp() const noexcept { return m_timestamp; }
76
81 const std::string& get_comment() const noexcept { return m_comment; }
82
87 const std::vector<std::string>& get_files() const noexcept { return m_files; }
88
89private:
90 std::string m_id;
91 std::string m_user;
92 std::time_t m_timestamp;
93 std::string m_comment;
94 std::vector<std::string> m_files;
95};
96
97std::ostream&
98operator<<(std::ostream&, const Version&);
99}
100}
101
102#endif // CONFFWK_CONFIGVERSION_H_
Represents configuration version.
Version(const std::string &id, const std::string &user, std::time_t ts, const std::string &comment, const std::vector< std::string > &files) noexcept
const std::string & get_comment() const noexcept
std::vector< std::string > m_files
const std::string & get_id() const noexcept
std::time_t get_timestamp() const noexcept
const std::vector< std::string > & get_files() const noexcept
const std::string & get_user() const noexcept
std::ostream & operator<<(std::ostream &, const ConfigurationChange &)
The DUNE-DAQ namespace.