29 #define ADD_TYPE_PARAMETER(T,VALUE) \
30 myList.set( #T , as<T>(VALUE));
32 #define ADD_ARRAY_TYPE_PARAMETER(T,VALUE) \
33 myList.set( #T " Array", Array< T >(g_arraySize, ( T ) VALUE ));\
34 myList.set( #T " 2DArray", TwoDArray< T >(g_arraySize, g_arraySize, ( T ) VALUE ));
35 #define ADD_TYPE_AND_ARRAY_TYPE_PARAMETER(T,VALUE) \
36 ADD_TYPE_PARAMETER(T,VALUE); \
37 ADD_ARRAY_TYPE_PARAMETER(T,VALUE);
73 out <<
"\n*readInPL:\n";
83 badRootElementList = getParametersFromXmlFile(
"BadRootElement.xml"),
87 badParameterListElementList = getParametersFromXmlFile(
"BadParameterListElement.xml"),
91 noNameAttributeList = getParametersFromXmlFile(
"NoNameAttribute.xml"),
95 noTypeAttributeList = getParametersFromXmlFile(
"NoTypeAttribute.xml"),
99 noValueAttributeList = getParametersFromXmlFile(
"NoValueAttribute.xml"),
103 badIdsList = getParametersFromXmlFile(
"DuplicateParameterIDs.xml"),
107 badParameterEntryConverterList = getParametersFromXmlFile(
"CantFindParameterEntryConverter.xml"),
111 #ifdef HAVE_TEUCHOS_DEBUG
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
void print() const
Print function to use in debugging in a debugger.
A collection of standard ValidatorXMLConverters.
#define TEST_ASSERT(v1)
Assert the given statement is true.
XMLObject fromParameterEntrytoXML(RCP< const ParameterEntry > entry, const std::string &name, const ParameterEntry::ParameterEntryID &id, const ValidatortoIDMap &validatorIDsMap) const
Converts the given parameter entry to xml.
#define ADD_TYPE_AND_ARRAY_TYPE_PARAMETER(T, VALUE)
Thrown when a parameter entry tag is missing it's value attribute.
This object is held as the "value" in the Teuchos::ParameterList std::map.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
A collection of standard ParameterEntryXMLConverters.
Thrown when a converter is being used to convert either and XML tag or ParameterEntry with an innappr...
Simple helper functions that make it easy to read and write XML to and from a parameterlist.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
Thrown when a parameter entry tag is missing it's name attribute.
A thin wrapper around the Array class which causes it to be interpreted as a 2D Array.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Thrown when an appropriate ParameterEntryXMLConverter can't be found.
Templated Parameter List class.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
Thrown when an element inside a parameter list is bad.
A database for ValidatorXMLConverters.
Writes a ParameterList to an XML object.
ParameterEntry fromXMLtoParameterEntry(const XMLObject &xmlObj) const
Converts the given xml into a parameter entry.
A standard ParameterEntryXMLConverter for most data types.
A class for mapping validators to integers.
Thrown when a parameter entry tag is missing it's type attribute.
A list of parameters of arbitrary type.
Thrown when the root xml tag for a parameter list is incorrect.
A collection of Exceptions that can be potentially thrown when converting a ParameterList to and from...
#define ADD_TYPE_PARAMETER(T, VALUE)
Thrown when two parameters in an XML file have the same ID.
Smart reference counting pointer class for automatic garbage collection.
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT RCP< ParameterList > writeThenReadPL(ParameterList &myList)
Write a parameter list to xml and then read that xml back in via a string. The intent of this functio...
Definition of Teuchos::as, for conversions between types.
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...