NANDRAD Data Model Library  Version 2.0
NANDRAD
NANDRAD_ProjectInfo.h
1 /* The NANDRAD data model library.
2 
3  Copyright (c) 2012-today, Institut für Bauklimatik, TU Dresden, Germany
4 
5  Primary authors:
6  Andreas Nicolai <andreas.nicolai -[at]- tu-dresden.de>
7  Anne Paepcke <anne.paepcke -[at]- tu-dresden.de>
8 
9  This library is part of SIM-VICUS (https://github.com/ghorwin/SIM-VICUS)
10 
11  This library is free software: you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  This library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 */
21 
22 #ifndef NANDRAD_ProjectInfoH
23 #define NANDRAD_ProjectInfoH
24 
25 #include <string>
26 
27 #include "NANDRAD_CodeGenMacros.h"
28 
29 namespace NANDRAD {
30 
31 /*! Contains meta-information about the project. */
32 class ProjectInfo {
33 public:
34 
35  NANDRAD_READWRITE
36  NANDRAD_COMP(ProjectInfo)
37 
38  /*! Comments about the project. */
39  std::string m_comment; // XML:E
40  /*! Time stamp when the project file was created. */
41  std::string m_created; // XML:E
42  /*! Time stamp, when the project was last modified. */
43  std::string m_lastEdited; // XML:E
44 };
45 
46 inline bool ProjectInfo::operator!=(const ProjectInfo & other) const {
47  if (m_comment != other.m_comment) return true;
48  if (m_created != other.m_created) return true;
49  if (m_lastEdited != other.m_lastEdited) return true;
50  return false;
51 }
52 
53 } // namespace NANDRAD
54 
55 #endif // NANDRAD_ProjectInfoH
std::string m_created
Time stamp when the project file was created.
std::string m_lastEdited
Time stamp, when the project was last modified.
NANDRAD_READWRITE std::string m_comment
Comments about the project.
The namespace NANDRAD contains the data model classes that make up the NANDRAD solver input data...
Contains meta-information about the project.