|
tfel
|
configurations are organized as a tree. More...
#include </home/runner/work/tfel/tfel/tfel-check/include/TFEL/Check/ConfigurationManager.hxx>
Public Member Functions | |
| ConfigurationManager () | |
| default constructor | |
| ConfigurationManager (const Configuration &) | |
| constructor from a configuration. | |
| ConfigurationManager (ConfigurationManager &&) noexcept | |
| move constructor | |
| ConfigurationManager (const ConfigurationManager &) | |
| copy constructor | |
| ConfigurationManager & | operator= (ConfigurationManager &&) noexcept |
| move assignement | |
| ConfigurationManager & | operator= (const ConfigurationManager &) |
| standard assignement | |
| ConfigurationManager & | getConfigurationManager (const std::string &) |
| const Configuration & | getConfiguration (const std::string &) const |
| const Configuration & | getConfiguration () const |
| void | addSubstitution (const std::string &, const std::string &, const bool=true) |
| add a new substitution | |
| void | addEnvironmentVariable (const std::string &, const std::string &, const bool=true) |
| add a new environment variable | |
| void | addComponent (const std::string &) |
| add a new component | |
| void | setDiscardCommandsFailure (const bool) |
| set discard commands failure | |
| void | setCleanUp (const bool) |
| set if the the generated files and directories listed by the @CleanFiles and @CleanDirectories keywords must be removed | |
| void | discardCleanUpOnFailure (const bool) |
| set if the the generated files and directories listed by the @CleanFiles and @CleanDirectories keywords must not be removed in case of failure. | |
configurations are organized as a tree.
All modifications to the configuration of the root of the tree are made to the subtrees, called here the subordinates.
The ConfigurationManaoger is build in such a way that each change to the root configuration is propagated to all the subordinates.
|
explicit |
constructor from a configuration.
| [in] | src | configuration |
| void tfel::check::ConfigurationManager::addComponent | ( | const std::string & | ) |
add a new component
| [in] | c | component |
| void tfel::check::ConfigurationManager::addEnvironmentVariable | ( | const std::string & | , |
| const std::string & | , | ||
| const bool | = true ) |
add a new environment variable
| [in] | s1 | name of the environment variable |
| [in] | s2 | value of the environment variable |
| [in] | b | if true, throws if the environment variable already exists. Otherwise, nothing is done. |
| void tfel::check::ConfigurationManager::addSubstitution | ( | const std::string & | , |
| const std::string & | , | ||
| const bool | = true ) |
add a new substitution
| [in] | s1 | string to be substituted |
| [in] | s2 | substitution string |
| [in] | b | if true, throws if the substitution already exists. Otherwise, nothing is done. |
| void tfel::check::ConfigurationManager::discardCleanUpOnFailure | ( | const bool | ) |
set if the the generated files and directories listed by the @CleanFiles and @CleanDirectories keywords must not be removed in case of failure.
| [in] | b | boolean |
|
nodiscard |
|
nodiscard |
| [in] | d | relative directory |
|
nodiscard |
| [in] | n | directory name |
| void tfel::check::ConfigurationManager::setCleanUp | ( | const bool | ) |
set if the the generated files and directories listed by the @CleanFiles and @CleanDirectories keywords must be removed
| [in] | b | boolean |
| void tfel::check::ConfigurationManager::setDiscardCommandsFailure | ( | const bool | ) |
set discard commands failure
| [in] | b | boolean |