64 char csxml[] =
"<value><string>Now is the time <&</string></value>";
65 std::string ssxml = csxml;
77 std::string emptyStringXml(
"<value></value>");
79 XmlRpcValue emptyStringVal1(emptyStringXml, &offset);
81 assert(emptyStringVal1 == emptyStringVal2);
83 emptyStringXml =
"<value> </value>";
85 XmlRpcValue blankStringVal(emptyStringXml, &offset);
86 assert(std::string(blankStringVal) ==
" ");
132 struct1[
"str"] =
"two";
138 a[1] = std::string(
"two");
142 assert(struct1[
"d"] == a[2]);
147 " <name>i4</name> \n"
148 " <value><i4>1</i4></value> \n"
152 " <value><double>43.7</double></value>\n"
155 " <name>str</name> \n"
156 " <value> <string>two</string></value>\n"
162 assert(struct1 == structXml);
165 astruct[
"array"] = a;
166 assert(astruct[
"array"][2] == struct1[
"d"]);
168 for (
int i=0; i<10; i++) {
170 Event[
"Name"] =
"string";
174 const int NELMTS = 100;
177 for (ii=0; ii< NELMTS; ++ii) {
180 Event[std::string(buf)] = buf;
185 for (ii=0; ii< NELMTS; ++ii) {
189 Event[std::string(buf)] = ii;
191 for (
int jj=0; jj< NELMTS; ++jj) {
194 Event[std::string(buf)][std::string(bufj)] = bufj;
198 for (ii=0; ii< NELMTS; ++ii) {
204 assert(
Event[std::string(buf)].size() == NELMTS);
sprintf(cut,"kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)