Documentation for OpenFLUID 2.2.0
openfluid::base::ExamplesManager Class Reference

#include <base/ExamplesManager.hpp>

Public Member Functions

 ExamplesManager ()=delete
 
 ~ExamplesManager ()=delete
 

Static Public Member Functions

static bool installProject (const std::string &ProjectDir, const std::string &ResourcesPath="", const std::string &InstallPath="", const bool Force=false)
 
static bool installSimulator (const std::string &SimulatorDir, const std::string &ResourcesPath="", const std::string &InstallPath="", const bool Force=false)
 
static bool installAllProjects (const std::string &ResourcesPath="", const std::string &InstallPath="", const bool Force=false)
 
static bool installAllSimulators (const std::string &ResourcesPath="", const std::string &InstallPath="", const bool Force=false)
 
static bool installAll (const std::string &ResourcesPath="", const std::string &InstallPath="", const bool Force=false)
 

Constructor & Destructor Documentation

◆ ExamplesManager()

openfluid::base::ExamplesManager::ExamplesManager ( )
delete

◆ ~ExamplesManager()

openfluid::base::ExamplesManager::~ExamplesManager ( )
delete

Member Function Documentation

◆ installAll()

static bool openfluid::base::ExamplesManager::installAll ( const std::string &  ResourcesPath = "",
const std::string &  InstallPath = "",
const bool  Force = false 
)
static

Installs all example projects and simulators

Parameters
[in]ResourcesPathPath to the examples ressources, uses standard ressources path if empty (default is empty)
[in]InstallPathPath where to install the examples ressources, uses user openfluid path if empty (default is empty)
[in]ForceIf true, the installation is forced even if it already exists (default is false)

◆ installAllProjects()

static bool openfluid::base::ExamplesManager::installAllProjects ( const std::string &  ResourcesPath = "",
const std::string &  InstallPath = "",
const bool  Force = false 
)
static

Installs all example projects

Parameters
[in]ResourcesPathPath to the examples ressources, uses standard ressources path if empty (default is empty)
[in]InstallPathPath where to install the examples ressources, uses user openfluid path if empty (default is empty)
[in]ForceIf true, the installation is forced even if it already exists (default is false)

◆ installAllSimulators()

static bool openfluid::base::ExamplesManager::installAllSimulators ( const std::string &  ResourcesPath = "",
const std::string &  InstallPath = "",
const bool  Force = false 
)
static

Installs all example simulators

Parameters
[in]ResourcesPathPath to the examples ressources, uses standard ressources path if empty (default is empty)
[in]InstallPathPath where to install the examples ressources, uses user openfluid path if empty (default is empty)
[in]ForceIf true, the installation is forced even if it already exists (default is false)

◆ installProject()

static bool openfluid::base::ExamplesManager::installProject ( const std::string &  ProjectDir,
const std::string &  ResourcesPath = "",
const std::string &  InstallPath = "",
const bool  Force = false 
)
static

Installs a single example project, using its directory name

Parameters
[in]ProjectDirName of the project directory to install
[in]ResourcesPathPath to the examples ressources, uses standard ressources path if empty (default is empty)
[in]InstallPathPath where to install the examples ressources, uses user openfluid path if empty (default is empty)
[in]ForceIf true, the installation is forced even if it already exists (default is false)

◆ installSimulator()

static bool openfluid::base::ExamplesManager::installSimulator ( const std::string &  SimulatorDir,
const std::string &  ResourcesPath = "",
const std::string &  InstallPath = "",
const bool  Force = false 
)
static

Installs a single example simulator, using its directory name

Parameters
[in]SimulatorDirName of the simulator directory to install
[in]ResourcesPathPath to the examples ressources, uses standard ressources path if empty (default is empty)
[in]InstallPathPath where to install the examples ressources, uses user openfluid path if empty (default is empty)
[in]ForceIf true, the installation is forced even if it already exists (default is false)

The documentation for this class was generated from the following file: