Teuchos - Trilinos Tools Package
Version of the Day
|
Provides ability to lookup ValidatorXMLConverterDB. More...
#include <Teuchos_ValidatorXMLConverterDB.hpp>
Static Public Member Functions | |
Modifier Functions | |
static void | addConverter (RCP< const ParameterEntryValidator > validator, RCP< ValidatorXMLConverter > converterToAdd) |
Add a converter to the database. More... | |
Converter Functions | |
static RCP< const ValidatorXMLConverter > | getConverter (const ParameterEntryValidator &validator) |
Get an appropriate ValidatorXMLConverter given a Validator. More... | |
static RCP< const ValidatorXMLConverter > | getConverter (const XMLObject &xmlObject) |
Get an appropriate ValidatorXMLConverter given a XMLObject. More... | |
static XMLObject | convertValidator (RCP< const ParameterEntryValidator > validator, const ValidatortoIDMap &validatorIDsMap, bool assignedID=true) |
Given a validator converts the validator to XML. More... | |
static RCP < ParameterEntryValidator > | convertXML (const XMLObject &xmlObject, const IDtoValidatorMap &validatorIDsMap) |
Given an XMLObject converts the XMLObject to a ParameterEntryValidator and inserts the validator into the map. More... | |
I/O Functions | |
static void | printKnownConverters (std::ostream &out) |
prints the xml tags associated with all known converters More... | |
Provides ability to lookup ValidatorXMLConverterDB.
Definition at line 59 of file Teuchos_ValidatorXMLConverterDB.hpp.
|
static |
Add a converter to the database.
validator | A dummy validator representing the type of validator the converter is designed to convert. |
convertToAdd | The converter to add to the database. |
Definition at line 52 of file Teuchos_ValidatorXMLConverterDB.cpp.
|
static |
Get an appropriate ValidatorXMLConverter given a Validator.
validator | The ParameterEntryValidator for which a converter is desired. |
Definition at line 61 of file Teuchos_ValidatorXMLConverterDB.cpp.
|
static |
Get an appropriate ValidatorXMLConverter given a XMLObject.
xmlObject | The XMLObject for which a converter is desired. |
Definition at line 76 of file Teuchos_ValidatorXMLConverterDB.cpp.
|
static |
Given a validator converts the validator to XML.
validator | The validator to be converter. |
validatorIDsMap | A map containing ParameterEntryValidators and their associated IDs. |
assignedID | Whether or not the validator to be converted has been assigned an ID and is therefore in the validatorIDsMap and should have a ID attribute. |
Definition at line 92 of file Teuchos_ValidatorXMLConverterDB.cpp.
|
static |
Given an XMLObject converts the XMLObject to a ParameterEntryValidator and inserts the validator into the map.
xmlObject | The XMLObject representing the validator to be converted. |
validatorIDsMap | A map containing ParameterEntryValidators and their associated IDs. |
Definition at line 102 of file Teuchos_ValidatorXMLConverterDB.cpp.
|
static |
prints the xml tags associated with all known converters
out | Stream to which tags should be printed. |
Definition at line 120 of file Teuchos_ValidatorXMLConverterDB.cpp.