51 RCP<const ParameterEntryXMLConverter>
54 ConverterMap::const_iterator it =
72 " attribute." << std::endl <<
75 std::endl << std::endl);
79 ConverterMap::const_iterator it =
getConverterMap().find(parameterType);
83 "Can't find converter for parameter entry of type: " <<
85 std::endl << std::endl);
91 out <<
"Known ParameterEntryXMLConverters: " << std::endl;
97 out <<
"\t" << it->first <<std::endl;
105 if(defaultConverter.
is_null()){
108 return defaultConverter;
127 typedef unsigned int uint;
128 typedef unsigned short int ushort;
129 typedef unsigned long ulong;
136 typedef long long int llint;
137 typedef unsigned long long int ullint;
143 typedef std::string myString;
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
unsigned long long int ullint
static const std::string & getTagName()
Get the string that should be used as the tag name for all parameters when they are serialized to xml...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
static RCP< const ParameterEntryXMLConverter > getConverter(RCP< const ParameterEntry > entry)
Get an appropriate ParameterEntryXMLConverter given a ParameterEntry.
static ConverterMap & getConverterMap()
Gets the map containing all the ParameterEntry converters.
#define TEUCHOS_ADD_TYPE_AND_ARRAYTYPE_CONVERTER(T)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Thrown when an appropriate ParameterEntryXMLConverter can't be found.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
Writes a ParameterList to an XML object.
static const std::string & getTypeAttributeName()
Thrown when a parameter entry tag is missing it's type attribute.
static void printKnownConverters(std::ostream &out)
prints the xml tags associated with all known converters
std::map< std::string, RCP< ParameterEntryXMLConverter > > ConverterMap
convience typedef
#define TEUCHOS_ADD_TYPE_CONVERTER(T)
static void addConverter(RCP< ParameterEntryXMLConverter > converterToAdd)
Add a converter to the database.
A last resort converter for when no others will do.
const std::string & getAttribute(const std::string &name) const
Return the value of the attribute with the specified name.
static RCP< const ParameterEntryXMLConverter > getDefaultConverter()
Gets the default converter to be used on Parameter Entries.
Smart reference counting pointer class for automatic garbage collection.
bool hasAttribute(const std::string &name) const
Find out if the current node has an attribute of the specified name.
static const std::string & getNameAttributeName()
const std::string & getRequired(const std::string &name) const
Get an attribute, throwing an std::exception if it is not found.
bool is_null() const
Returns true if the underlying pointer is null.