#include <base/RunContextManager.hpp>
◆ RunContextManager()
openfluid::base::RunContextManager::RunContextManager |
( |
| ) |
|
|
protected |
◆ ~RunContextManager()
openfluid::base::RunContextManager::~RunContextManager |
( |
| ) |
|
|
protected |
◆ checkProject()
static bool openfluid::base::RunContextManager::checkProject |
( |
const std::string & |
ProjectPath | ) |
|
|
staticprotected |
◆ closeProject()
void openfluid::base::RunContextManager::closeProject |
( |
| ) |
|
◆ createProject()
bool openfluid::base::RunContextManager::createProject |
( |
const std::string & |
Path, |
|
|
const std::string & |
Name, |
|
|
const std::string & |
Description, |
|
|
const std::string & |
Authors, |
|
|
const bool |
Inc |
|
) |
| |
◆ extraProperties()
◆ getFilePathFromProjectPath()
static std::string openfluid::base::RunContextManager::getFilePathFromProjectPath |
( |
const std::string & |
ProjectPath | ) |
|
|
staticprotected |
◆ getInputDir()
std::string openfluid::base::RunContextManager::getInputDir |
( |
| ) |
const |
|
inline |
Returns the full path of the simulation input directory
- Returns
- the full path of the directory
◆ getInputDirFromProjectPath()
static std::string openfluid::base::RunContextManager::getInputDirFromProjectPath |
( |
const std::string & |
ProjectPath | ) |
|
|
staticprotected |
◆ getInputFullPath()
std::string openfluid::base::RunContextManager::getInputFullPath |
( |
const std::string & |
Filename | ) |
const |
Returns the full path of a file or directory relative to the simulation input directory
- Parameters
-
[in] | Filename | the path relative to the simulation input directory |
- Returns
- the full path to the file or directory
◆ getOuputDirFromProjectPath()
static std::string openfluid::base::RunContextManager::getOuputDirFromProjectPath |
( |
const std::string & |
ProjectPath | ) |
|
|
staticprotected |
◆ getOutputDir()
std::string openfluid::base::RunContextManager::getOutputDir |
( |
| ) |
const |
|
inline |
Returns the full path of the simulation output directory
- Returns
- the full path of the directory
◆ getOutputFullPath()
std::string openfluid::base::RunContextManager::getOutputFullPath |
( |
const std::string & |
Filename | ) |
const |
Returns the full path of a file or directory relative to the simulation output directory
- Parameters
-
[in] | Filename | the path relative to the simulation output directory |
- Returns
- the full path to the file or directory
◆ getProjectAuthors()
std::string openfluid::base::RunContextManager::getProjectAuthors |
( |
| ) |
const |
|
inline |
◆ getProjectContextValue() [1/2]
openfluid::tools::SettingValue openfluid::base::RunContextManager::getProjectContextValue |
( |
const std::string & |
ParentPointer, |
|
|
const std::string & |
Key |
|
) |
| const |
◆ getProjectContextValue() [2/2]
◆ getProjectCreationDate()
std::string openfluid::base::RunContextManager::getProjectCreationDate |
( |
| ) |
const |
|
inline |
◆ getProjectDescription()
std::string openfluid::base::RunContextManager::getProjectDescription |
( |
| ) |
const |
|
inline |
◆ getProjectInfos()
static bool openfluid::base::RunContextManager::getProjectInfos |
( |
const std::string & |
Path, |
|
|
std::string & |
Name, |
|
|
std::string & |
Description, |
|
|
std::string & |
Authors, |
|
|
std::string & |
CreationDate, |
|
|
std::string & |
LastModDate |
|
) |
| |
|
static |
◆ getProjectLastModDate()
std::string openfluid::base::RunContextManager::getProjectLastModDate |
( |
| ) |
const |
|
inline |
◆ getProjectName()
std::string openfluid::base::RunContextManager::getProjectName |
( |
| ) |
const |
|
inline |
◆ getProjectPath()
std::string openfluid::base::RunContextManager::getProjectPath |
( |
| ) |
const |
|
inline |
◆ getValuesBufferUserSize()
unsigned int openfluid::base::RunContextManager::getValuesBufferUserSize |
( |
| ) |
const |
|
inline |
Returns the size of the buffer set by the user for simulation variables values
- Returns
- the size of the buffer
◆ getWaresEnvironment()
◆ getWaresMaxNumThreads()
unsigned int openfluid::base::RunContextManager::getWaresMaxNumThreads |
( |
| ) |
const |
|
inline |
Returns the value for maximum threads count to be used in OpenFLUID wares (simulators, observers, ...)
- Returns
- the maximum threads count
◆ isClearOutputDir()
bool openfluid::base::RunContextManager::isClearOutputDir |
( |
| ) |
const |
|
inline |
Returns the status of automatic cleaning of output directory before simulation run
- Returns
- true if enabled, false if disabled
◆ isProfiling()
bool openfluid::base::RunContextManager::isProfiling |
( |
| ) |
const |
|
inline |
Returns the status of simulation profiling
- Returns
- true if enabled, false if disabled
◆ isProject()
static bool openfluid::base::RunContextManager::isProject |
( |
const std::string & |
Path | ) |
|
|
static |
◆ isProjectIncrementalOutputDir()
bool openfluid::base::RunContextManager::isProjectIncrementalOutputDir |
( |
| ) |
const |
|
inline |
◆ isProjectOpen()
bool openfluid::base::RunContextManager::isProjectOpen |
( |
| ) |
const |
|
inline |
◆ isValuesBufferUserSize()
bool openfluid::base::RunContextManager::isValuesBufferUserSize |
( |
| ) |
const |
|
inline |
Returns true if the size of the buffer for simulation variables values has been set by the user
- Returns
- true if set by user (size > 0), false otherwise
◆ openProject()
bool openfluid::base::RunContextManager::openProject |
( |
const std::string & |
Path | ) |
|
◆ processWareParams()
◆ projectContainsDeprecatedFile()
static bool openfluid::base::RunContextManager::projectContainsDeprecatedFile |
( |
const std::string & |
Path | ) |
|
|
static |
◆ removeProjectContextValue()
void openfluid::base::RunContextManager::removeProjectContextValue |
( |
const std::string & |
Pointer | ) |
|
◆ resetWaresMaxNumThreads()
void openfluid::base::RunContextManager::resetWaresMaxNumThreads |
( |
| ) |
|
Resets the value for maximum threads count to be used in OpenFLUID wares (simulators, observers, ...). The value is reset to the ideal thread count given by the OpenFLUID environment
◆ saveProject()
bool openfluid::base::RunContextManager::saveProject |
( |
| ) |
|
◆ setClearOutputDir()
void openfluid::base::RunContextManager::setClearOutputDir |
( |
bool |
Enabled | ) |
|
|
inline |
Sets the status of automatic cleaning of output directory before simulation run
- Parameters
-
Enabled | set to true to enable |
◆ setDateTimeOutputDir()
void openfluid::base::RunContextManager::setDateTimeOutputDir |
( |
| ) |
|
◆ setInputDir()
void openfluid::base::RunContextManager::setInputDir |
( |
const std::string & |
InputDir | ) |
|
Sets the full path of the simulation input directory
- Parameters
-
[in] | InputDir | the full path of the directory |
◆ setOutputDir()
void openfluid::base::RunContextManager::setOutputDir |
( |
const std::string & |
OutputDir | ) |
|
Sets the full path of the simulation output directory
- Parameters
-
[in] | OutputDir | the full path of the directory |
◆ setProfiling()
void openfluid::base::RunContextManager::setProfiling |
( |
bool |
Enabled | ) |
|
|
inline |
Sets the status of simulation profiling
- Parameters
-
Enabled | set to true to enable |
◆ setProjectAuthors()
void openfluid::base::RunContextManager::setProjectAuthors |
( |
const std::string & |
Authors | ) |
|
|
inline |
◆ setProjectContextValue()
void openfluid::base::RunContextManager::setProjectContextValue |
( |
const std::string & |
ParentPointer, |
|
|
const std::string & |
Key, |
|
|
const openfluid::tools::SettingValue & |
Value |
|
) |
| |
◆ setProjectCreationDate()
void openfluid::base::RunContextManager::setProjectCreationDate |
( |
const std::string & |
CreationDate | ) |
|
|
inline |
◆ setProjectCreationDateAsNow()
void openfluid::base::RunContextManager::setProjectCreationDateAsNow |
( |
| ) |
|
|
inline |
◆ setProjectDescription()
void openfluid::base::RunContextManager::setProjectDescription |
( |
const std::string & |
Description | ) |
|
|
inline |
◆ setProjectIncrementalOutputDir()
void openfluid::base::RunContextManager::setProjectIncrementalOutputDir |
( |
const bool |
Inc | ) |
|
|
inline |
◆ setProjectLastModDate()
void openfluid::base::RunContextManager::setProjectLastModDate |
( |
const std::string & |
LastModDate | ) |
|
|
inline |
◆ setProjectName()
void openfluid::base::RunContextManager::setProjectName |
( |
const std::string & |
Name | ) |
|
|
inline |
◆ setValuesBufferUserSize()
void openfluid::base::RunContextManager::setValuesBufferUserSize |
( |
unsigned int |
Size | ) |
|
|
inline |
Sets the size of the buffer set by the user for simulation variables values
- Parameters
-
[in] | Size | the size of the buffer |
◆ setWaresMaxNumThreads()
void openfluid::base::RunContextManager::setWaresMaxNumThreads |
( |
unsigned int |
Num | ) |
|
|
inline |
Sets the value for maximum threads count to be used in OpenFLUID wares (simulators, observers, ...)
- Parameters
-
[in] | Num | the maximum threads count |
◆ unsetValuesBufferUserSize()
void openfluid::base::RunContextManager::unsetValuesBufferUserSize |
( |
| ) |
|
|
inline |
Unsets the size of the buffer set by the user for simulation variables values
◆ updateProjectFile()
static void openfluid::base::RunContextManager::updateProjectFile |
( |
const std::string & |
ProjectPath | ) |
|
|
staticprotected |
◆ updateProjectOutputDir()
void openfluid::base::RunContextManager::updateProjectOutputDir |
( |
| ) |
|
◆ updateWaresEnvironment()
void openfluid::base::RunContextManager::updateWaresEnvironment |
( |
| ) |
|
|
protected |
◆ m_DeprecatedProjectFiles
const std::vector<std::string> openfluid::base::RunContextManager::m_DeprecatedProjectFiles |
|
staticprotected |
◆ m_ExtraProperties
◆ m_InputDir
std::string openfluid::base::RunContextManager::m_InputDir |
|
protected |
◆ m_IsClearOutputDir
bool openfluid::base::RunContextManager::m_IsClearOutputDir |
|
protected |
◆ m_IsProfiling
bool openfluid::base::RunContextManager::m_IsProfiling |
|
protected |
◆ m_OutputDir
std::string openfluid::base::RunContextManager::m_OutputDir |
|
protected |
◆ m_ProjectAuthors
std::string openfluid::base::RunContextManager::m_ProjectAuthors |
|
protected |
◆ m_ProjectCreationDate
std::string openfluid::base::RunContextManager::m_ProjectCreationDate |
|
protected |
◆ m_ProjectDescription
std::string openfluid::base::RunContextManager::m_ProjectDescription |
|
protected |
◆ m_ProjectIncOutputDir
bool openfluid::base::RunContextManager::m_ProjectIncOutputDir |
|
protected |
◆ m_ProjectIsOpen
bool openfluid::base::RunContextManager::m_ProjectIsOpen |
|
protected |
◆ m_ProjectLastModDate
std::string openfluid::base::RunContextManager::m_ProjectLastModDate |
|
protected |
◆ m_ProjectName
std::string openfluid::base::RunContextManager::m_ProjectName |
|
protected |
◆ m_ProjectPath
std::string openfluid::base::RunContextManager::m_ProjectPath |
|
protected |
◆ m_ValuesBufferSize
unsigned int openfluid::base::RunContextManager::m_ValuesBufferSize |
|
protected |
◆ m_WaresMaxNumThreads
unsigned int openfluid::base::RunContextManager::m_WaresMaxNumThreads |
|
protected |
◆ m_WaresSharedEnvironment
◆ mp_ProjectFile
The documentation for this class was generated from the following file: