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. More... | |
StringValidator (const Teuchos::Array< std::string > &validStrings) | |
Constructs a StringValidator. More... | |
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. More... | |
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. More... | |
Additional Inherited Members | |
Public Types inherited from Teuchos::ParameterEntryValidator | |
typedef unsigned int | ValidatorID |
typedef RCP< const Array < std::string > > | ValidStringsList |
Public Member Functions inherited from Teuchos::ParameterEntryValidator | |
ParameterEntryValidator () | |
Default Constructor. More... | |
virtual void | validateAndModify (std::string const ¶mName, std::string const &sublistName, ParameterEntry *entry) const |
Validate and perhaps modify a parameter entry's value. More... | |
double | convertStringToDouble (std::string str) const |
int | convertStringToInt (std::string str) const |
int | convertStringToLongLong (std::string str) const |
Public Member Functions inherited from Teuchos::Describable | |
virtual std::string | description () const |
Return a simple one-line description of this object. More... | |
virtual void | describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
Print the object with some verbosity level to a FancyOStream. More... | |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
Version of describe() that takes an std::ostream instead of a FancyOStream. More... | |
virtual | ~Describable () |
Destructor (marked virtual for memory safety of derived classes). More... | |
Public Member Functions inherited from Teuchos::LabeledObject | |
LabeledObject () | |
Construct with an empty label. More... | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
Set the object label (see LabeledObject). More... | |
virtual std::string | getObjectLabel () const |
Get the object label (see LabeledObject). More... | |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default = VERB_DEFAULT |
Default value for the verbLevel argument of describe(). More... | |
Related Functions inherited from Teuchos::Describable | |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
Describable output stream manipulator. More... | |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Output stream operator for Describable manipulator. More... | |
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 1867 of file Teuchos_StandardParameterEntryValidators.hpp.
Teuchos::StringValidator::StringValidator | ( | ) |
Constructs a StringValidator.
Definition at line 613 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 618 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 625 of file Teuchos_StandardParameterEntryValidators.cpp.
|
virtual |
Implements Teuchos::ParameterEntryValidator.
Definition at line 633 of file Teuchos_StandardParameterEntryValidators.cpp.
|
virtual |
Implements Teuchos::ParameterEntryValidator.
Definition at line 639 of file Teuchos_StandardParameterEntryValidators.cpp.
|
virtual |
Implements Teuchos::ParameterEntryValidator.
Definition at line 674 of file Teuchos_StandardParameterEntryValidators.cpp.
|
virtual |
Implements Teuchos::ParameterEntryValidator.
Definition at line 680 of file Teuchos_StandardParameterEntryValidators.cpp.
|
private |
An array containing a list of all the valid string values.
Definition at line 1926 of file Teuchos_StandardParameterEntryValidators.hpp.