Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ProjectInfo.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MODEL_PROJECTINFO_HPP_
2#define IV_SRC_MODEL_PROJECTINFO_HPP_
3
4#include "model/Changes.hpp"
5#include "model/Revisions.hpp"
6#include "model/structs.hpp"
7
8namespace iv::model
9{
10
12{
14 ProjectInfo(const ProjectInfo &other);
15 ProjectInfo(ProjectInfo &&other) noexcept;
17
18 ProjectInfo &operator=(const ProjectInfo &other);
19 ProjectInfo &operator=(ProjectInfo &&other) noexcept;
20
27 bool load(const iv::file::xml::node &nodeDataProject);
28 bool save(iv::file::xml::node &nodeDataProject) const;
29 bool save(iv::file::xml::node &nodeDataProject, iv::types::timestamp lastModifierTime, bool validStatus) const;
30
31 std::string m_reference;
33
38
39private:
40 struct Sections
41 {
42 static constexpr std::string_view projectInfo {"ProjectInfo"};
43 static constexpr std::string_view creator {"Creator"};
44 static constexpr std::string_view modifier {"LastModifier"};
45 static constexpr std::string_view inspector {"Inspector"};
46 static constexpr std::string_view validator {"Validator"};
47 };
48 struct Keys
49 {
50 static constexpr std::string_view reference {"Reference"};
51 static constexpr std::string_view savePath {"SavePath"};
52 static constexpr std::string_view isProjectValid {"IsProjectValid"};
53 static constexpr std::string_view name {"Name"};
54 static constexpr std::string_view value {"Value"};
55 static constexpr std::string_view date {"Date"};
56 };
58 {
59 static constexpr std::string string {};
60 static constexpr iv::types::timestamp timestamp {0};
61 static constexpr bool isValid {false};
62 };
63};
64
65}// namespace iv::model
66
67#endif//IV_SRC_MODEL_PROJECTINFO_HPP_
Definition xmlFile.hpp:15
Definition DiamarModel.cpp:14
uint64_t timestamp
Definition types.hpp:21
Definition structs.hpp:15
Definition ProjectInfo.hpp:58
static constexpr bool isValid
Definition ProjectInfo.hpp:61
static constexpr iv::types::timestamp timestamp
Definition ProjectInfo.hpp:60
Definition ProjectInfo.hpp:49
static constexpr std::string_view reference
Definition ProjectInfo.hpp:50
static constexpr std::string_view isProjectValid
Definition ProjectInfo.hpp:52
static constexpr std::string_view value
Definition ProjectInfo.hpp:54
static constexpr std::string_view name
Definition ProjectInfo.hpp:53
static constexpr std::string_view date
Definition ProjectInfo.hpp:55
static constexpr std::string_view savePath
Definition ProjectInfo.hpp:51
Definition ProjectInfo.hpp:41
static constexpr std::string_view creator
Definition ProjectInfo.hpp:43
static constexpr std::string_view projectInfo
Definition ProjectInfo.hpp:42
static constexpr std::string_view modifier
Definition ProjectInfo.hpp:44
static constexpr std::string_view inspector
Definition ProjectInfo.hpp:45
static constexpr std::string_view validator
Definition ProjectInfo.hpp:46
Definition ProjectInfo.hpp:12
bool save(iv::file::xml::node &nodeDataProject) const
Definition ProjectInfo.cpp:76
ProjectInfo()
Definition ProjectInfo.cpp:5
ProjectInfo & operator=(const ProjectInfo &other)
Definition ProjectInfo.cpp:20
iv::model::EntryRegister m_inspector
Definition ProjectInfo.hpp:36
ProjectInfo(const ProjectInfo &other)
iv::model::EntryRegister m_lastModifier
Definition ProjectInfo.hpp:35
iv::model::EntryRegister m_validator
Definition ProjectInfo.hpp:37
std::string m_reference
Definition ProjectInfo.hpp:31
bool load(const iv::file::xml::node &nodeDataProject)
Loads the project info from the XML node.
Definition ProjectInfo.cpp:50
iv::model::EntryRegister m_creator
Definition ProjectInfo.hpp:34
bool m_isProjectValid
Definition ProjectInfo.hpp:32