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.
#define TEST_ASSERT(v1)
Assert the given statement is true.
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.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
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.
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...