Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Provides ability to lookup ValidatorXMLConverterDB. More...
#include <Teuchos_ValidatorXMLConverterDB.hpp>
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... | |
Private types. | |
typedef std::map< std::string, RCP< ValidatorXMLConverter > > | ConverterMap |
convience class. More... | |
typedef std::pair< std::string, RCP< ValidatorXMLConverter > > | ConverterPair |
convience typedef. More... | |
Setup functions | |
static ConverterMap & | getConverterMap () |
Gets the default converter to be used to convert Validators. More... | |
Provides ability to lookup ValidatorXMLConverterDB.
Definition at line 59 of file Teuchos_ValidatorXMLConverterDB.hpp.
|
private |
convience class.
Definition at line 147 of file Teuchos_ValidatorXMLConverterDB.hpp.
|
private |
convience typedef.
Definition at line 150 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.
|
staticprivate |
Gets the default converter to be used to convert Validators.
This map is used to enable outside code to set up new converter types.
Definition at line 112 of file Teuchos_ValidatorXMLConverterDB.cpp.