54 out <<
"\nA:\n"; A.
print(out);
55 writeParameterListToXmlFile(A,
"A.xml");
58 updateParametersFromXmlFile(
"A.xml", inoutArg(B));
59 out <<
"\nB:\n"; B.
print(out);
64 getParameter<std::string>(B.
sublist(
"SublistA",
true),
"param_a"),
67 getParameter<std::string>(B.
sublist(
"SublistA",
true).
sublist(
"SublistB",
true),
"param_b"),
void print() const
Print function to use in debugging in a debugger.
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Set a parameter whose value has type T.
Simple helper functions that make it easy to read and write XML to and from a parameterlist.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
A list of parameters of arbitrary type.
TEST_EQUALITY(rcp_dynamic_cast< const EnhancedNumberValidator< double > >( castedDep1->getValuesAndValidators().find("val1") ->second, true) ->getMax(), double1Vali->getMax())
TEST_ASSERT(castedDep1->getValuesAndValidators().size()==2)
ParameterList & sublist(const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
Creates an empty sublist and returns a reference to the sublist name. If the list already exists...