10 #ifndef TEUCHOS_VALIDATORXMLCONVERTERDB_HPP
11 #define TEUCHOS_VALIDATORXMLCONVERTERDB_HPP
22 class ParameterEntryValidator;
78 bool assignedID=
true);
104 static void printKnownConverters(std::ostream& out);
114 typedef std::map<std::string, RCP<ValidatorXMLConverter> >
ConverterMap;
153 #define TEUCHOS_ADD_STRINGTOINTEGRALVALIDATOR_CONVERTER(INTEGRALTYPE) \
155 Teuchos::ValidatorXMLConverterDB::addConverter( \
156 Teuchos::DummyObjectGetter< \
157 Teuchos::StringToIntegralParameterEntryValidator< INTEGRALTYPE > >:: \
159 Teuchos::rcp(new Teuchos::StringToIntegralValidatorXMLConverter< INTEGRALTYPE >));
166 #define TEUCHOS_ADD_ENHANCEDNUMBERVALIDATOR_CONVERTER(T) \
168 Teuchos::ValidatorXMLConverterDB::addConverter( \
169 Teuchos::DummyObjectGetter< \
170 Teuchos::EnhancedNumberValidator< T > >:: \
172 Teuchos::rcp(new Teuchos::EnhancedNumberValidatorXMLConverter< T >));
178 #define TEUCHOS_ADD_ARRAYVALIDATOR_CONVERTER(VALIDATORTYPE, ENTRYTYPE) \
180 Teuchos::ValidatorXMLConverterDB::addConverter( \
181 Teuchos::DummyObjectGetter< \
182 Teuchos::ArrayValidator< VALIDATORTYPE, ENTRYTYPE > >:: \
184 Teuchos::rcp(new Teuchos::ArrayValidatorXMLConverter< VALIDATORTYPE, ENTRYTYPE >)); \
185 Teuchos::ValidatorXMLConverterDB::addConverter( \
186 Teuchos::DummyObjectGetter< \
187 Teuchos::TwoDArrayValidator< VALIDATORTYPE, ENTRYTYPE > >:: \
189 Teuchos::rcp(new Teuchos::TwoDArrayValidatorXMLConverter< VALIDATORTYPE, ENTRYTYPE >));
193 #define TEUCHOS_ADD_NUMBERTYPE_VALIDATOR_CONVERTERS(T) \
194 TEUCHOS_ADD_STRINGTOINTEGRALVALIDATOR_CONVERTER(T); \
195 TEUCHOS_ADD_ENHANCEDNUMBERVALIDATOR_CONVERTER(T); \
196 TEUCHOS_ADD_ARRAYVALIDATOR_CONVERTER(Teuchos::EnhancedNumberValidator< T >, T );
201 #define TEUCHOS_ADD_VALIDATOR_CONVERTER(VALIDATOR_TYPE, CONVERTER_TYPE) \
202 Teuchos::ValidatorXMLConverterDB::addConverter( \
203 Teuchos::DummyObjectGetter< VALIDATOR_TYPE > \
204 ::getDummyObject(), \
205 Teuchos::rcp(new CONVERTER_TYPE ));
207 #endif // TEUCHOS_VALIDATORXMLCONVERTERDB_HPP
Provides ability to lookup ValidatorXMLConverterDB.
A collection of standard ValidatorXMLConverters.
Maps Validators to integers.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
Converts back and forth between XML and ParameterEntryValidators.
A class for mapping validators to integers.
std::pair< std::string, RCP< ValidatorXMLConverter > > ConverterPair
convience typedef.
#define TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
Abstract interface for an object that can validate a ParameterEntry's value.
std::map< std::string, RCP< ValidatorXMLConverter > > ConverterMap
convience class.
Smart reference counting pointer class for automatic garbage collection.