61#define ADD_TYPE_PARAMETER(T,VALUE) \
62 myList.set( #T , as<T>(VALUE));
64#define ADD_ARRAY_TYPE_PARAMETER(T,VALUE) \
65 myList.set( #T " Array", Array< T >(g_arraySize, ( T ) VALUE ));\
66 myList.set( #T " 2DArray", TwoDArray< T >(g_arraySize, g_arraySize, ( T ) VALUE ));
67#define ADD_TYPE_AND_ARRAY_TYPE_PARAMETER(T,VALUE) \
68 ADD_TYPE_PARAMETER(T,VALUE); \
69 ADD_ARRAY_TYPE_PARAMETER(T,VALUE);
103 out <<
"\nmyList:\n";
105 out <<
"\n*readInPL:\n";
135 badIdsList = getParametersFromXmlFile(
"DuplicateParameterIDs.xml"),
143 #ifdef HAVE_TEUCHOS_DEBUG
#define ADD_TYPE_PARAMETER(T, VALUE)
#define ADD_TYPE_AND_ARRAY_TYPE_PARAMETER(T, VALUE)
#define TEST_ASSERT(v1)
Assert the given statement is true.
#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).
Templated Parameter List class.
A collection of standard ParameterEntryXMLConverters.
A collection of standard ValidatorXMLConverters.
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
A database for ValidatorXMLConverters.
Simple helper functions that make it easy to read and write XML to and from a parameterlist.
A collection of Exceptions that can be potentially thrown when converting a ParameterList to and from...
Writes a ParameterList to an XML object.
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
Definition of Teuchos::as, for conversions between types.
Thrown when a converter is being used to convert either and XML tag or ParameterEntry with an innappr...
Thrown when an element inside a parameter list is bad.
Thrown when the root xml tag for a parameter list is incorrect.
Thrown when an appropriate ParameterEntryXMLConverter can't be found.
Thrown when two parameters in an XML file have the same ID.
Thrown when a parameter entry tag is missing it's name attribute.
Thrown when a parameter entry tag is missing it's type attribute.
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.
A list of parameters of arbitrary type.
Concrete serial communicator subclass.
A class for mapping validators to integers.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
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...