33 c1.
set(
"cp1",
"first1");
34 c1.
set(
"cp2",
"second1");
35 c2.
set(
"cp3",
"first2");
36 c2.
set(
"cp4",
"second2");
37 wrotepl1.
set(
"FirstSublist",c1);
38 wrotepl1.
set(
"SecondSublist",c2);
42 std::ostringstream ss;
44 xmlstring1 = ss.str();
45 out <<
"*** String 1" << endl;
46 out << xmlstring1 << endl;
55 c1.
set(
"cp2",
"second1");
56 c1.
set(
"cp1",
"first1");
57 c2.
set(
"cp4",
"second2");
58 c2.
set(
"cp3",
"first2");
59 wrotepl2.
set(
"SecondSublist",c2);
60 wrotepl2.
set(
"FirstSublist",c1);
64 std::ostringstream ss;
66 xmlstring2 = ss.str();
67 out <<
"*** String 2" << endl;
68 out << xmlstring2 << endl;
107 c1.
set(
"A",
"first1");
108 c1.
set(
"Z",
"second1");
109 c2.
set(
"Z",
"first2");
110 c2.
set(
"A",
"second2");
111 plGold.
set(
"9FirstSublist",c1);
112 plGold.
set(
"1SecondSublist",c2);
116 "<ParameterList name=\"ParentList\">\n"
117 " <ParameterList name=\"9FirstSublist\">\n"
118 " <Parameter name=\"A\" type=\"string\" value=\"first1\"/>\n"
119 " <Parameter name=\"Z\" type=\"string\" value=\"second1\"/>\n"
120 " </ParameterList>\n"
121 " <ParameterList name=\"1SecondSublist\">\n"
122 " <Parameter name=\"Z\" type=\"string\" value=\"first2\"/>\n"
123 " <Parameter name=\"A\" type=\"string\" value=\"second2\"/>\n"
124 " </ParameterList>\n"
125 "</ParameterList>\n");
Writes an XML object to a parameter list.
XMLObject toXML(const ParameterList &p, RCP< const DependencySheet > depSheet=null) const
#define TEST_INEQUALITY(v1, v2)
Assert the inequality of v1 and v2.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Templated set method.
XMLParser consumes characters from an XMLInputStream object, parsing the XML and using a TreeBuilding...
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
Writes a ParameterList to an XML object.
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.
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
Writes a ParameterList to an XML object.