|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
A simple validator that only allows certain string values to be choosen or simply enforces that a particular parameter have a std::string for a value. More...
#include <Teuchos_StandardParameterEntryValidators.hpp>

Constructors/Destructor | |
| StringValidator () | |
| Constructs a StringValidator. | |
| StringValidator (const Teuchos::Array< std::string > &validStrings) | |
| Constructs a StringValidator. | |
Setter Functions | |
| ValidStringsList | setValidStrings (const Teuchos::Array< std::string > &validStrings) |
| Sets the Array of valid strings and returns what the current array of valid string now is. | |
Overridden from ParameterEntryValidator | |
| ValidStringsList | validStringValues () const |
| | |
| void | validate (ParameterEntry const &entry, std::string const ¶mName, std::string const &sublistName) const |
| | |
| const std::string | getXMLTypeName () const |
| | |
| void | printDoc (std::string const &docString, std::ostream &out) const |
| | |
Private Members | |
| ValidStringsList | validStrings_ |
| An array containing a list of all the valid string values. | |
A simple validator that only allows certain string values to be choosen or simply enforces that a particular parameter have a std::string for a value.
Please see StringValidatorXMLConverter for documenation regarding the XML representation of this validator.
Definition at line 1581 of file Teuchos_StandardParameterEntryValidators.hpp.
Constructs a StringValidator.
Definition at line 474 of file Teuchos_StandardParameterEntryValidators.cpp.
| Teuchos::StringValidator::StringValidator | ( | const Teuchos::Array< std::string > & | validStrings | ) |
Constructs a StringValidator.
| validStrings | A list of valid string values for this validator. |
Definition at line 479 of file Teuchos_StandardParameterEntryValidators.cpp.
| ParameterEntryValidator::ValidStringsList Teuchos::StringValidator::setValidStrings | ( | const Teuchos::Array< std::string > & | validStrings | ) |
Sets the Array of valid strings and returns what the current array of valid string now is.
| validStrings | What the array for the valid strings should contain. |
Definition at line 486 of file Teuchos_StandardParameterEntryValidators.cpp.
| ParameterEntryValidator::ValidStringsList Teuchos::StringValidator::validStringValues | ( | ) | const [virtual] |
Implements Teuchos::ParameterEntryValidator.
Definition at line 494 of file Teuchos_StandardParameterEntryValidators.cpp.
| void Teuchos::StringValidator::validate | ( | ParameterEntry const & | entry, |
| std::string const & | paramName, | ||
| std::string const & | sublistName | ||
| ) | const [virtual] |
Implements Teuchos::ParameterEntryValidator.
Definition at line 500 of file Teuchos_StandardParameterEntryValidators.cpp.
| const std::string Teuchos::StringValidator::getXMLTypeName | ( | ) | const [virtual] |
Implements Teuchos::ParameterEntryValidator.
Definition at line 535 of file Teuchos_StandardParameterEntryValidators.cpp.
| void Teuchos::StringValidator::printDoc | ( | std::string const & | docString, |
| std::ostream & | out | ||
| ) | const [virtual] |
Implements Teuchos::ParameterEntryValidator.
Definition at line 541 of file Teuchos_StandardParameterEntryValidators.cpp.
An array containing a list of all the valid string values.
Definition at line 1640 of file Teuchos_StandardParameterEntryValidators.hpp.
1.7.6.1