40 #ifndef __OPENFLUID_BASE_RUNCONTEXTMANAGER_HPP__
41 #define __OPENFLUID_BASE_RUNCONTEXTMANAGER_HPP__
49 #include <openfluid/ware/TypeDefs.hpp>
173 return m_IsClearOutputDir;
182 m_IsClearOutputDir = Enabled;
191 return m_IsProfiling;
200 m_IsProfiling = Enabled;
209 return m_ValuesBufferSize;
218 m_ValuesBufferSize = Size;
226 m_ValuesBufferSize = 0;
235 return (m_ValuesBufferSize > 0);
244 return m_WaresMaxNumThreads;
253 m_WaresMaxNumThreads = Num;
264 return m_ExtraProperties;
269 return m_WaresSharedEnvironment;
276 return m_ProjectPath;
281 return m_ProjectName;
286 m_ProjectName = Name;
291 return m_ProjectDescription;
296 m_ProjectDescription = Description;
301 return m_ProjectAuthors;
306 m_ProjectAuthors = Authors;
311 return m_ProjectCreationDate;
316 m_ProjectCreationDate = CreationDate;
326 return m_ProjectLastModDate;
331 m_ProjectLastModDate = LastModDate;
336 return m_ProjectIncOutputDir;
341 m_ProjectIncOutputDir = Inc;
347 const std::string& Description,
const std::string& Authors,
352 return m_ProjectIsOpen;
362 std::string& Name, std::string& Description, std::string& Authors,
363 std::string& CreationDate, std::string& LastModDate);
372 const std::string& Key)
const;
#define OPENFLUID_SINGLETON_DEFINITION(T)
Definition: SingletonMacros.hpp:55
Definition: Environment.hpp:53
Definition: RunContextManager.hpp:59
bool isProjectOpen() const
Definition: RunContextManager.hpp:350
void setProjectLastModDate(const std::string &LastModDate)
Definition: RunContextManager.hpp:329
void resetWaresMaxNumThreads()
bool isProfiling() const
Definition: RunContextManager.hpp:189
std::string m_ProjectCreationDate
Definition: RunContextManager.hpp:92
openfluid::core::MapValue & extraProperties()
Definition: RunContextManager.hpp:262
unsigned int getWaresMaxNumThreads() const
Definition: RunContextManager.hpp:242
void setWaresMaxNumThreads(unsigned int Num)
Definition: RunContextManager.hpp:251
void setProjectDescription(const std::string &Description)
Definition: RunContextManager.hpp:294
static bool checkProject(const std::string &ProjectPath)
void setDateTimeOutputDir()
static std::string getInputDirFromProjectPath(const std::string &ProjectPath)
bool createProject(const std::string &Path, const std::string &Name, const std::string &Description, const std::string &Authors, const bool Inc)
openfluid::core::MapValue m_WaresSharedEnvironment
Definition: RunContextManager.hpp:78
std::string getInputDir() const
Definition: RunContextManager.hpp:125
openfluid::tools::SettingValue getProjectContextValue(const std::string &ParentPointer, const std::string &Key) const
void setProjectContextValue(const std::string &ParentPointer, const std::string &Key, const openfluid::tools::SettingValue &Value)
unsigned int m_WaresMaxNumThreads
Definition: RunContextManager.hpp:76
std::string m_OutputDir
Definition: RunContextManager.hpp:66
unsigned int m_ValuesBufferSize
Definition: RunContextManager.hpp:74
std::string m_ProjectAuthors
Definition: RunContextManager.hpp:90
void setProjectCreationDateAsNow()
Definition: RunContextManager.hpp:319
bool isClearOutputDir() const
Definition: RunContextManager.hpp:171
void setValuesBufferUserSize(unsigned int Size)
Definition: RunContextManager.hpp:216
std::string getInputFullPath(const std::string &Filename) const
openfluid::core::MapValue m_ExtraProperties
Definition: RunContextManager.hpp:80
openfluid::tools::SettingValue getProjectContextValue(const std::string &Pointer) const
void updateWaresEnvironment()
std::string getProjectPath() const
Definition: RunContextManager.hpp:274
void removeProjectContextValue(const std::string &Pointer)
std::string m_ProjectDescription
Definition: RunContextManager.hpp:88
std::string m_InputDir
Definition: RunContextManager.hpp:68
std::string m_ProjectName
Definition: RunContextManager.hpp:86
bool m_ProjectIncOutputDir
Definition: RunContextManager.hpp:96
void setProjectName(const std::string &Name)
Definition: RunContextManager.hpp:284
void unsetValuesBufferUserSize()
Definition: RunContextManager.hpp:224
std::string getProjectLastModDate() const
Definition: RunContextManager.hpp:324
static bool projectContainsDeprecatedFile(const std::string &Path)
bool m_ProjectIsOpen
Definition: RunContextManager.hpp:98
std::string m_ProjectPath
Definition: RunContextManager.hpp:84
unsigned int getValuesBufferUserSize() const
Definition: RunContextManager.hpp:207
bool m_IsProfiling
Definition: RunContextManager.hpp:72
openfluid::tools::SettingsBackend * mp_ProjectFile
Definition: RunContextManager.hpp:82
std::string getProjectDescription() const
Definition: RunContextManager.hpp:289
std::string getOutputFullPath(const std::string &Filename) const
static bool getProjectInfos(const std::string &Path, std::string &Name, std::string &Description, std::string &Authors, std::string &CreationDate, std::string &LastModDate)
bool m_IsClearOutputDir
Definition: RunContextManager.hpp:70
static std::string getFilePathFromProjectPath(const std::string &ProjectPath)
void setClearOutputDir(bool Enabled)
Definition: RunContextManager.hpp:180
static bool isProject(const std::string &Path)
void setProjectCreationDate(const std::string &CreationDate)
Definition: RunContextManager.hpp:314
void setProfiling(bool Enabled)
Definition: RunContextManager.hpp:198
std::string getOutputDir() const
Definition: RunContextManager.hpp:147
void setProjectIncrementalOutputDir(const bool Inc)
Definition: RunContextManager.hpp:339
void processWareParams(openfluid::ware::WareParams_t &Params) const
bool isProjectIncrementalOutputDir() const
Definition: RunContextManager.hpp:334
bool openProject(const std::string &Path)
std::string getProjectCreationDate() const
Definition: RunContextManager.hpp:309
static std::string getOuputDirFromProjectPath(const std::string &ProjectPath)
std::string getProjectName() const
Definition: RunContextManager.hpp:279
std::string getProjectAuthors() const
Definition: RunContextManager.hpp:299
void setOutputDir(const std::string &OutputDir)
std::string m_ProjectLastModDate
Definition: RunContextManager.hpp:94
static const std::vector< std::string > m_DeprecatedProjectFiles
Definition: RunContextManager.hpp:100
void updateProjectOutputDir()
void setInputDir(const std::string &InputDir)
void setProjectAuthors(const std::string &Authors)
Definition: RunContextManager.hpp:304
const openfluid::core::MapValue & getWaresEnvironment() const
Definition: RunContextManager.hpp:267
static void updateProjectFile(const std::string &ProjectPath)
bool isValuesBufferUserSize() const
Definition: RunContextManager.hpp:233
Definition: MapValue.hpp:93
#define OPENFLUID_API
Definition: dllexport.hpp:86
std::map< WareParamKey_t, WareParamValue_t > WareParams_t
Definition: TypeDefs.hpp:146
Definition: ApplicationException.hpp:47