|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
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";
106 readInPL->
print(out);
115 badRootElementList = getParametersFromXmlFile(
"BadRootElement.xml"),
119 badParameterListElementList = getParametersFromXmlFile(
"BadParameterListElement.xml"),
123 noNameAttributeList = getParametersFromXmlFile(
"NoNameAttribute.xml"),
127 noTypeAttributeList = getParametersFromXmlFile(
"NoTypeAttribute.xml"),
131 noValueAttributeList = getParametersFromXmlFile(
"NoValueAttribute.xml"),
135 badIdsList = getParametersFromXmlFile(
"DuplicateParameterIDs.xml"),
139 badParameterEntryConverterList = getParametersFromXmlFile(
"CantFindParameterEntryConverter.xml"),
143 #ifdef HAVE_TEUCHOS_DEBUG
Templated Parameter List class.
A thin wrapper around the Array class which causes it to be interpreted as a 2D Array.
Thrown when a parameter entry tag is missing it's type attribute.
Thrown when a parameter entry tag is missing it's name attribute.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
Thrown when a parameter entry tag is missing it's value attribute.
A collection of standard ValidatorXMLConverters.
Thrown when the root xml tag for a parameter list is incorrect.
Definition of Teuchos::as, for conversions between types.
A collection of standard ParameterEntryXMLConverters.
A collection of Exceptions that can be potentially thrown when converting a ParameterList to and from...
Thrown when two parameters in an XML file have the same ID.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
#define ADD_TYPE_AND_ARRAY_TYPE_PARAMETER(T, VALUE)
Thrown when an appropriate ParameterEntryXMLConverter can't be found.
Thrown when an element inside a parameter list is bad.
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails).
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
Smart reference counting pointer class for automatic garbage collection.
A class for mapping validators to integers.
void print() const
Print function to use in debugging in a debugger.
Simple helper functions that make it easy to read and write XML to and from a parameterlist.
Writes a ParameterList to an XML object.
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
Thrown when a converter is being used to convert either and XML tag or ParameterEntry with an innappr...
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.
ParameterEntry fromXMLtoParameterEntry(const XMLObject &xmlObj) const
Converts the given xml into a parameter entry.
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...
A list of parameters of arbitrary type.
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
TEST_EQUALITY(rcp_dynamic_cast< const EnhancedNumberValidator< double > >(castedDep1->getValuesAndValidators().find("val1") ->second, true) ->getMax(), double1Vali->getMax())
TEST_ASSERT(castedDep1->getValuesAndValidators().size()==2)
This object is held as the "value" in the Teuchos::ParameterList std::map.
#define ADD_TYPE_PARAMETER(T, VALUE)
A standard ParameterEntryXMLConverter for most data types.
A database for ValidatorXMLConverters.