DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ConfigVersion.hpp
Go to the documentation of this file.
1
7#ifndef CONFFWK_CONFIGVERSION_H_
8#define CONFFWK_CONFIGVERSION_H_
9
10#include <ctime>
11#include <string>
12#include <vector>
13
14namespace dunedaq
15{
16 namespace conffwk
17 {
18
25 class Version
26 {
27
28 friend class Configuration;
29 friend class ConfigurationImpl;
30
31 public:
32
37
38
39 Version(const std::string& id, const std::string& user, std::time_t ts, const std::string& comment, const std::vector<std::string>& files) noexcept :
40 m_id(id), m_user(user), m_timestamp(ts), m_comment(comment), m_files(files)
41 {
42 ;
43 }
44
45 public:
46
51 const std::string&
52 get_id() const noexcept
53 {
54 return m_id;
55 }
56
61 const std::string&
62 get_user() const noexcept
63 {
64 return m_user;
65 }
66
71 std::time_t
72 get_timestamp() const noexcept
73 {
74 return m_timestamp;
75 }
76
81 const std::string&
82 get_comment() const noexcept
83 {
84 return m_comment;
85 }
86
91 const std::vector<std::string>&
92 get_files() const noexcept
93 {
94 return m_files;
95 }
96
97 private:
98
99 std::string m_id;
100 std::string m_user;
101 std::time_t m_timestamp;
102 std::string m_comment;
103 std::vector<std::string> m_files;
104
105 };
106
107
108 std::ostream&
109 operator<<(std::ostream&, const Version &);
110 }
111}
112
113#endif // CONFFWK_CONFIGVERSION_H_
Provides pure virtual interface used by the Configuration class.
Defines base class for cache of template objects.
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.
PDS Frame with unphysical timestamp detected with ts