10#ifndef TEUCHOS_VALIDATORXMLCONVERTER_HPP
11#define TEUCHOS_VALIDATORXMLCONVERTER_HPP
19#include "Teuchos_Describable.hpp"
21#include "Teuchos_ParameterEntryValidator.hpp"
77 bool assignedID=
true)
const;
95 #ifdef HAVE_TEUCHOS_DEBUG
106 getDummyValidator()
const = 0;
116 static const std::string idAttributeName =
"validatorId";
117 return idAttributeName;
122 static const std::string prototypeIdAttributeName =
"prototypeId";
123 return prototypeIdAttributeName;
128 static const std::string typeAttributeName =
"type";
129 return typeAttributeName;
134 static const std::string validatorTagName =
"Validator";
135 return validatorTagName;
An object representation of a subset of XML data.
A collection of Exceptions that can be potentially thrown when converting a ParameterList to and from...
Writes an XML object to a parameter list.
Writes a ParameterList to an XML object.
Base class for all objects that can describe themselves.
Maps Validators to integers.
Smart reference counting pointer class for automatic garbage collection.
An abstract base class for converting ParameterEntryValidators to and from XML.
XMLObject fromValidatortoXML(const RCP< const ParameterEntryValidator > validator, const ValidatortoIDMap &validatorIDsMap, bool assignedID=true) const
Converters a given ParameterEntryValidator to XML.
static const std::string & getValidatorTagName()
static const std::string & getIdAttributeName()
static const std::string & getPrototypeIdAttributeName()
virtual void convertValidator(const RCP< const ParameterEntryValidator > validator, XMLObject &xmlObj, const ValidatortoIDMap &validatorIDsMap) const =0
Preforms any and all special validator conversion that is specific to a particlar ParameterEntryValid...
RCP< ParameterEntryValidator > fromXMLtoValidator(const XMLObject &xmlObj, const IDtoValidatorMap &validatorIDsMap) const
Converts a given XMLObject to a ParameterEntryValidator.
virtual RCP< ParameterEntryValidator > convertXML(const XMLObject &xmlObj, const IDtoValidatorMap &validatorIDsMap) const =0
Preforms any and all special xml conversion that is specific to a particular ParameterEntryValidator.
static const std::string & getTypeAttributeName()
A class for mapping validators to integers.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...