OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ProjectInformation.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
9#include <OTCore/JSON.h>
10
11// Qt header
12#include <QtCore/qdatetime.h>
13
14// std header
15#include <list>
16#include <string>
17
19public:
21 ProjectInformation(const ot::ConstJsonObject& _jsonObject);
25
28
29 void setProjectName(const std::string& _name) { m_name = _name; };
30 const std::string& getProjectName(void) const { return m_name; };
31
32 void setProjectType(const std::string& _type) { m_type = _type; };
33 const std::string& getProjectType(void) const { return m_type; };
34
35 void setUserName(const std::string& _name) { m_user = _name; };
36 const std::string& getUserName(void) const { return m_user; };
37
38 void setLastAccessTime(const QDateTime& _dateTime) { m_lastAccessTime = _dateTime; };
39 const QDateTime& getLastAccessTime(void) const { return m_lastAccessTime; };
40
41 void addGroup(const std::string& _group);
42 void setGroups(const std::list<std::string>& _groups) { m_groups = _groups; };
43 const std::list<std::string>& getGroups(void) const { return m_groups; };
44
45private:
46 std::string m_name;
47 std::string m_type;
48 std::string m_user;
49 QDateTime m_lastAccessTime;
50 std::list<std::string> m_groups;
51
52};
Definition ProjectInformation.h:18
void setLastAccessTime(const QDateTime &_dateTime)
Definition ProjectInformation.h:38
const QDateTime & getLastAccessTime(void) const
Definition ProjectInformation.h:39
ProjectInformation(ProjectInformation &&)=default
void setProjectType(const std::string &_type)
Definition ProjectInformation.h:32
const std::list< std::string > & getGroups(void) const
Definition ProjectInformation.h:43
ProjectInformation & operator=(const ProjectInformation &)=default
const std::string & getProjectType(void) const
Definition ProjectInformation.h:33
void setGroups(const std::list< std::string > &_groups)
Definition ProjectInformation.h:42
const std::string & getProjectName(void) const
Definition ProjectInformation.h:30
ProjectInformation()
Definition ProjectInformation.cpp:12
void setUserName(const std::string &_name)
Definition ProjectInformation.h:35
void addGroup(const std::string &_group)
Definition ProjectInformation.cpp:24
~ProjectInformation()
Definition ProjectInformation.h:24
const std::string & getUserName(void) const
Definition ProjectInformation.h:36
ProjectInformation(const ProjectInformation &)=default
void setProjectName(const std::string &_name)
Definition ProjectInformation.h:29
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35