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
22{
23 namespace conffwk
24 {
25
31
32 class Version
33 {
34
35 friend class Configuration;
36 friend class ConfigurationImpl;
37
38 public:
39
44
45
46 Version(const std::string& id, const std::string& user, std::time_t ts, const std::string& comment, const std::vector<std::string>& files) noexcept :
47 m_id(id), m_user(user), m_timestamp(ts), m_comment(comment), m_files(files)
48 {
49 ;
50 }
51
52 public:
53
58 const std::string&
59 get_id() const noexcept
60 {
61 return m_id;
62 }
63
68 const std::string&
69 get_user() const noexcept
70 {
71 return m_user;
72 }
73
78 std::time_t
79 get_timestamp() const noexcept
80 {
81 return m_timestamp;
82 }
83
88 const std::string&
89 get_comment() const noexcept
90 {
91 return m_comment;
92 }
93
98 const std::vector<std::string>&
99 get_files() const noexcept
100 {
101 return m_files;
102 }
103
104 private:
105
106 std::string m_id;
107 std::string m_user;
108 std::time_t m_timestamp;
109 std::string m_comment;
110 std::vector<std::string> m_files;
111
112 };
113
114
115 std::ostream&
116 operator<<(std::ostream&, const Version &);
117 }
118}
119
120#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 &)
Including Qt Headers.
Definition module.cpp:16