|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
Template helper for serializing and deserializing lists of XML-capable objects. More...
#include <serializablexmllist.h>
Inheritance diagram for SerializableXmlList< T >:
Collaboration diagram for SerializableXmlList< T >:Public Member Functions | |
| bool | operator== (const SerializableXmlList< T > &other) const |
| Equality comparison — lists are equal if they have the same elements in the same order. | |
| bool | operator!= (const SerializableXmlList< T > &other) const |
| Inequality comparison. | |
| QDomElement | serializeToDomElement (const QString &tagName) const |
| Serialize all elements into a QDomElement container. | |
| void | deserializeFromDomElement (const QDomElement &element) |
| Populate this list by deserializing child elements of a QDomElement. | |
Template helper for serializing and deserializing lists of XML-capable objects.
A QList subclass that serializes/deserializes its elements via ISerializableToDomElement.
| T | Element type; must derive from both ISerializableToDomElement and IDeserializableFromDomElement. |
Definition at line 19 of file serializablexmllist.h.
|
inline |
Populate this list by deserializing child elements of a QDomElement.
Each direct child element is passed to a default-constructed element's deserializeFromDomElement() method.
| element | Parent DOM element whose children to deserialize |
Definition at line 66 of file serializablexmllist.h.
References IDeserializableFromDomElement::deserializeFromDomElement().
|
inline |
Inequality comparison.
| other | List to compare against |
Definition at line 36 of file serializablexmllist.h.
|
inline |
Equality comparison — lists are equal if they have the same elements in the same order.
| other | List to compare against |
Definition at line 25 of file serializablexmllist.h.
|
inline |
Serialize all elements into a QDomElement container.
Each element's serializeToDomElement() result is appended as a child of a new element named tagName.
| tagName | XML tag name for the wrapper element |
Definition at line 46 of file serializablexmllist.h.
References ISerializableToDomElement::serializeToDomElement().