11#include "Teuchos_ParameterEntryXMLConverterDB.hpp" 
   55void XMLParameterListWriter::buildInitialValidatorMap(
 
   62      buildInitialValidatorMap(
 
   73XMLObject XMLParameterListWriter::convertValidators(
 
   74  const ParameterList& , ValidatortoIDMap& validatorIDsMap)
 const 
   79    it != validatorIDsMap.end();
 
   89XMLObject XMLParameterListWriter::convertParameterList(
 
   90  const ParameterList& p,
 
   92  EntryIDsMap& entryIDsMap,
 
   93  const ValidatortoIDMap& validatorIDsMap)
 const 
   98    RCP<const ParameterEntry> entry = p.getEntryRCP(i->first);
 
  100      XMLObject newPL = convertParameterList(
 
  101        getValue<ParameterList>(entry),
 
  109      entryIDsMap.insert(EntryIDsMap::value_type(entry, idCounter));
 
  115        entry, p.name(i), idCounter, validatorIDsMap));
 
  116      entryIDsMap.insert(EntryIDsMap::value_type(entry, idCounter));
 
  124XMLParameterListWriter::convertDependencies(
 
  125  RCP<const DependencySheet> depSheet,
 
  126  const EntryIDsMap& entryIDsMap,
 
  127  ValidatortoIDMap& validatorIDsMap)
 const 
  130  toReturn.addAttribute(
 
  136    DependencySheet::DepSet::const_iterator it = depSheet->depBegin();
 
  137    it != depSheet->depEnd();
 
  141      *it, entryIDsMap, validatorIDsMap));
 
A database for DependencyXMLConverters.
 
A database for ValidatorXMLConverters.
 
A collection of Exceptions that can be potentially thrown when converting a ParameterList to and from...
 
Writes a ParameterList to an XML object.
 
static const std::string & getNameAttributeName()
When serializing to XML, this string should be used as the name of the name attribute.
 
static XMLObject convertDependency(RCP< const Dependency > dependency, const XMLParameterListWriter::EntryIDsMap &entryIDsMap, ValidatortoIDMap &validatorIDsMap)
Given a dependency converts the dependency to XML.
 
static XMLObject convertEntry(RCP< const ParameterEntry > entry, const std::string &name, const ParameterEntry::ParameterEntryID &id, const ValidatortoIDMap &validatorIDsMap)
Converts the given ParameterEntry to XML.
 
static const std::string & getIdAttributeName()
 
This object is held as the "value" in the Teuchos::ParameterList std::map.
 
unsigned int ParameterEntryID
 
RCP< const ParameterEntryValidator > validator() const
Return the (optional) validator object.
 
bool isList() const
Return whether or not the value itself is a list.
 
A list of parameters of arbitrary type.
 
params_t::ConstIterator ConstIterator
Parameter container const iterator typedef.
 
Smart reference counting pointer class for automatic garbage collection.
 
bool is_null() const
Returns true if the underlying pointer is null.
 
static XMLObject convertValidator(RCP< const ParameterEntryValidator > validator, const ValidatortoIDMap &validatorIDsMap, bool assignedID=true)
Given a validator converts the validator to XML.
 
A class for mapping validators to integers.
 
void insert(RCP< const ParameterEntryValidator > toInsert)
inserts an IDValidatorPair into the map.
 
ValidatorMap::const_iterator const_iterator
 
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
 
std::map< RCP< const ParameterEntry >, ParameterEntry::ParameterEntryID, RCPConstComp > EntryIDsMap
 
static const std::string & getDependenciesTagName()
 
static const std::string & getValidatorsTagName()
 
static const std::string & getParameterListTagName()
 
static const std::string & getNameAttributeName()
 
XMLObject toXML(const ParameterList &p, RCP< const DependencySheet > depSheet=null) const
 
bool nonnull(const std::shared_ptr< T > &p)
Returns true if p.get()!=NULL.
 
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...