22 void BasicXmlSerializationTest();
23 void XmlPrimitiveTypesTest();
24 void XmlArraySerializationTest();
34 retVal = retVal && archive.
Process(value);
35 retVal = retVal && archive.
EndTag(tag);
51 bool retVal = archive.
BeginTag(intTag);
52 retVal = retVal && archive.
Process(intValue);
53 retVal = retVal && archive.
EndTag(intTag);
55 retVal = retVal && archive.
BeginTag(doubleTag);
56 retVal = retVal && archive.
Process(doubleValue);
57 retVal = retVal && archive.
EndTag(doubleTag);
59 retVal = retVal && archive.
BeginTag(boolTag);
60 retVal = retVal && archive.
Process(boolValue);
61 retVal = retVal && archive.
EndTag(boolTag);
67 double doubleValue = 0.0;
68 bool boolValue =
false;
70 bool operator==(
const ComplexModel& other)
const
72 return intValue == other.intValue &&
73 qFuzzyCompare(doubleValue, other.doubleValue) &&
74 boolValue == other.boolValue;
87 int count = items.size();
89 retVal = retVal && archive.
BeginMultiTag(arrayTag, itemTag, count);
94 for (
int i = 0; i < items.size(); ++i) {
95 retVal = retVal && archive.
BeginTag(itemTag);
96 retVal = retVal && archive.
Process(items[i]);
97 retVal = retVal && archive.
EndTag(itemTag);
100 retVal = retVal && archive.
EndTag(arrayTag);
106 bool operator==(
const ArrayModel& other)
const
108 return items == other.items;
virtual bool BeginMultiTag(const CArchiveTag &tag, const CArchiveTag &subTag, int &count)=0
Begins a tagged section containing multiple elements of the same type.