42 #ifndef __PROJECTMANAGER_HPP___
43 #define __PROJECTMANAGER_HPP___
52 namespace openfluid {
namespace base {
64 QSettings* mp_PrjFile;
69 std::string m_Description;
70 std::string m_Authors;
71 std::string m_CreationDate;
72 std::string m_LastModDate;
73 bool m_IsIncOutputDir;
75 std::string m_OutputDir;
76 std::string m_InputDir;
80 static QString m_GroupName;
85 static std::string getNow();
87 static std::string getFilePathFromProjectPath(std::string ProjectPath);
89 static std::string getInputDirFromProjectPath(std::string ProjectPath);
91 static std::string getOuputDirFromProjectPath(std::string ProjectPath);
93 static bool checkProject(
const std::string& ProjectPath);
102 std::string
getPath()
const {
return m_Path; };
104 std::string
getName()
const {
return m_Name; };
106 void setName(
const std::string& Name) { m_Name = Name; };
110 void setDescription(
const std::string& Description) { m_Description = Description; };
114 void setAuthors(
const std::string& Authors) { m_Authors = Authors; };
118 void setCreationDate(
const std::string& CreationDate) { m_CreationDate = CreationDate; };
124 void setLastModDate(
const std::string& LastModDate) { m_LastModDate = LastModDate; };
134 bool open(
const std::string& Path);
136 bool create(
const std::string& Path,
const std::string& Name,
137 const std::string& Description,
const std::string& Authors,
146 static bool isProject(
const std::string& Path);
148 static bool getProjectInfos(
const std::string& Path,
149 std::string& Name, std::string& Description, std::string& Authors,
150 std::string& CreationDate, std::string& LastModDate);
152 void updateOutputDir();
154 QVariant getConfigValue(
const QString& Group,
const QString& Key)
const;
156 void setConfigValue(
const QString& Group,
const QString& Key,
const QVariant& Value);
std::string getOutputDir()
Definition: ProjectManager.hpp:126
std::string getCreationDate() const
Definition: ProjectManager.hpp:116
std::string getAuthors() const
Definition: ProjectManager.hpp:112
void setCreationDate(const std::string &CreationDate)
Definition: ProjectManager.hpp:118
std::string getPath() const
Definition: ProjectManager.hpp:102
std::string getDescription() const
Definition: ProjectManager.hpp:108
void setAuthors(const std::string &Authors)
Definition: ProjectManager.hpp:114
bool isIncrementalOutputDir() const
Definition: ProjectManager.hpp:130
void setLastModDate(const std::string &LastModDate)
Definition: ProjectManager.hpp:124
std::string getLastModDate() const
Definition: ProjectManager.hpp:122
void setName(const std::string &Name)
Definition: ProjectManager.hpp:106
Definition: ProjectManager.hpp:58
void setCreationDateAsNow()
Definition: ProjectManager.hpp:120
std::string getName() const
Definition: ProjectManager.hpp:104
void setDescription(const std::string &Description)
Definition: ProjectManager.hpp:110
void setIncrementalOutputDir(const bool Inc)
Definition: ProjectManager.hpp:132
std::string getInputDir() const
Definition: ProjectManager.hpp:128
bool isOpened() const
Definition: ProjectManager.hpp:140
#define DLLEXPORT
Definition: dllexport.hpp:51