#include <optionshandler.h>
Definition at line 27 of file optionshandler.h.
◆ OptionsHandler()
votca::tools::OptionsHandler::OptionsHandler |
( |
std::string | defaults_path | ) |
|
|
inline |
◆ CalculatorOptions()
Property votca::tools::OptionsHandler::CalculatorOptions |
( |
const std::string & | calcname | ) |
const |
Resolve links and return all the options of a calculator.
Definition at line 121 of file optionshandler.cc.
◆ CheckChoices()
void votca::tools::OptionsHandler::CheckChoices |
( |
const Property & | options | ) |
const |
|
private |
◆ CheckRequired()
void votca::tools::OptionsHandler::CheckRequired |
( |
const Property & | options | ) |
const |
|
private |
Checks that all options with default="REQUIRED" are filled in.
Definition at line 98 of file optionshandler.cc.
◆ CheckUserInput()
void votca::tools::OptionsHandler::CheckUserInput |
( |
const Property & | user_input, |
|
|
const Property & | defaults ) const |
|
private |
Checks if all keywords in user_input (apart from sections named "unchecked") have corresponding keys in defaults.
Definition at line 82 of file optionshandler.cc.
◆ CleanAttributes()
void votca::tools::OptionsHandler::CleanAttributes |
( |
Property & | options, |
|
|
const std::vector< std::string > & | attributes ) const |
|
private |
◆ GetPropertyChoices()
std::vector< std::string > votca::tools::OptionsHandler::GetPropertyChoices |
( |
const Property & | p | ) |
|
|
staticprivate |
◆ InjectDefaultsAsValues()
void votca::tools::OptionsHandler::InjectDefaultsAsValues |
( |
Property & | options | ) |
const |
|
private |
◆ IsValidOption()
bool votca::tools::OptionsHandler::IsValidOption |
( |
const Property & | prop, |
|
|
const std::vector< std::string > & | choices ) const |
|
private |
◆ LoadDefaults()
Property votca::tools::OptionsHandler::LoadDefaults |
( |
const std::string & | calculatorname | ) |
const |
|
private |
◆ OverwriteDefaultsWithUserInput()
void votca::tools::OptionsHandler::OverwriteDefaultsWithUserInput |
( |
const Property & | p, |
|
|
Property & | defaults ) const |
|
private |
◆ ProcessUserInput()
Property votca::tools::OptionsHandler::ProcessUserInput |
( |
const Property & | user_input, |
|
|
const std::string & | calcname ) const |
Load the default options and merge them with the user input.
Defaults are overwritten with user input
Definition at line 67 of file optionshandler.cc.
◆ RecursivelyCheckOptions()
void votca::tools::OptionsHandler::RecursivelyCheckOptions |
( |
const Property & | p | ) |
const |
|
private |
◆ RemoveOptional()
void votca::tools::OptionsHandler::RemoveOptional |
( |
Property & | options | ) |
const |
|
private |
Removes tags which have no value and default="OPTIONAL".
Definition at line 110 of file optionshandler.cc.
◆ ResolveLinks()
void votca::tools::OptionsHandler::ResolveLinks |
( |
tools::Property & | prop | ) |
const |
|
private |
Resolves "link" attribute in the Property by filling in defaults. Already existing tags are not overwritten.
Definition at line 39 of file optionshandler.cc.
◆ setAdditionalChoices()
void votca::tools::OptionsHandler::setAdditionalChoices |
( |
std::vector< std::string > | choices | ) |
|
|
inline |
Allows to bypass the choice evaluation for a specific calculator.
Definition at line 49 of file optionshandler.h.
◆ additional_choices_
std::vector<std::string> votca::tools::OptionsHandler::additional_choices_ {} |
|
private |
◆ defaults_path_
std::string votca::tools::OptionsHandler::defaults_path_ |
|
private |
◆ reserved_keywords_
std::vector<std::string> votca::tools::OptionsHandler::reserved_keywords_ {"OPTIONAL", "REQUIRED"} |
|
private |
The documentation for this class was generated from the following files: