![]() |
Manual for OpenFLUID 2.1.11 |
#include <base/RunContextManager.hpp>
Public Member Functions | |
| std::string | getInputDir () const |
| std::string | getInputFullPath (const std::string &Filename) const |
| void | setInputDir (const std::string &InputDir) |
| std::string | getOutputDir () const |
| std::string | getOutputFullPath (const std::string &Filename) const |
| void | setOutputDir (const std::string &OutputDir) |
| void | setDateTimeOutputDir () |
| bool | isClearOutputDir () const |
| void | setClearOutputDir (bool Enabled) |
| bool | isProfiling () const |
| void | setProfiling (bool Enabled) |
| unsigned int | getValuesBufferUserSize () const |
| void | setValuesBufferUserSize (unsigned int Size) |
| void | unsetValuesBufferUserSize () |
| bool | isValuesBufferUserSize () const |
| unsigned int | getWaresMaxNumThreads () const |
| void | setWaresMaxNumThreads (unsigned int Num) |
| void | resetWaresMaxNumThreads () |
| openfluid::core::MapValue & | extraProperties () |
| const openfluid::core::MapValue & | getWaresEnvironment () const |
| void | processWareParams (openfluid::ware::WareParams_t &Params) const |
| std::string | getProjectPath () const |
| std::string | getProjectName () const |
| void | setProjectName (const std::string &Name) |
| std::string | getProjectDescription () const |
| void | setProjectDescription (const std::string &Description) |
| std::string | getProjectAuthors () const |
| void | setProjectAuthors (const std::string &Authors) |
| std::string | getProjectCreationDate () const |
| void | setProjectCreationDate (const std::string &CreationDate) |
| void | setProjectCreationDateAsNow () |
| std::string | getProjectLastModDate () const |
| void | setProjectLastModDate (const std::string &LastModDate) |
| bool | isProjectIncrementalOutputDir () const |
| void | setProjectIncrementalOutputDir (const bool Inc) |
| bool | openProject (const std::string &Path) |
| bool | createProject (const std::string &Path, const std::string &Name, const std::string &Description, const std::string &Authors, const bool Inc) |
| bool | isProjectOpen () const |
| bool | saveProject () |
| void | closeProject () |
| void | updateProjectOutputDir () |
| QVariant | getProjectConfigValue (const QString &Group, const QString &Key) const |
| void | removeProjectConfigValue (const QString &Group, const QString &Key) |
| void | setProjectConfigValue (const QString &Group, const QString &Key, const QVariant &Value) |
Static Public Member Functions | |
| static bool | isProject (const std::string &Path) |
| static bool | getProjectInfos (const std::string &Path, std::string &Name, std::string &Description, std::string &Authors, std::string &CreationDate, std::string &LastModDate) |
Static Public Member Functions inherited from openfluid::base::Environment | |
| static void | init () |
| static std::string | getHostName () |
| static std::string | getSystemArch () |
| static int | getIdealThreadCount () |
| static int | getIdealJobsCount () |
| static std::string | getUserName () |
| static std::string | getVersion () |
| static std::string | getVersionFull () |
| static std::string | getVersionMajorMinor () |
| static std::string | getTempDir () |
| static std::string | getInstallPrefix () |
| static std::string | getUserHomeDir () |
| static std::string | getUserDataDir () |
| static std::string | getUserDataFullPath (const std::string &Path) |
| static std::string | getUserExamplesDir () |
| static std::string | getUserExampleSimulatorsDir () |
| static std::string | getProvidedExamplesDir () |
| static void | prepareUserDataDirectory () |
| static std::string | getConfigFile () |
| static std::string | getTranslationsDir () |
| static std::string | getCommonResourcesDir () |
| static std::string | getCommonResourcesFullPath (const std::string &Path) |
| static std::string | getAppResourcesDir (const std::string &AppName) |
| static std::string | getAppResourcesFullPath (const std::string &AppName, const std::string &Path) |
| static std::vector< std::string > | getSimulatorsDirs () |
| static std::vector< std::string > | getDefaultSimulatorsDirs () |
| static std::vector< std::string > | getExtraSimulatorsDirs () |
| static void | addExtraSimulatorsDirs (const std::string &Paths) |
| static void | resetExtraSimulatorsDirs () |
| static std::string | getSimulatorFullPath (const std::string &Filename) |
| static std::vector< std::string > | getObserversDirs () |
| static std::vector< std::string > | getDefaultObserversDirs () |
| static std::vector< std::string > | getExtraObserversDirs () |
| static void | addExtraObserversDirs (const std::string &Paths) |
| static void | resetExtraObserversDirs () |
| static std::string | getObserverFullPath (const std::string &Filename) |
| static std::vector< std::string > | getBuilderextsDirs () |
| static std::vector< std::string > | getDefaultBuilderextsDirs () |
| static std::vector< std::string > | getExtraBuilderextsDirs () |
| static void | addExtraBuilderextsDirs (const std::string &Paths) |
| static void | resetExtraBuilderextsDirs () |
| static std::string | getBuilderextFullPath (const std::string &Filename) |
| static std::string | getMarketBagBinSubDir () |
| static std::string | getMarketBagBuilderextsDir () |
| static std::string | getMarketBagDataDir () |
| static std::string | getMarketBagDir () |
| static std::string | getMarketBagObserversDir () |
| static std::string | getMarketBagSimulatorsDir () |
| static std::string | getMarketBagSrcSubDir () |
| static std::string | getMarketBagVersionDir () |
Additional Inherited Members | |
Protected Member Functions inherited from openfluid::base::Environment | |
| Environment () | |
Static Protected Member Functions inherited from openfluid::base::Environment | |
| static std::string | getWareFullPath (const std::vector< std::string > &Dirs, const std::string &Filename) |
Static Protected Attributes inherited from openfluid::base::Environment | |
| static std::string | m_SystemArch |
| static std::string | m_HostName |
| static std::string | m_UserName |
| static std::string | m_Version |
| static std::string | m_VersionFull |
| static std::string | m_VersionMajorMinor |
| static std::string | m_InstallPrefix |
| static std::string | m_TempDir |
| static std::string | m_UserHomeDir |
| static std::string | m_UserDataDir |
| static std::string | m_ConfigFile |
| static std::vector< std::string > | m_DefaultSimulatorsDirs |
| static std::vector< std::string > | m_ExtraSimulatorsDirs |
| static std::vector< std::string > | m_DefaultObserversDirs |
| static std::vector< std::string > | m_ExtraObserversDirs |
| static std::vector< std::string > | m_DefaultBuilderextsDirs |
| static std::vector< std::string > | m_ExtraBuilderextsDirs |
| static std::string | m_ProvidedExamplesDir |
| static std::string | m_UserExamplesDir |
| static std::string | m_UserExampleSimulatorsDir |
| static std::string | m_MarketBagDir |
| static std::string | m_MarketBagVersionDir |
| static std::string | m_MarketBagSimulatorsDir |
| static std::string | m_MarketBagObserversDir |
| static std::string | m_MarketBagBuilderextsDir |
| static std::string | m_MarketBagDataDir |
| static std::string | m_MarketBagBinSubDir |
| static std::string | m_MarketBagSrcSubDir |
| static std::string | m_TranslationsDir |
| static std::string | m_CommonResourcesDir |
| static std::string | m_AppsResourcesDir |
| static int | m_IdealThreadCount |


| void openfluid::base::RunContextManager::closeProject | ( | ) |
| bool openfluid::base::RunContextManager::createProject | ( | const std::string & | Path, |
| const std::string & | Name, | ||
| const std::string & | Description, | ||
| const std::string & | Authors, | ||
| const bool | Inc | ||
| ) |
|
inline |
|
inline |
Returns the full path of the simulation input directory
| 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
| [in] | Filename | the path relative to the simulation input directory |
|
inline |
Returns the full path of the simulation output directory
| 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
| [in] | Filename | the path relative to the simulation output directory |
|
inline |
| QVariant openfluid::base::RunContextManager::getProjectConfigValue | ( | const QString & | Group, |
| const QString & | Key | ||
| ) | const |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the size of the buffer set by the user for simulation variables values
|
inline |
|
inline |
Returns the value for maximum threads count to be used in OpenFLUID wares (simulators, observers, ...)
|
inline |
Returns the status of automatic cleaning of output directory before simulation run
|
inline |
Returns the status of simulation profiling
|
static |
|
inline |
|
inline |
|
inline |
Returns true if the size of the buffer for simulation variables values has been set by the user
| bool openfluid::base::RunContextManager::openProject | ( | const std::string & | Path | ) |
| void openfluid::base::RunContextManager::processWareParams | ( | openfluid::ware::WareParams_t & | Params | ) | const |
| void openfluid::base::RunContextManager::removeProjectConfigValue | ( | const QString & | Group, |
| const QString & | Key | ||
| ) |
| 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
| bool openfluid::base::RunContextManager::saveProject | ( | ) |
|
inline |
Sets the status of automatic cleaning of output directory before simulation run
| Enabled | set to true to enable |
| void openfluid::base::RunContextManager::setDateTimeOutputDir | ( | ) |
| void openfluid::base::RunContextManager::setInputDir | ( | const std::string & | InputDir | ) |
Sets the full path of the simulation input directory
| void openfluid::base::RunContextManager::setOutputDir | ( | const std::string & | OutputDir | ) |
Sets the full path of the simulation output directory
|
inline |
Sets the status of simulation profiling
| Enabled | set to true to enable |
|
inline |
| void openfluid::base::RunContextManager::setProjectConfigValue | ( | const QString & | Group, |
| const QString & | Key, | ||
| const QVariant & | Value | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the size of the buffer set by the user for simulation variables values
| [in] | Size | the size of the buffer |
|
inline |
Sets the value for maximum threads count to be used in OpenFLUID wares (simulators, observers, ...)
| [in] | Num | the maximum threads count |
|
inline |
Unsets the size of the buffer set by the user for simulation variables values
| void openfluid::base::RunContextManager::updateProjectOutputDir | ( | ) |
1.8.17