25       "filename", &
filename, 
"XML file to parse" );
 
   30     std::string xmlstring(
 
   32         "  <ParameterList name=\"SubList\">\n" 
   33         "  </ParameterList>                \n" 
   34         "</ParameterList>                  \n");
 
   36     updateParametersFromXmlString( xmlstring, plist() );
 
   47     std::string xmlstring( (std::istreambuf_iterator<char>(fin)),
 
   48                             std::istreambuf_iterator<char>()      );
 
   60     out << 
"Changing policy to disallow duplicate sublists" << std::endl;
 
Writes an XML object to a parameter list. 
bool getAllowsDuplicateSublists() const 
Specifies the current policy regarding duplicated sublists. See setAllowsDuplicateSublists() for more...
#define TEST_NOTHROW(code)
Asserr that the statement 'code' does not thrown any excpetions. 
static CommandLineProcessor & getCLP()
Return the CLP to add options to. 
Optionally thrown when a sublist is set twice by either updateParametersFromXmlFile(), updateParametersFromXmlFileAndUpdate() or updateParametersFromXmlString() 
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
Simple helper functions that make it easy to read and write XML to and from a parameterlist. 
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
Templated Parameter List class. 
void setOption(const char option_true[], const char option_false[], bool *option_val, const char documentation[]=NULL)
Set a boolean option. 
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2. 
RCP< ParameterList > toParameterList(const XMLObject &xml, RCP< DependencySheet > depSheet) const 
A list of parameters of arbitrary type. 
Writes an XML object to a parameter list. 
Smart reference counting pointer class for automatic garbage collection. 
void setAllowsDuplicateSublists(bool policy)
Set policy regarding duplicated sublists.