#include <ext/app/exttesttools/tasqtdatamodel.h>
class SerializeFilter |
Allows to filter some elements from the xml tree.
Public Member Functions | |
---|---|
SerializeFilter() | |
virtual | ~SerializeFilter() |
virtual bool | serializeAttribute(TasAttribute &) |
virtual bool | serializeContainer(TasObjectContainer &) |
virtual void | serializeDuplicates(bool) |
virtual bool | serializeObject(TasObject &) |
The SerializeFilter makes it possible to set filters to avoid the models into producing too much information and therefore slowing thing down. The metaproperty system will at time produce a lot of information that may not always be what is needed.
~SerializeFilter | ( | ) | [virtual] |
bool | serializeAttribute | ( | TasAttribute & | attribute | ) | [virtual] |
Checks the attribute and returns false if the attribute should not be added to the model.
bool | serializeContainer | ( | TasObjectContainer & | container | ) | [virtual] |
Checks the container and returns false if the container should not be added to the model.
void | serializeDuplicates | ( | bool | allow | ) | [virtual] |
Set the filter to block or allow duplicates.
bool | serializeObject | ( | TasObject & | object | ) | [virtual] |
Checks the object and returns false if the object should not be added to the model. Default implementation check duplicates.